search for: movefunctionbody

Displaying 1 result from an estimated 1 matches for "movefunctionbody".

2016 Dec 13
0
Orc JIT and lazily-loaded modules
...ions from that file. That was easy to do starting from the example in Chapter 3 of the Orc JIT tutorial if I used parseBitcodeFile to load in the module, but when I switched over to using getLazyBitcodeModule, I ran into problems: The functions in the loaded module weren't materialized before moveFunctionBody tried to copy the function into a new module in order to JIT them. That then led to an assertion failure. I was able to work around this by creating a new function pass, run by the pass manager in KaleidoscopeJIT, which looks up any called functions, sees if they're from the loaded module, an...