Lines Matching defs:LLJIT
1 //===--------- LLJIT.cpp - An ORC-based JIT for compiling LLVM IR ---------===//
9 #include "llvm/ExecutionEngine/Orc/LLJIT.h"
131 class GenericLLVMIRPlatformSupport : public LLJIT::PlatformSupport {
133 GenericLLVMIRPlatformSupport(LLJIT &J, JITDylib &PlatformJD)
483 LLJIT &J;
577 class InactivePlatformSupport : public LLJIT::PlatformSupport {
648 void LLJIT::PlatformSupport::setInitTransform(
649 LLJIT &J, IRTransformLayer::TransformFunction T) {
653 LLJIT::PlatformSupport::~PlatformSupport() = default;
657 LLVM_DEBUG(dbgs() << "Preparing to create LLJIT instance...\n");
679 "LLJIT num-compile-threads is " + Twine(NumCompileThreads) +
698 "LLJIT concurrent compilation support requested, but LLVM was built "
826 SetupProcessSymbolsJITDylib = [](LLJIT &J) -> Expected<JITDylibSP> {
841 LLJIT::~LLJIT() {
846 JITDylibSP LLJIT::getProcessSymbolsJITDylib() { return ProcessSymbols; }
848 JITDylibSP LLJIT::getPlatformJITDylib() { return Platform; }
850 Expected<JITDylib &> LLJIT::createJITDylib(std::string Name) {
859 Expected<JITDylib &> LLJIT::loadPlatformDynamicLibrary(const char *Path) {
872 Error LLJIT::linkStaticLibraryInto(JITDylib &JD,
884 Error LLJIT::linkStaticLibraryInto(JITDylib &JD, const char *Path) {
894 Error LLJIT::addIRModule(ResourceTrackerSP RT, ThreadSafeModule TSM) {
904 Error LLJIT::addIRModule(JITDylib &JD, ThreadSafeModule TSM) {
908 Error LLJIT::addObjectFile(ResourceTrackerSP RT,
915 Error LLJIT::addObjectFile(JITDylib &JD, std::unique_ptr<MemoryBuffer> Obj) {
919 Expected<ExecutorAddr> LLJIT::lookupLinkerMangled(JITDylib &JD,
930 LLJIT::createObjectLinkingLayer(LLJITBuilderState &S, ExecutionSession &ES) {
959 LLJIT::createCompileFunction(LLJITBuilderState &S,
977 LLJIT::LLJIT(LLJITBuilderState &S, Error &Err)
1063 std::string LLJIT::mangle(StringRef UnmangledName) const {
1072 Error LLJIT::applyDataLayout(Module &M) {
1086 Error setUpOrcPlatformManually(LLJIT &J) {
1087 LLVM_DEBUG({ dbgs() << "Setting up orc platform support for LLJIT\n"; });
1094 LoadAndLinkDynLibrary(LLJIT &J) : J(J) {}
1108 LLJIT &J;
1111 Expected<JITDylibSP> ExecutorNativePlatform::operator()(LLJIT &J) {
1193 Expected<JITDylibSP> setUpGenericLLVMIRPlatform(LLJIT &J) {
1195 { dbgs() << "Setting up GenericLLVMIRPlatform support for LLJIT\n"; });
1211 Expected<JITDylibSP> setUpInactivePlatform(LLJIT &J) {
1213 { dbgs() << "Explicitly deactivated platform support for LLJIT\n"; });
1235 LLLazyJIT::LLLazyJIT(LLLazyJITBuilderState &S, Error &Err) : LLJIT(S, Err) {
1237 // If LLJIT construction failed then bail out.
1280 // In-process LLJIT uses eh-frame section wrappers via EPC, so we need to force