Displaying 5 results from an estimated 5 matches for "getpointertobasicblock".
2013 Jun 21
0
[LLVMdev] is this a bug of llvm::JIT::getPointerToBasicBlock?
I am reading the implementation of llvm::JIT::getPointerToBasicBlock and I
think there might be a bug in it.
'getPointerToBasicBlock' first calls 'getPointerToFunction' and then try to
look up the map returned by 'getBasicBlockAddressMap(locked)' to get the
pointer of the BasicBlock.
'getPointerToFunction' calls 'runJITOnFuncti...
2010 Aug 04
1
[LLVMdev] JITing code with indirect branch in LLVM 2.7
...onding store i8* blockaddress(@label)). I am using LLVM 2.7
code base. I build the ExecutionEngine using EngineBuilder, and call
engine->getPointerToFunction(func). When I use
setOptLevel(llvm::CodeGenOpt::None), the JITing fails with the
following message :
JIT.h:131: virtual void*
llvm::JIT::getPointerToBasicBlock(llvm::BasicBlock*): Assertion `0 &&
"JIT does not support address-of-label yet!"' failed.
However, when I use setOptLevel(llvm::CodeGenOpt::Less) or higher
(Default, Aggressive), the assertion does not happen. However, when I
disassemble the JITed program, I see that the labe...
2014 Sep 02
2
[LLVMdev] Problem linking and JITing code through C++-API
...lvm::JIT::jitTheFunction(llvm::Function*, llvm::MutexGuard const&) ()
#8 0x00000000006fe8cf in llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*, llvm::MutexGuard const&) ()
#9 0x00000000006fead2 in llvm::JIT::getPointerToFunction(llvm::Function*) ()
#10 0x00000000006fd63f in llvm::JIT::getPointerToBasicBlock(llvm::BasicBlock*) ()
#11 0x00000000009e14ee in llvm::ExecutionEngine::getConstantValue(llvm::Constant const*) ()
#12 0x00000000009e265f in llvm::ExecutionEngine::InitializeMemory(llvm::Constant const*, void*) ()
#13 0x00000000009e27e3 in llvm::ExecutionEngine::InitializeMemory(llvm::Constant const...
2014 Sep 08
2
[LLVMdev] Problem linking and JITing code through C++-API
...,
> llvm::MutexGuard const&) ()
> #8 0x00000000006fe8cf in
> llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*, llvm::MutexGuard
> const&) ()
> #9 0x00000000006fead2 in llvm::JIT::getPointerToFunction(llvm::Function*)
> ()
> #10 0x00000000006fd63f in
> llvm::JIT::getPointerToBasicBlock(llvm::BasicBlock*) ()
> #11 0x00000000009e14ee in
> llvm::ExecutionEngine::getConstantValue(llvm::Constant const*) ()
> #12 0x00000000009e265f in
> llvm::ExecutionEngine::InitializeMemory(llvm::Constant const*, void*) ()
> #13 0x00000000009e27e3 in
> llvm::ExecutionEngine::Initial...
2014 Sep 01
2
[LLVMdev] Problem linking and JITing code through C++-API
I have a frontend that generates some LLVM bitcode that needs to be linked with other bitcode (its runtime library), which I generate from C++ source using Clang.
If I write the output of my program to disk, link it with llvm-link, and then run it with lli, everything works perfectly. But if I try to perform the linking and running steps in my main program, I get this error during