File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
compiler/rustc_codegen_llvm/src/builder Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,24 @@ pub(crate) fn gen_image_wrapper_module<'ll>(
7474 let zeroinit = cx. const_null ( offload_entry_arr) ;
7575 llvm:: set_initializer ( llglobal, zeroinit) ;
7676
77+ let mapper_fn_ty = cx. type_func ( & [ tptr] , cx. type_void ( ) ) ;
78+ let foo = crate :: declare:: declare_simple_fn (
79+ & cx,
80+ & "__tgt_unregister_lib" ,
81+ llvm:: CallConv :: CCallConv ,
82+ llvm:: UnnamedAddr :: No ,
83+ llvm:: Visibility :: Default ,
84+ mapper_fn_ty,
85+ ) ;
86+ let bar = crate :: declare:: declare_simple_fn (
87+ & cx,
88+ & "__tgt_register_lib" ,
89+ llvm:: CallConv :: CCallConv ,
90+ llvm:: UnnamedAddr :: No ,
91+ llvm:: Visibility :: Default ,
92+ mapper_fn_ty,
93+ ) ;
94+
7795 // @__start_omp_offloading_entries = external hidden constant [0 x %struct.__tgt_offload_entry]
7896 // @__stop_omp_offloading_entries = external hidden constant [0 x %struct.__tgt_offload_entry]
7997 // @__dummy.omp_offloading_entries = internal constant [0 x %struct.__tgt_offload_entry] zeroinitializer, section "omp_offloading_entries"
You can’t perform that action at this time.
0 commit comments