Home | History | Annotate | Download | only in ExecutionEngine

Lines Matching defs:ExecutionEngine

1 //===-- ExecutionEngine.cpp - Common Implementation shared by EEs ---------===//
16 #include "llvm/ExecutionEngine/ExecutionEngine.h"
19 #include "llvm/ExecutionEngine/GenericValue.h"
41 ExecutionEngine *(*ExecutionEngine::JITCtor)(
47 ExecutionEngine *(*ExecutionEngine::MCJITCtor)(
53 ExecutionEngine *(*ExecutionEngine::InterpCtor)(Module *M,
56 ExecutionEngine::ExecutionEngine(Module *M)
68 ExecutionEngine::~ExecutionEngine() {
74 void ExecutionEngine::DeregisterAllTables() {
115 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) {
119 bool ExecutionEngine::removeModule(Module *M) {
132 Function *ExecutionEngine::FindFunctionNamed(const char *FnName) {
159 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) {
177 void ExecutionEngine::clearAllGlobalMappings() {
184 void ExecutionEngine::clearGlobalMappingsFromModule(Module *M) {
194 void *ExecutionEngine::updateGlobalMapping(const GlobalValue *GV, void *Addr) {
221 void *ExecutionEngine::getPointerToGlobalIfAvailable(const GlobalValue *GV) {
229 const GlobalValue *ExecutionEngine::getGlobalValueAtAddress(void *Addr) {
263 void *reset(LLVMContext &C, ExecutionEngine *EE,
267 void *ArgvArray::reset(LLVMContext &C, ExecutionEngine *EE,
297 void ExecutionEngine::runStaticConstructorsDestructors(Module *module,
336 void ExecutionEngine::runStaticConstructorsDestructors(bool isDtors) {
344 static bool isTargetNullPtr(ExecutionEngine *EE, void *Loc) {
353 int ExecutionEngine::runFunctionAsMain(Function *Fn,
400 ExecutionEngine *ExecutionEngine::create(Module *M,
419 ExecutionEngine *ExecutionEngine::createJIT(Module *M,
426 if (ExecutionEngine::JITCtor == 0) {
447 return ExecutionEngine::JITCtor(M, ErrorStr, JMM, GVsWithCode, TM);
450 ExecutionEngine *EngineBuilder::create(TargetMachine *TM) {
481 if (UseMCJIT && ExecutionEngine::MCJITCtor) {
482 ExecutionEngine *EE =
483 ExecutionEngine::MCJITCtor(M, ErrorStr, JMM,
486 } else if (ExecutionEngine::JITCtor) {
487 ExecutionEngine *EE =
488 ExecutionEngine::JITCtor(M, ErrorStr, JMM,
497 if (ExecutionEngine::InterpCtor)
498 return ExecutionEngine::InterpCtor(M, ErrorStr);
504 if ((WhichEngine & EngineKind::JIT) && ExecutionEngine::JITCtor == 0 &&
505 ExecutionEngine::MCJITCtor == 0) {
513 void *ExecutionEngine::getPointerToGlobal(const GlobalValue *GV) {
533 GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
864 void ExecutionEngine::StoreValueToMemory(const GenericValue &Val,
926 void ExecutionEngine::LoadValueFromMemory(GenericValue &Result,
962 void ExecutionEngine::InitializeMemory(const Constant *Init, void *Addr) {
1018 void ExecutionEngine::emitGlobals() {
1124 void ExecutionEngine::EmitGlobalVariable(const GlobalVariable *GV) {
1143 ExecutionEngineState::ExecutionEngineState(ExecutionEngine &EE)
1161 llvm_unreachable("The ExecutionEngine doesn't know how to handle a"