Lines Matching defs:ExecutionEngine
1 //===-- ExecutionEngine.cpp - Common Implementation shared by EEs ---------===//
16 #include "llvm/ExecutionEngine/ExecutionEngine.h"
20 #include "llvm/ExecutionEngine/GenericValue.h"
21 #include "llvm/ExecutionEngine/JITEventListener.h"
22 #include "llvm/ExecutionEngine/ObjectCache.h"
23 #include "llvm/ExecutionEngine/RTDyldMemoryManager.h"
50 ExecutionEngine *(*ExecutionEngine::MCJITCtor)(
56 ExecutionEngine *(*ExecutionEngine::InterpCtor)(std::unique_ptr<Module> M,
63 void ExecutionEngine::Init(std::unique_ptr<Module> M) {
80 ExecutionEngine::ExecutionEngine(std::unique_ptr<Module> M)
85 ExecutionEngine::ExecutionEngine(DataLayout DL, std::unique_ptr<Module> M)
90 ExecutionEngine::~ExecutionEngine() {
123 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) {
127 void ExecutionEngine::addObjectFile(std::unique_ptr<object::ObjectFile> O) {
128 llvm_unreachable("ExecutionEngine subclass doesn't implement addObjectFile.");
132 ExecutionEngine::addObjectFile(object::OwningBinary<object::ObjectFile> O) {
133 llvm_unreachable("ExecutionEngine subclass doesn't implement addObjectFile.");
136 void ExecutionEngine::addArchive(object::OwningBinary<object::Archive> A) {
137 llvm_unreachable("ExecutionEngine subclass doesn't implement addArchive.");
140 bool ExecutionEngine::removeModule(Module *M) {
153 Function *ExecutionEngine::FindFunctionNamed(StringRef FnName) {
162 GlobalVariable *ExecutionEngine::FindGlobalVariableNamed(StringRef Name, bool AllowInternal) {
188 std::string ExecutionEngine::getMangledName(const GlobalValue *GV) {
203 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) {
208 void ExecutionEngine::addGlobalMapping(StringRef Name, uint64_t Addr) {
227 void ExecutionEngine::clearAllGlobalMappings() {
234 void ExecutionEngine::clearGlobalMappingsFromModule(Module *M) {
241 uint64_t ExecutionEngine::updateGlobalMapping(const GlobalValue *GV,
247 uint64_t ExecutionEngine::updateGlobalMapping(StringRef Name, uint64_t Addr) {
274 uint64_t ExecutionEngine::getAddressToGlobalIfAvailable(StringRef S) {
285 void *ExecutionEngine::getPointerToGlobalIfAvailable(StringRef S) {
292 void *ExecutionEngine::getPointerToGlobalIfAvailable(const GlobalValue *GV) {
297 const GlobalValue *ExecutionEngine::getGlobalValueAtAddress(void *Addr) {
331 void *reset(LLVMContext &C, ExecutionEngine *EE,
335 void *ArgvArray::reset(LLVMContext &C, ExecutionEngine *EE,
367 void ExecutionEngine::runStaticConstructorsDestructors(Module &module,
406 void ExecutionEngine::runStaticConstructorsDestructors(bool isDtors) {
414 static bool isTargetNullPtr(ExecutionEngine *EE, void *Loc) {
423 int ExecutionEngine::runFunctionAsMain(Function *Fn,
506 ExecutionEngine *EngineBuilder::create(TargetMachine *TM) {
536 ExecutionEngine *EE = nullptr;
537 if (ExecutionEngine::MCJITCtor)
538 EE = ExecutionEngine::MCJITCtor(std::move(M), ErrorStr, std::move(MemMgr),
550 if (ExecutionEngine::InterpCtor)
551 return ExecutionEngine::InterpCtor(std::move(M), ErrorStr);
557 if ((WhichEngine & EngineKind::JIT) && !ExecutionEngine::MCJITCtor) {
565 void *ExecutionEngine::getPointerToGlobal(const GlobalValue *GV) {
585 GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
620 "Scalable vector support not yet implemented in ExecutionEngine");
931 "Scalable vector support not yet implemented in ExecutionEngine");
1036 void ExecutionEngine::StoreValueToMemory(const GenericValue &Val,
1091 void ExecutionEngine::LoadValueFromMemory(GenericValue &Result,
1124 "Scalable vector support not yet implemented in ExecutionEngine");
1158 void ExecutionEngine::InitializeMemory(const Constant *Init, void *Addr) {
1214 void ExecutionEngine::emitGlobals() {
1311 void ExecutionEngine::emitGlobalVariable(const GlobalVariable *GV) {