================
@@ -3262,6 +3262,15 @@ void 
LoweringPreparePass::buildCUDARegisterVars(cir::CIRBaseBuilderTy &builder,
       FuncType::get({voidPtrPtrTy, voidPtrTy, voidPtrTy, voidPtrTy, intTy,
                      sizeTy, intTy, intTy},
                     voidTy));
+  // void __hipRegisterManagedVar(void **fatbinHandle, char *managedVar,
+  //                              char *var, const char *deviceName,
+  //                              size_t size, unsigned align);
+  FuncOp cudaRegisterManagedVar = buildRuntimeFunction(
+      globalBuilder, addUnderscoredPrefix(cudaPrefix, "RegisterManagedVar"),
+      loc,
+      FuncType::get(
+          {voidPtrPtrTy, voidPtrTy, voidPtrTy, voidPtrTy, sizeTy, intTy},
+          voidTy));
----------------
aobolensk wrote:

Done

https://github.com/llvm/llvm-project/pull/230910
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to