@@ -10,11 +10,11 @@ Base.Experimental.@MethodTable(test_method_table)
1010struct CompilerParams <: AbstractCompilerParams
1111 entry_safepoint:: Bool
1212 method_table
13- relocatable :: Bool
13+ jit :: Bool
1414
1515 CompilerParams (entry_safepoint:: Bool = false , method_table= test_method_table,
16- relocatable :: Bool = false ) =
17- new (entry_safepoint, method_table, relocatable )
16+ jit :: Bool = false ) =
17+ new (entry_safepoint, method_table, jit )
1818end
1919
2020module Runtime end
@@ -27,7 +27,7 @@ GPUCompiler.can_safepoint(@nospecialize(job::NativeCompilerJob)) = job.config.pa
2727function GPUCompiler. lower_host_references! (@nospecialize (job:: NativeCompilerJob ),
2828 mod:: LLVM.Module ,
2929 refs:: GPUCompiler.HostReferences )
30- if job. config. params. relocatable
30+ if job. config. params. jit
3131 GPUCompiler. emit_host_reference_declarations! (mod, refs)
3232 else
3333 invoke (GPUCompiler. lower_host_references!,
3737
3838function GPUCompiler. mcgen (@nospecialize (job:: NativeCompilerJob ), mod:: LLVM.Module ,
3939 format= LLVM. API. LLVMAssemblyFile)
40- if job. config. params. relocatable
40+ if job. config. params. jit
4141 target = job. config. target
4242 @dispose tm= JITTargetMachine (GPUCompiler. llvm_triple (target), target. cpu,
4343 target. features) begin
5151
5252function create_job (@nospecialize (func), @nospecialize (types);
5353 entry_safepoint:: Bool = false , method_table= test_method_table,
54- relocatable :: Bool = false , kwargs... )
54+ jit :: Bool = false , kwargs... )
5555 config_kwargs, kwargs = split_kwargs (kwargs, GPUCompiler. CONFIG_KWARGS)
5656 source = methodinstance (typeof (func), Base. to_tuple_type (types), Base. get_world_counter ())
5757 target = NativeCompilerTarget (;jlruntime= true )
58- params = CompilerParams (entry_safepoint, method_table, relocatable )
58+ params = CompilerParams (entry_safepoint, method_table, jit )
5959 config = CompilerConfig (target, params; kernel= false , config_kwargs... )
6060 CompilerJob (source, config), kwargs
6161end
0 commit comments