Lines Matching refs:LangAS
1400 static unsigned ArgInfoAddressSpace(LangAS AS) { in ArgInfoAddressSpace()
1402 case LangAS::opencl_global: in ArgInfoAddressSpace()
1404 case LangAS::opencl_constant: in ArgInfoAddressSpace()
1406 case LangAS::opencl_local: in ArgInfoAddressSpace()
1408 case LangAS::opencl_generic: in ArgInfoAddressSpace()
1410 case LangAS::opencl_global_device: in ArgInfoAddressSpace()
1412 case LangAS::opencl_global_host: in ArgInfoAddressSpace()
1490 (pointeeTy.getAddressSpace() == LangAS::opencl_constant)) in GenOpenCLArgMetadata()
1498 AddrSpc = ArgInfoAddressSpace(LangAS::opencl_global); in GenOpenCLArgMetadata()
3813 LangAS ExpectedAS = in GetOrCreateLLVMGlobal()
3815 : (LangOpts.OpenCL ? LangAS::opencl_global : LangAS::Default); in GetOrCreateLLVMGlobal()
3923 Ty, getContext().getTargetAddressSpace(LangAS::opencl_global)) in CreateRuntimeVariable()
3962 LangAS CodeGenModule::GetGlobalVarAddressSpace(const VarDecl *D) { in GetGlobalVarAddressSpace()
3963 LangAS AddrSpace = LangAS::Default; in GetGlobalVarAddressSpace()
3965 AddrSpace = D ? D->getType().getAddressSpace() : LangAS::opencl_global; in GetGlobalVarAddressSpace()
3966 assert(AddrSpace == LangAS::opencl_global || in GetGlobalVarAddressSpace()
3967 AddrSpace == LangAS::opencl_global_device || in GetGlobalVarAddressSpace()
3968 AddrSpace == LangAS::opencl_global_host || in GetGlobalVarAddressSpace()
3969 AddrSpace == LangAS::opencl_constant || in GetGlobalVarAddressSpace()
3970 AddrSpace == LangAS::opencl_local || in GetGlobalVarAddressSpace()
3971 AddrSpace >= LangAS::FirstTargetAddressSpace); in GetGlobalVarAddressSpace()
3977 return LangAS::cuda_constant; in GetGlobalVarAddressSpace()
3979 return LangAS::cuda_shared; in GetGlobalVarAddressSpace()
3981 return LangAS::cuda_device; in GetGlobalVarAddressSpace()
3983 return LangAS::cuda_constant; in GetGlobalVarAddressSpace()
3985 return LangAS::cuda_device; in GetGlobalVarAddressSpace()
3989 LangAS AS; in GetGlobalVarAddressSpace()
3996 LangAS CodeGenModule::getStringLiteralAddressSpace() const { in getStringLiteralAddressSpace()
3999 return LangAS::opencl_constant; in getStringLiteralAddressSpace()
4002 return LangAS::Default; in getStringLiteralAddressSpace()
4019 if (AS != LangAS::Default) in castStringLiteralToDefaultAddressSpace()
4021 CGM, GV, AS.getValue(), LangAS::Default, in castStringLiteralToDefaultAddressSpace()
4023 CGM.getContext().getTargetAddressSpace(LangAS::Default))); in castStringLiteralToDefaultAddressSpace()
5342 LangAS AddrSpace = in GetAddrOfGlobalTemporary()
5390 if (AddrSpace != LangAS::Default) in GetAddrOfGlobalTemporary()
5392 *this, GV, AddrSpace, LangAS::Default, in GetAddrOfGlobalTemporary()
5394 getContext().getTargetAddressSpace(LangAS::Default))); in GetAddrOfGlobalTemporary()