@@ -1305,10 +1305,8 @@ extern "C" JL_DLLEXPORT
13051305uint64_t jl_get_llvm_fptr (llvm::Function *llvmf)
13061306{
13071307 uint64_t addr = getAddressForFunction (llvmf);
1308- #ifdef USE_ORCJIT
13091308 if (!addr)
13101309 addr = jl_ExecutionEngine->findUnmangledSymbol (llvmf->getName ()).getAddress ();
1311- #endif
13121310 return addr;
13131311}
13141312
@@ -7008,9 +7006,6 @@ extern "C" void *jl_init_llvm(void)
70087006 .setOptLevel (CodeGenOpt::None)
70097007#else
70107008 .setOptLevel (jl_options.opt_level == 0 ? CodeGenOpt::None : CodeGenOpt::Aggressive)
7011- #endif
7012- #ifdef USE_ORCMCJIT
7013- .setUseOrcMCJITReplacement (true )
70147009#endif
70157010 ;
70167011 Triple TheTriple (sys::getProcessTriple ());
@@ -7033,21 +7028,7 @@ extern "C" void *jl_init_llvm(void)
70337028 #endif
70347029
70357030 init_julia_llvm_meta ();
7036- #ifdef USE_ORCJIT
70377031 jl_ExecutionEngine = new JuliaOJIT (*jl_TargetMachine);
7038- #else
7039- jl_ExecutionEngine = eb.create (jl_TargetMachine);
7040- // jl_printf(JL_STDERR,"%s\n",jl_ExecutionEngine->getDataLayout()->getStringRepresentation().c_str());
7041- if (!jl_ExecutionEngine) {
7042- jl_printf (JL_STDERR, " Critical error initializing llvm: %s\n " ,
7043- ErrorStr.c_str ());
7044- exit (1 );
7045- }
7046- #if !defined(USE_ORCMCJIT)
7047- jl_ExecutionEngine->setProcessAllSections (true );
7048- #endif
7049- jl_ExecutionEngine->DisableLazyCompilation ();
7050- #endif
70517032
70527033// Mark our address spaces as non-integral
70537034#if JL_LLVM_VERSION >= 40000
@@ -7067,21 +7048,6 @@ extern "C" void jl_init_codegen(void)
70677048 Module *m = (Module *)jl_init_llvm ();
70687049 init_julia_llvm_env (m);
70697050
7070- #ifndef USE_ORCJIT
7071- jl_ExecutionEngine->RegisterJITEventListener (CreateJuliaJITEventListener ());
7072- #ifdef JL_USE_INTEL_JITEVENTS
7073- if (jl_using_intel_jitevents)
7074- jl_ExecutionEngine->RegisterJITEventListener (
7075- JITEventListener::createIntelJITEventListener ());
7076- #endif // JL_USE_INTEL_JITEVENTS
7077-
7078- #ifdef JL_USE_OPROFILE_JITEVENTS
7079- if (jl_using_oprofile_jitevents)
7080- jl_ExecutionEngine->RegisterJITEventListener (
7081- JITEventListener::createOProfileJITEventListener ());
7082- #endif // JL_USE_OPROFILE_JITEVENTS
7083- #endif
7084-
70857051 BOX_F (int8,int8); UBOX_F (uint8,uint8);
70867052 BOX_F (int16,int16); UBOX_F (uint16,uint16);
70877053 BOX_F (int32,int32); UBOX_F (uint32,uint32);
0 commit comments