search for: load_bitcode

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

2011 Jul 01
0
[LLVMdev] Bug in Inliner w/ lazy bitcode
...data; }; extern "C" float* RunStuff(void) { SomeContainer<float> emptyContainer; return emptyContainer.getPtr(); } This code is compiled via clang into llvm bitcode (clang++ -emit-llvm -c bitcode_input.cc -o test.bc), and then loaded at runtime via getLazyBitcodeModule (see load_bitcode.cc). After "loading" the bitcode, I emit a new function that just calls RunStuff. I then run the Inliner on the full module, and then ask the JIT for getPointerToFunction on my emitted function. At this point, when generating native code, I get an Invalid CALL when it tries to deserialize...