Search
21:18:43
Bike
i mean, basically, so it's not in the SO, but when we include the header we need an actual pointer so the compiler instantiates one
21:19:14
drmeister
I'm going to start writing wrapper functions. It's the only thing I am certain will solve this problem.
21:20:20
drmeister
I have 53 of them to deal with.
21:20:21
drmeister
https://www.irccloud.com/pastebin/yfCzwGlb/
21:20:50
Bike
does that mean we're going to have to use the wrappers pervasively
21:20:58
Bike
or i guess if we just call our own llvm-sys functions anyway it's ok
21:21:17
drmeister
I put a function to call dladdr on every function/method we expose when we startup clasp the old way.
21:22:07
drmeister
I'll write one and that will show us both what is involved...
21:22:09
Bike
i mean are we going to hvae to change cmpir.lsp and stuff
21:22:38
drmeister
Nonononono - I'll expose the function with the same name as we currently use.
21:23:19
drmeister
https://github.com/clasp-developers/clasp/blob/future/src/llvmo/llvmoExpose.cc#L1378
21:24:38
drmeister
That generates a wrapper for this...
21:24:38
drmeister
https://github.com/clasp-developers/clasp/blob/future/src/llvmo/llvmoExpose.cc#L1378
21:25:23
drmeister
https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/IR/Module.h#L300
21:25:49
drmeister
And clearly - that is a candidate for inlining.
21:27:49
drmeister
But I gotta look up EVERY ONE of these functions and write a wrapper for it. Bleh.
21:28:14
drmeister
I'm trying this right now...
21:28:15
drmeister
https://www.irccloud.com/pastebin/3tJKVHma/
21:30:23
drmeister
Oh glob - and when you add a function - pretty much everything needs to be recompiled.
21:32:06
drmeister
Oh well - it's a clear path to the goal.
21:35:11
drmeister
I'll do ten at a time and then fix compile-time bugs
21:35:15
drmeister
https://www.irccloud.com/pastebin/oDClNWTM/
21:40:53
drmeister
Alright - then I have 52 problems.
21:40:56
drmeister
https://www.irccloud.com/pastebin/XKQLJXxT/
3:04:21
beach
Good morning everyone!