ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
#include <LLVMJIT.h>
Public Member Functions | |
LLVMJIT () | |
virtual | ~LLVMJIT () |
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 result More... | |
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 More... | |
virtual void | free (void *handle) |
clean up handled returned by etiss::JIT::translate More... | |
Public Member Functions inherited from etiss::JIT | |
JIT (std::string name) | |
virtual | ~JIT () |
std::string | getName () |
returns the JIT instance name previously passed to the constructor More... | |
Private Attributes | |
llvm::LLVMContext | context_ |
OrcJit * | orcJit_ = nullptr |
std::unordered_set< std::string > | loadedLibs_ |
LLVMJIT::LLVMJIT | ( | ) |
Definition at line 174 of file LLVMJIT.cpp.
References OrcJit::Create(), etiss_jit_llvm_init_done_, etiss_jit_llvm_init_mu_, and orcJit_.
|
virtual |
Definition at line 195 of file LLVMJIT.cpp.
References orcJit_.
|
virtual |
clean up handled returned by etiss::JIT::translate
Implements etiss::JIT.
Definition at line 294 of file LLVMJIT.cpp.
|
virtual |
returns a function pointer to a compiled function from the handle returned by etiss::JIT::translate
Implements etiss::JIT.
Definition at line 286 of file LLVMJIT.cpp.
References OrcJit::lookup(), and orcJit_.
|
virtual |
translate C code to executable code and return a handle/pointer that identifies the compilation result
code | generated code |
headerpaths | paths where required header files are located |
librarypaths | paths where required libraries are located (usually not needed since libraries don't require full linking) |
libraries | file names of required libraries (usually not needed since libraries don't require full linking) |
error | string to return additional error information |
debug | if true then compilation should try to enable gdb to jump into compiled functions |
Implements etiss::JIT.
Definition at line 200 of file LLVMJIT.cpp.
References OrcJit::addModule(), get_metrics::args, OrcJit::getContext(), etiss::jitFiles(), loadedLibs_, OrcJit::loadLib(), and orcJit_.
|
private |
Definition at line 116 of file LLVMJIT.h.
Referenced by translate().
|
private |
Definition at line 115 of file LLVMJIT.h.
Referenced by getFunction(), LLVMJIT(), translate(), and ~LLVMJIT().