Lines Matching refs:getContext
38 return llvm::PointerType::get(Ty->getContext(), ToAS); in coerceKernelArgumentType()
62 uint32_t NumRegs = (getContext().getTypeSize(Base) + 31) / 32; in isHomogeneousAggregateSmallEnough()
76 unsigned EltSize = getContext().getTypeSize(EltTy); in numRegsForType()
98 return (getContext().getTypeSize(Ty) + 31) / 32; in numRegsForType()
126 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
136 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
140 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
150 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
178 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyKernelArgumentType()
183 if (getContext().getLangOpts().HIP) { in classifyKernelArgumentType()
185 OrigLTy, /*FromAS=*/getContext().getTargetAddressSpace(LangAS::Default), in classifyKernelArgumentType()
186 /*ToAS=*/getContext().getTargetAddressSpace(LangAS::cuda_device)); in classifyKernelArgumentType()
195 if (!getContext().getLangOpts().OpenCL && LTy == OrigLTy && in classifyKernelArgumentType()
198 getContext().getTypeAlignInChars(Ty), in classifyKernelArgumentType()
199 getContext().getTargetAddressSpace(LangAS::opencl_constant), in classifyKernelArgumentType()
230 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
236 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
246 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
273 getContext().getTypeAlignInChars(Ty), in classifyArgumentType()
274 getContext().getTargetAddressSpace(LangAS::opencl_private)); in classifyArgumentType()
379 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes()
384 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes()
389 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes()
414 auto *Type = llvm::IntegerType::getIntNTy(CGM.getModule().getContext(), 32); in emitTargetGlobals()
423 CGM.getContext().getTargetAddressSpace(LangAS::opencl_constant)); in emitTargetGlobals()
453 if (M.getContext().getTargetInfo().allowAMDGPUUnsafeFPAtomics()) in setTargetAttributes()
472 if (CGM.getContext().getTargetNullPointerValue(QT) == 0) in getNullPointer()
475 auto &Ctx = CGM.getContext(); in getNullPointer()
477 PT->getContext(), Ctx.getTargetAddressSpace(LangAS::opencl_generic)); in getNullPointer()
489 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global)); in getGlobalVarAddressSpace()
498 if (D->getType().isConstantStorage(CGM.getContext(), false, false) && in getGlobalVarAddressSpace()
559 FT = getABIInfo().getContext().adjustFunctionType( in setCUDAKernelCallingConvention()
651 Min = FlatWGS->getMin()->EvaluateKnownConstInt(getContext()).getExtValue(); in handleAMDGPUFlatWorkGroupSizeAttr()
652 Max = FlatWGS->getMax()->EvaluateKnownConstInt(getContext()).getExtValue(); in handleAMDGPUFlatWorkGroupSizeAttr()
674 Attr->getMin()->EvaluateKnownConstInt(getContext()).getExtValue(); in handleAMDGPUWavesPerEUAttr()
677 ? Attr->getMax()->EvaluateKnownConstInt(getContext()).getExtValue() in handleAMDGPUWavesPerEUAttr()