Displaying 1 result from an estimated 1 matches for "fun_iter".
2013 Nov 01
4
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
...uot;CallbackName" and passes the
+/// the argument "Args" and the extra LLVM argument to the registered function.
+static void* PerformCustomCallback(const char* CallbackName, void *Args ) {
+ std::string CbName(CallbackName);
+ void* (*F)() = NULL;
+ FunctionIndexMapTy::iterator Fun_iter = GetFunctionIndexMap().find(CbName);
+ if(Fun_iter != GetFunctionIndexMap().end()) {
+ F = Fun_iter->second;
+ }
+ assert(F != 0);
+ if(F){
+ void *LLVM_args = NULL;
+ ArgumentsIndexMapTy::iterator Args_iter = GetArgumentsIndexMap().find(CbName);
+ if(Args_iter != GetArgumentsIn...