• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/

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::OrcMCJITReplacementCtor)(
61 ExecutionEngine *(*ExecutionEngine::InterpCtor)(std::unique_ptr<Module> M,
68 void ExecutionEngine::Init(std::unique_ptr<Module> M) {
85 ExecutionEngine::ExecutionEngine(std::unique_ptr<Module> M)
90 ExecutionEngine::ExecutionEngine(DataLayout DL, std::unique_ptr<Module> M)
95 ExecutionEngine::~ExecutionEngine() {
128 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) {
132 void ExecutionEngine::addObjectFile(std::unique_ptr<object::ObjectFile> O) {
133 llvm_unreachable("ExecutionEngine subclass doesn't implement addObjectFile.");
137 ExecutionEngine::addObjectFile(object::OwningBinary<object::ObjectFile> O) {
138 llvm_unreachable("ExecutionEngine subclass doesn't implement addObjectFile.");
141 void ExecutionEngine::addArchive(object::OwningBinary<object::Archive> A) {
142 llvm_unreachable("ExecutionEngine subclass doesn't implement addArchive.");
145 bool ExecutionEngine::removeModule(Module *M) {
158 Function *ExecutionEngine::FindFunctionNamed(StringRef FnName) {
167 GlobalVariable *ExecutionEngine::FindGlobalVariableNamed(StringRef Name, bool AllowInternal) {
193 std::string ExecutionEngine::getMangledName(const GlobalValue *GV) {
208 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) {
213 void ExecutionEngine::addGlobalMapping(StringRef Name, uint64_t Addr) {
232 void ExecutionEngine::clearAllGlobalMappings() {
239 void ExecutionEngine::clearGlobalMappingsFromModule(Module *M) {
246 uint64_t ExecutionEngine::updateGlobalMapping(const GlobalValue *GV,
252 uint64_t ExecutionEngine::updateGlobalMapping(StringRef Name, uint64_t Addr) {
279 uint64_t ExecutionEngine::getAddressToGlobalIfAvailable(StringRef S) {
290 void *ExecutionEngine::getPointerToGlobalIfAvailable(StringRef S) {
297 void *ExecutionEngine::getPointerToGlobalIfAvailable(const GlobalValue *GV) {
302 const GlobalValue *ExecutionEngine::getGlobalValueAtAddress(void *Addr) {
336 void *reset(LLVMContext &C, ExecutionEngine *EE,
340 void *ArgvArray::reset(LLVMContext &C, ExecutionEngine *EE,
372 void ExecutionEngine::runStaticConstructorsDestructors(Module &module,
411 void ExecutionEngine::runStaticConstructorsDestructors(bool isDtors) {
419 static bool isTargetNullPtr(ExecutionEngine *EE, void *Loc) {
428 int ExecutionEngine::runFunctionAsMain(Function *Fn,
512 ExecutionEngine *EngineBuilder::create(TargetMachine *TM) {
542 ExecutionEngine *EE = nullptr;
543 if (ExecutionEngine::OrcMCJITReplacementCtor && UseOrcMCJITReplacement) {
544 EE = ExecutionEngine::OrcMCJITReplacementCtor(ErrorStr, std::move(MemMgr),
548 } else if (ExecutionEngine::MCJITCtor)
549 EE = ExecutionEngine::MCJITCtor(std::move(M), ErrorStr, std::move(MemMgr),
561 if (ExecutionEngine::InterpCtor)
562 return ExecutionEngine::InterpCtor(std::move(M), ErrorStr);
568 if ((WhichEngine & EngineKind::JIT) && !ExecutionEngine::MCJITCtor) {
576 void *ExecutionEngine::getPointerToGlobal(const GlobalValue *GV) {
596 GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
631 "Scalable vector support not yet implemented in ExecutionEngine");
924 "Scalable vector support not yet implemented in ExecutionEngine");
1029 void ExecutionEngine::StoreValueToMemory(const GenericValue &Val,
1079 void ExecutionEngine::LoadValueFromMemory(GenericValue &Result,
1109 "Scalable vector support not yet implemented in ExecutionEngine");
1143 void ExecutionEngine::InitializeMemory(const Constant *Init, void *Addr) {
1199 void ExecutionEngine::emitGlobals() {
1299 void ExecutionEngine::emitGlobalVariable(const GlobalVariable *GV) {