• Home
  • Raw
  • Download

Lines Matching refs:CGM

61     auto ConstStr = CGM.GetAddrOfConstantCString(Str, Name.c_str());  in makeConstantString()
69 CGNVCUDARuntime(CodeGenModule &CGM);
84 CGNVCUDARuntime::CGNVCUDARuntime(CodeGenModule &CGM) in CGNVCUDARuntime() argument
85 : CGCUDARuntime(CGM), Context(CGM.getLLVMContext()), in CGNVCUDARuntime()
86 TheModule(CGM.getModule()) { in CGNVCUDARuntime()
87 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in CGNVCUDARuntime()
88 ASTContext &Ctx = CGM.getContext(); in CGNVCUDARuntime()
102 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, in getSetupArgumentFn()
109 return CGM.CreateRuntimeFunction( in getLaunchFn()
187 CGBuilderTy Builder(CGM, Context); in makeRegisterGlobalsFn()
195 llvm::Constant *RegisterFunc = CGM.CreateRuntimeFunction( in makeRegisterGlobalsFn()
219 llvm::Constant *RegisterVar = CGM.CreateRuntimeFunction( in makeRegisterGlobalsFn()
227 CGM.getDataLayout().getTypeAllocSize(Var->getValueType()); in makeRegisterGlobalsFn()
256 if (CGM.getCodeGenOpts().CudaGpuBinaryFileNames.empty()) in makeModuleCtorFunction()
262 llvm::Constant *RegisterFatbinFunc = CGM.CreateRuntimeFunction( in makeModuleCtorFunction()
274 CGBuilderTy CtorBuilder(CGM, Context); in makeModuleCtorFunction()
284 CGM.getCodeGenOpts().CudaGpuBinaryFileNames) { in makeModuleCtorFunction()
288 CGM.getDiags().Report(diag::err_cannot_open_file) << GpuBinaryFileName in makeModuleCtorFunction()
314 CGM.getPointerAlign()); in makeModuleCtorFunction()
343 llvm::Constant *UnregisterFatbinFunc = CGM.CreateRuntimeFunction( in makeModuleDtorFunction()
352 CGBuilderTy DtorBuilder(CGM, Context); in makeModuleDtorFunction()
357 DtorBuilder.CreateAlignedLoad(GpuBinaryHandle, CGM.getPointerAlign()); in makeModuleDtorFunction()
365 CGCUDARuntime *CodeGen::CreateNVCUDARuntime(CodeGenModule &CGM) { in CreateNVCUDARuntime() argument
366 return new CGNVCUDARuntime(CGM); in CreateNVCUDARuntime()