search for: getbasicblockaddressmap

Displaying 2 results from an estimated 2 matches for "getbasicblockaddressmap".

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 'runJITOnFunctionUnlocked' which in turn calls 'jitTheFunction'. However, in 'jitTheFunction, there is a statement 'getBasicBlockAddressMap(locked).clear()'. After returning from &...
2013 Nov 01
4
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
.../JIT.h (working copy) @@ -17,7 +17,8 @@ #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/PassManager.h" #include "llvm/Support/ValueHandle.h" - +#include <vector> +#include <map> namespace llvm { class Function; @@ -205,8 +206,9 @@ getBasicBlockAddressMap(const MutexGuard &) { return BasicBlockAddressMap; } + /// CustomCallback handling + int registerCustomCallback(const char *CallbackName, void* (*Fp)(), void *LLVM_args = NULL); - private: static JITCodeEmitter *createEmitter(JIT &J, JITMemoryManager *JMM,...