Home | History | Annotate | Download | only in MCJIT

Lines Matching refs:MCJIT

1 //===-- MCJIT.cpp - MC-based Just-in-Time Compiler ------------------------===//
10 #include "MCJIT.h"
14 #include "llvm/ExecutionEngine/MCJIT.h"
37 RegisterJIT() { MCJIT::Register(); }
46 MCJIT::createJIT(std::unique_ptr<Module> M,
64 return new MCJIT(std::move(M), std::move(TM), std::move(MemMgr),
68 MCJIT::MCJIT(std::unique_ptr<Module> M, std::unique_ptr<TargetMachine> tm,
92 MCJIT::~MCJIT() {
104 void MCJIT::addModule(std::unique_ptr<Module> M) {
109 bool MCJIT::removeModule(Module *M) {
114 void MCJIT::addObjectFile(std::unique_ptr<object::ObjectFile> Obj) {
124 void MCJIT::addObjectFile(object::OwningBinary<object::ObjectFile> Obj) {
132 void MCJIT::addArchive(object::OwningBinary<object::Archive> A) {
136 void MCJIT::setObjectCache(ObjectCache* NewCache) {
141 std::unique_ptr<MemoryBuffer> MCJIT::emitObject(Module *M) {
145 // MCJIT instance, since these conditions are tested by our caller,
181 void MCJIT::generateCodeForModule(Module *M) {
185 // This must be a module which has already been added to this MCJIT instance.
187 "MCJIT::generateCodeForModule: Unknown module.");
205 // MCJIT now owns the ObjectImage pointer (via its LoadedObjects list).
222 void MCJIT::finalizeLoadedModules() {
238 void MCJIT::finalizeObject() {
253 void MCJIT::finalizeModule(Module *M) {
256 // This must be a module which has already been added to this MCJIT instance.
257 assert(OwnedModules.ownsModule(M) && "MCJIT::finalizeModule: Unknown module.");
266 RuntimeDyld::SymbolInfo MCJIT::findExistingSymbol(const std::string &Name) {
273 Module *MCJIT::findModuleForSymbol(const std::string &Name,
296 uint64_t MCJIT::getSymbolAddress(const std::string &Name,
301 RuntimeDyld::SymbolInfo MCJIT::findSymbol(const std::string &Name,
352 uint64_t MCJIT::getGlobalValueAddress(const std::string &Name) {
360 uint64_t MCJIT::getFunctionAddress(const std::string &Name) {
369 void *MCJIT::getPointerToFunction(Function *F) {
404 void MCJIT::runStaticConstructorsDestructorsInModulePtrSet(
411 void MCJIT::runStaticConstructorsDestructors(bool isDtors) {
421 Function *MCJIT::FindFunctionNamedInModulePtrSet(const char *FnName,
432 Function *MCJIT::FindFunctionNamed(const char *FnName) {
444 GenericValue MCJIT::runFunction(Function *F,
544 void *MCJIT::getPointerToNamedFunction(StringRef Name, bool AbortOnFailure) {
565 void MCJIT::RegisterJITEventListener(JITEventListener *L) {
572 void MCJIT::UnregisterJITEventListener(JITEventListener *L) {
583 void MCJIT::NotifyObjectEmitted(const object::ObjectFile& Obj,
592 void MCJIT::NotifyFreeingObject(const object::ObjectFile& Obj) {