Lines Matching defs:ExecutionEngine

1 //===-- ExecutionEngine.cpp - Common Implementation shared by EEs ---------===//
16 #include "llvm/ExecutionEngine/ExecutionEngine.h"
17 #include "llvm/ExecutionEngine/JITMemoryManager.h"
20 #include "llvm/ExecutionEngine/GenericValue.h"
42 ExecutionEngine *(*ExecutionEngine::JITCtor)(
48 ExecutionEngine *(*ExecutionEngine::MCJITCtor)(
54 ExecutionEngine *(*ExecutionEngine::InterpCtor)(Module *M,
57 ExecutionEngine::ExecutionEngine(Module *M)
69 ExecutionEngine::~ExecutionEngine() {
75 void ExecutionEngine::DeregisterAllTables() {
116 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) {
120 bool ExecutionEngine::removeModule(Module *M) {
133 Function *ExecutionEngine::FindFunctionNamed(const char *FnName) {
160 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) {
178 void ExecutionEngine::clearAllGlobalMappings() {
185 void ExecutionEngine::clearGlobalMappingsFromModule(Module *M) {
195 void *ExecutionEngine::updateGlobalMapping(const GlobalValue *GV, void *Addr) {
222 void *ExecutionEngine::getPointerToGlobalIfAvailable(const GlobalValue *GV) {
230 const GlobalValue *ExecutionEngine::getGlobalValueAtAddress(void *Addr) {
264 void *reset(LLVMContext &C, ExecutionEngine *EE,
268 void *ArgvArray::reset(LLVMContext &C, ExecutionEngine *EE,
298 void ExecutionEngine::runStaticConstructorsDestructors(Module *module,
337 void ExecutionEngine::runStaticConstructorsDestructors(bool isDtors) {
345 static bool isTargetNullPtr(ExecutionEngine *EE, void *Loc) {
354 int ExecutionEngine::runFunctionAsMain(Function *Fn,
401 ExecutionEngine *ExecutionEngine::create(Module *M,
420 ExecutionEngine *ExecutionEngine::createJIT(Module *M,
427 if (ExecutionEngine::JITCtor == 0) {
448 return ExecutionEngine::JITCtor(M, ErrorStr, JMM, GVsWithCode, TM);
451 ExecutionEngine *EngineBuilder::create(TargetMachine *TM) {
492 if (UseMCJIT && ExecutionEngine::MCJITCtor) {
493 ExecutionEngine *EE =
494 ExecutionEngine::MCJITCtor(M, ErrorStr, MCJMM ? MCJMM : JMM,
497 } else if (ExecutionEngine::JITCtor) {
498 ExecutionEngine *EE =
499 ExecutionEngine::JITCtor(M, ErrorStr, JMM,
508 if (ExecutionEngine::InterpCtor)
509 return ExecutionEngine::InterpCtor(M, ErrorStr);
515 if ((WhichEngine & EngineKind::JIT) && ExecutionEngine::JITCtor == 0 &&
516 ExecutionEngine::MCJITCtor == 0) {
524 void *ExecutionEngine::getPointerToGlobal(const GlobalValue *GV) {
544 GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
981 void ExecutionEngine::StoreValueToMemory(const GenericValue &Val,
1057 void ExecutionEngine::LoadValueFromMemory(GenericValue &Result,
1118 void ExecutionEngine::InitializeMemory(const Constant *Init, void *Addr) {
1174 void ExecutionEngine::emitGlobals() {
1280 void ExecutionEngine::EmitGlobalVariable(const GlobalVariable *GV) {
1299 ExecutionEngineState::ExecutionEngineState(ExecutionEngine &EE)
1317 llvm_unreachable("The ExecutionEngine doesn't know how to handle a"