|
ETISS 0.11.2
ExtendableTranslatingInstructionSetSimulator(version0.11.2)
|
#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 | |
| 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 | |
| virtual void | free (void *handle) |
| clean up handled returned by etiss::JIT::translate | |
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 | |
Private Attributes | |
| std::unique_ptr< OrcJit > | orcJit_ |
| std::unordered_set< std::string > | loadedLibs_ |
| LLVMJIT::LLVMJIT | ( | ) |
Definition at line 117 of file LLVMJIT.cpp.
References OrcJit::Create(), etiss_jit_llvm_init_done_, etiss_jit_llvm_init_mu_, and orcJit_.

|
virtual |
Definition at line 134 of file LLVMJIT.cpp.
|
virtual |
clean up handled returned by etiss::JIT::translate
Implements etiss::JIT.
Definition at line 213 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 215 of file LLVMJIT.cpp.
References compat::get_function_ptr(), 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 136 of file LLVMJIT.cpp.
References compat::createDiagnostics(), compat::get_virtual_source(), etiss::jitFiles(), loadedLibs_, and orcJit_.

|
private |
Definition at line 31 of file LLVMJIT.h.
Referenced by translate().
|
private |
Definition at line 30 of file LLVMJIT.h.
Referenced by getFunction(), LLVMJIT(), and translate().