Lines Matching defs:CGM
60 auto ConstStr = CGM.GetAddrOfConstantCString(Str, Name.c_str());
68 CGNVCUDARuntime(CodeGenModule &CGM);
79 CGNVCUDARuntime::CGNVCUDARuntime(CodeGenModule &CGM)
80 : CGCUDARuntime(CGM), Context(CGM.getLLVMContext()),
81 TheModule(CGM.getModule()) {
82 CodeGen::CodeGenTypes &Types = CGM.getTypes();
83 ASTContext &Ctx = CGM.getContext();
100 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy,
107 return CGM.CreateRuntimeFunction(
176 CGBuilderTy Builder(CGM, Context);
184 llvm::Constant *RegisterFunc = CGM.CreateRuntimeFunction(
221 llvm::Constant *RegisterFatbinFunc = CGM.CreateRuntimeFunction(
233 CGBuilderTy CtorBuilder(CGM, Context);
243 CGM.getCodeGenOpts().CudaGpuBinaryFileNames) {
247 CGM.getDiags().Report(diag::err_cannot_open_file) << GpuBinaryFileName
271 CGM.getPointerAlign());
295 llvm::Constant *UnregisterFatbinFunc = CGM.CreateRuntimeFunction(
304 CGBuilderTy DtorBuilder(CGM, Context);
309 DtorBuilder.CreateAlignedLoad(GpuBinaryHandle, CGM.getPointerAlign());
317 CGCUDARuntime *CodeGen::CreateNVCUDARuntime(CodeGenModule &CGM) {
318 return new CGNVCUDARuntime(CGM);