Lines Matching refs:IsHIP

295 GlobalVariable *createFatbinDesc(Module &M, ArrayRef<char> Image, bool IsHIP) {  in createFatbinDesc()  argument
302 IsHIP ? ".hip_fatbin" in createFatbinDesc()
311 StringRef FatbinWrapperSection = IsHIP ? ".hipFatBinSegment" in createFatbinDesc()
315 ConstantInt::get(Type::getInt32Ty(C), IsHIP ? HIPFatMagic : CudaFatMagic), in createFatbinDesc()
337 IsHIP ? "__dummy.hip_offloading.entry" : "__dummy.cuda_offloading.entry"); in createFatbinDesc()
339 DummyEntry->setSection(IsHIP ? "hip_offloading_entries" in createFatbinDesc()
368 Function *createRegisterGlobalsFunction(Module &M, bool IsHIP) { in createRegisterGlobalsFunction() argument
379 IsHIP ? "__hipRegisterFunction" : "__cudaRegisterFunction", RegFuncTy); in createRegisterGlobalsFunction()
389 IsHIP ? "__hipRegisterVar" : "__cudaRegisterVar", RegVarTy); in createRegisterGlobalsFunction()
396 IsHIP ? "__start_hip_offloading_entries" in createRegisterGlobalsFunction()
403 IsHIP ? "__stop_hip_offloading_entries" in createRegisterGlobalsFunction()
412 IsHIP ? ".hip.globals_reg" : ".cuda.globals_reg", &M); in createRegisterGlobalsFunction()
519 bool IsHIP) { in createRegisterFatbinFunction() argument
524 IsHIP ? ".hip.fatbin_reg" : ".cuda.fatbin_reg", &M); in createRegisterFatbinFunction()
530 IsHIP ? ".hip.fatbin_unreg" : ".cuda.fatbin_unreg", &M); in createRegisterFatbinFunction()
538 IsHIP ? "__hipRegisterFatBinary" : "__cudaRegisterFatBinary", RegFatTy); in createRegisterFatbinFunction()
550 IsHIP ? "__hipUnregisterFatBinary" : "__cudaUnregisterFatBinary", in createRegisterFatbinFunction()
562 IsHIP ? ".hip.binary_handle" : ".cuda.binary_handle"); in createRegisterFatbinFunction()
572 CtorBuilder.CreateCall(createRegisterGlobalsFunction(M, IsHIP), Handle); in createRegisterFatbinFunction()
573 if (!IsHIP) in createRegisterFatbinFunction()