10#include <unordered_set>
24 virtual void *
translate(std::string code, std::set<std::string> headerpaths, std::set<std::string> librarypaths,
25 std::set<std::string> libraries, std::string &error,
bool debug =
false);
26 virtual void *
getFunction(
void *handle, std::string name, std::string &error);
27 virtual void free(
void *handle);
JIT compiler interface definition.
compiler interface for just in time compilation of generated C code
virtual void * getFunction(void *handle, std::string name, std::string &error)
returns a function pointer to a compiled function from the handle returned by etiss::JIT::translate
std::unordered_set< std::string > loadedLibs_
virtual void free(void *handle)
clean up handled returned by etiss::JIT::translate
virtual void * translate(std::string code, std::set< std::string > headerpaths, std::set< std::string > librarypaths, std::set< std::string > libraries, std::string &error, bool debug=false)
translate C code to executable code and return a handle/pointer that identifies the compilation resul...
std::unique_ptr< OrcJit > orcJit_