Displaying 1 result from an estimated 1 matches for "registernativevari".
2010 Sep 08
0
[LLVMdev] how to call back from JITted code to some native custom functions/variables.
...returns true when actually handled the data,
// false is returned otherwise.
bool run(Handler *handlerAST);
// registers a callback, to be invoked when a custom/native
// variable is requested.
// the type T may be double and std::string
template<typename T>
void registerNativeVariable(const std::string& symbolName,
const std::function<T()>& callback);
// registers a callback for custom handlers (special functions)
// to further process the data.
void registerNativeHandler(const std::string& symbolName,
const std::function<boo...