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

Lines Matching refs:MCJIT

1 //===-- MCJIT.cpp - MC-based Just-in-Time Compiler ------------------------===//
9 #include "MCJIT.h"
13 #include "llvm/ExecutionEngine/MCJIT.h"
35 RegisterJIT() { MCJIT::Register(); }
44 MCJIT::createJIT(std::unique_ptr<Module> M, std::string *ErrorStr,
61 return new MCJIT(std::move(M), std::move(TM), std::move(MemMgr),
65 MCJIT::MCJIT(std::unique_ptr<Module> M, std::unique_ptr<TargetMachine> TM,
92 MCJIT::~MCJIT() {
104 void MCJIT::addModule(std::unique_ptr<Module> M) {
113 bool MCJIT::removeModule(Module *M) {
118 void MCJIT::addObjectFile(std::unique_ptr<object::ObjectFile> Obj) {
128 void MCJIT::addObjectFile(object::OwningBinary<object::ObjectFile> Obj) {
136 void MCJIT::addArchive(object::OwningBinary<object::Archive> A) {
140 void MCJIT::setObjectCache(ObjectCache* NewCache) {
145 std::unique_ptr<MemoryBuffer> MCJIT::emitObject(Module *M) {
155 // MCJIT instance, since these conditions are tested by our caller,
188 void MCJIT::generateCodeForModule(Module *M) {
192 // This must be a module which has already been added to this MCJIT instance.
194 "MCJIT::generateCodeForModule: Unknown module.");
214 // MCJIT now owns the ObjectImage pointer (via its LoadedObjects list).
238 void MCJIT::finalizeLoadedModules() {
258 void MCJIT::finalizeObject() {
273 void MCJIT::finalizeModule(Module *M) {
276 // This must be a module which has already been added to this MCJIT instance.
277 assert(OwnedModules.ownsModule(M) && "MCJIT::finalizeModule: Unknown module.");
286 JITSymbol MCJIT::findExistingSymbol(const std::string &Name) {
295 Module *MCJIT::findModuleForSymbol(const std::string &Name,
322 uint64_t MCJIT::getSymbolAddress(const std::string &Name,
339 JITSymbol MCJIT::findSymbol(const std::string &Name,
396 uint64_t MCJIT::getGlobalValueAddress(const std::string &Name) {
404 uint64_t MCJIT::getFunctionAddress(const std::string &Name) {
413 void *MCJIT::getPointerToFunction(Function *F) {
448 void MCJIT::runStaticConstructorsDestructorsInModulePtrSet(
455 void MCJIT::runStaticConstructorsDestructors(bool isDtors) {
465 Function *MCJIT::FindFunctionNamedInModulePtrSet(StringRef FnName,
476 GlobalVariable *MCJIT::FindGlobalVariableNamedInModulePtrSet(StringRef Name,
489 Function *MCJIT::FindFunctionNamed(StringRef FnName) {
501 GlobalVariable *MCJIT::FindGlobalVariableNamed(StringRef Name, bool AllowInternal) {
513 GenericValue MCJIT::runFunction(Function *F, ArrayRef<GenericValue> ArgValues) {
610 report_fatal_error("MCJIT::runFunction does not support full-featured "
616 void *MCJIT::getPointerToNamedFunction(StringRef Name, bool AbortOnFailure) {
638 void MCJIT::RegisterJITEventListener(JITEventListener *L) {
645 void MCJIT::UnregisterJITEventListener(JITEventListener *L) {
656 void MCJIT::notifyObjectLoaded(const object::ObjectFile &Obj,
667 void MCJIT::notifyFreeingObject(const object::ObjectFile &Obj) {