Lines Matching defs:ExecutionEngine
1 //===-- ExecutionEngine.cpp - Common Implementation shared by EEs ---------===//
16 #include "llvm/ExecutionEngine/ExecutionEngine.h"
19 #include "llvm/ExecutionEngine/GenericValue.h"
20 #include "llvm/ExecutionEngine/JITEventListener.h"
21 #include "llvm/ExecutionEngine/ObjectCache.h"
22 #include "llvm/ExecutionEngine/RTDyldMemoryManager.h"
49 ExecutionEngine *(*ExecutionEngine::MCJITCtor)(
55 ExecutionEngine *(*ExecutionEngine::InterpCtor)(std::unique_ptr<Module> M,
62 void ExecutionEngine::Init(std::unique_ptr<Module> M) {
79 ExecutionEngine::ExecutionEngine(std::unique_ptr<Module> M)
84 ExecutionEngine::ExecutionEngine(DataLayout DL, std::unique_ptr<Module> M)
89 ExecutionEngine::~ExecutionEngine() {
122 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) {
126 void ExecutionEngine::addObjectFile(std::unique_ptr<object::ObjectFile> O) {
127 llvm_unreachable("ExecutionEngine subclass doesn't implement addObjectFile.");
131 ExecutionEngine::addObjectFile(object::OwningBinary<object::ObjectFile> O) {
132 llvm_unreachable("ExecutionEngine subclass doesn't implement addObjectFile.");
135 void ExecutionEngine::addArchive(object::OwningBinary<object::Archive> A) {
136 llvm_unreachable("ExecutionEngine subclass doesn't implement addArchive.");
139 bool ExecutionEngine::removeModule(Module *M) {
152 Function *ExecutionEngine::FindFunctionNamed(StringRef FnName) {
161 GlobalVariable *ExecutionEngine::FindGlobalVariableNamed(StringRef Name, bool AllowInternal) {
187 std::string ExecutionEngine::getMangledName(const GlobalValue *GV) {
202 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) {
207 void ExecutionEngine::addGlobalMapping(StringRef Name, uint64_t Addr) {
226 void ExecutionEngine::clearAllGlobalMappings() {
233 void ExecutionEngine::clearGlobalMappingsFromModule(Module *M) {
240 uint64_t ExecutionEngine::updateGlobalMapping(const GlobalValue *GV,
246 uint64_t ExecutionEngine::updateGlobalMapping(StringRef Name, uint64_t Addr) {
273 uint64_t ExecutionEngine::getAddressToGlobalIfAvailable(StringRef S) {
284 void *ExecutionEngine::getPointerToGlobalIfAvailable(StringRef S) {
291 void *ExecutionEngine::getPointerToGlobalIfAvailable(const GlobalValue *GV) {
296 const GlobalValue *ExecutionEngine::getGlobalValueAtAddress(void *Addr) {
330 void *reset(LLVMContext &C, ExecutionEngine *EE,
334 void *ArgvArray::reset(LLVMContext &C, ExecutionEngine *EE,
366 void ExecutionEngine::runStaticConstructorsDestructors(Module &module,
405 void ExecutionEngine::runStaticConstructorsDestructors(bool isDtors) {
413 static bool isTargetNullPtr(ExecutionEngine *EE, void *Loc) {
422 int ExecutionEngine::runFunctionAsMain(Function *Fn,
505 ExecutionEngine *EngineBuilder::create(TargetMachine *TM) {
535 ExecutionEngine *EE = nullptr;
536 if (ExecutionEngine::MCJITCtor)
537 EE = ExecutionEngine::MCJITCtor(std::move(M), ErrorStr, std::move(MemMgr),
549 if (ExecutionEngine::InterpCtor)
550 return ExecutionEngine::InterpCtor(std::move(M), ErrorStr);
556 if ((WhichEngine & EngineKind::JIT) && !ExecutionEngine::MCJITCtor) {
564 void *ExecutionEngine::getPointerToGlobal(const GlobalValue *GV) {
584 GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
619 "Scalable vector support not yet implemented in ExecutionEngine");
930 "Scalable vector support not yet implemented in ExecutionEngine");
1035 void ExecutionEngine::StoreValueToMemory(const GenericValue &Val,
1090 void ExecutionEngine::LoadValueFromMemory(GenericValue &Result,
1123 "Scalable vector support not yet implemented in ExecutionEngine");
1157 void ExecutionEngine::InitializeMemory(const Constant *Init, void *Addr) {
1213 void ExecutionEngine::emitGlobals() {
1310 void ExecutionEngine::emitGlobalVariable(const GlobalVariable *GV) {