search for: getfunctionindexmap

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

2013 Nov 01
4
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
...IT.cpp (revision 193441) +++ lib/ExecutionEngine/MCJIT/MCJIT.cpp (working copy) @@ -39,6 +39,43 @@ extern "C" void LLVMLinkInMCJIT() { } +typedef std::map<std::string, void*(*)()> FunctionIndexMapTy; +static FunctionIndexMapTy FunctionIndexMap; + +static FunctionIndexMapTy& GetFunctionIndexMap() { + return FunctionIndexMap; +} + +typedef std::map<std::string, void*> ArgumentsIndexMapTy; +static ArgumentsIndexMapTy ArgumentsIndexMap; + +static ArgumentsIndexMapTy& GetArgumentsIndexMap() { + return ArgumentsIndexMap; +} + +/// PerformCustomCallback - This is the function r...