/external/llvm-project/clang/include/clang/Basic/ |
D | AddressSpaces.h | 25 enum class LangAS : unsigned { enum 60 using LangASMap = unsigned[(unsigned)LangAS::FirstTargetAddressSpace]; 64 inline bool isTargetAddressSpace(LangAS AS) { in isTargetAddressSpace() 65 return (unsigned)AS >= (unsigned)LangAS::FirstTargetAddressSpace; in isTargetAddressSpace() 68 inline unsigned toTargetAddressSpace(LangAS AS) { in toTargetAddressSpace() 70 return (unsigned)AS - (unsigned)LangAS::FirstTargetAddressSpace; in toTargetAddressSpace() 73 inline LangAS getLangASFromTargetAS(unsigned TargetAS) { in getLangASFromTargetAS() 74 return static_cast<LangAS>((TargetAS) + in getLangASFromTargetAS() 75 (unsigned)LangAS::FirstTargetAddressSpace); in getLangASFromTargetAS() 78 inline bool isPtrSizeAddressSpace(LangAS AS) { in isPtrSizeAddressSpace() [all …]
|
D | TargetInfo.h | 413 virtual uint64_t getNullPointerValue(LangAS AddrSpace) const { return 0; } in getNullPointerValue() 1346 virtual LangAS getOpenCLBuiltinAddressSpace(unsigned AS) const { in getOpenCLBuiltinAddressSpace() 1352 virtual LangAS getCUDABuiltinAddressSpace(unsigned AS) const { in getCUDABuiltinAddressSpace() 1360 virtual llvm::Optional<LangAS> getConstantAddressSpace() const { in getConstantAddressSpace() 1361 return LangAS::Default; in getConstantAddressSpace() 1459 virtual LangAS getOpenCLTypeAddrSpace(OpenCLTypeKind TK) const;
|
/external/llvm-project/clang/lib/Basic/Targets/ |
D | AMDGPU.h | 315 LangAS getOpenCLTypeAddrSpace(OpenCLTypeKind TK) const override { in getOpenCLTypeAddrSpace() 318 return LangAS::opencl_constant; in getOpenCLTypeAddrSpace() 323 return LangAS::opencl_global; in getOpenCLTypeAddrSpace() 330 LangAS getOpenCLBuiltinAddressSpace(unsigned AS) const override { in getOpenCLBuiltinAddressSpace() 333 return LangAS::opencl_generic; in getOpenCLBuiltinAddressSpace() 335 return LangAS::opencl_global; in getOpenCLBuiltinAddressSpace() 337 return LangAS::opencl_local; in getOpenCLBuiltinAddressSpace() 339 return LangAS::opencl_constant; in getOpenCLBuiltinAddressSpace() 341 return LangAS::opencl_private; in getOpenCLBuiltinAddressSpace() 347 LangAS getCUDABuiltinAddressSpace(unsigned AS) const override { in getCUDABuiltinAddressSpace() [all …]
|
/external/llvm-project/clang/lib/CodeGen/ |
D | TargetInfo.h | 248 virtual LangAS getGlobalVarAddressSpace(CodeGenModule &CGM, 252 virtual LangAS getASTAllocaAddressSpace() const { return LangAS::Default; } in getASTAllocaAddressSpace() 261 llvm::Value *V, LangAS SrcAddr, 262 LangAS DestAddr, llvm::Type *DestTy, 272 LangAS SrcAddr, LangAS DestAddr, 276 virtual LangAS getAddrSpaceOfCxaAtexitPtrParam() const { in getAddrSpaceOfCxaAtexitPtrParam() 277 return LangAS::Default; in getAddrSpaceOfCxaAtexitPtrParam()
|
D | ConstantEmitter.h | 45 LangAS DestAddressSpace; 73 llvm::Constant *tryEmitForInitializer(const Expr *E, LangAS destAddrSpace, 75 llvm::Constant *emitForInitializer(const APValue &value, LangAS destAddrSpace, 156 void initializeNonAbstract(LangAS destAS) { in initializeNonAbstract()
|
D | CodeGenTypeCache.h | 97 LangAS ASTAllocaAddressSpace; 115 LangAS getASTAllocaAddressSpace() const { return ASTAllocaAddressSpace; } in getASTAllocaAddressSpace()
|
D | CodeGenModule.cpp | 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() [all …]
|
D | CGDecl.cpp | 204 if (D.getType().getAddressSpace() == LangAS::opencl_local) in EmitVarDecl() 254 LangAS AS = GetGlobalVarAddressSpace(&D); in getOrCreateStaticVarDecl() 260 if (Ty.getAddressSpace() == LangAS::opencl_local || in getOrCreateStaticVarDecl() 280 LangAS ExpectedAS = Ty.getAddressSpace(); in getOrCreateStaticVarDecl() 1409 Ty.getAddressSpace() == LangAS::Default || in EmitAutoVarAlloca() 1410 (Ty.getAddressSpace() == LangAS::opencl_private && getLangOpts().OpenCL)); in EmitAutoVarAlloca() 1462 Ty.getAddressSpace() == LangAS::opencl_constant) && in EmitAutoVarAlloca() 2456 auto SrcLangAS = getLangOpts().OpenCL ? LangAS::opencl_private : AllocaAS; in EmitParmDecl() 2458 getLangOpts().OpenCL ? LangAS::opencl_private : LangAS::Default; in EmitParmDecl()
|
D | CGBlocks.cpp | 195 CGM.getLLVMContext(), C.getTargetAddressSpace(LangAS::opencl_constant)); in buildBlockDescriptor() 259 AddrSpace = C.getTargetAddressSpace(LangAS::opencl_constant); in buildBlockDescriptor() 456 CGM.getContext().getTargetAddressSpace(LangAS::opencl_generic); in initializeForBlockHeader() 800 LangAS GenVoidPtrAddr = IsOpenCL ? LangAS::opencl_generic : LangAS::Default; in EmitBlockLiteral() 1136 AddrSpace = getContext().getTargetAddressSpace(LangAS::opencl_constant); in getBlockDescriptorType() 1196 Ctx.getAddrSpaceQualType(Ctx.VoidTy, LangAS::opencl_generic)); in EmitBlockCallExpr() 1358 AddrSpace = CGM.getContext().getTargetAddressSpace(LangAS::opencl_global); in buildGlobalBlock() 1427 ? getContext().getTargetAddressSpace(LangAS::opencl_generic) in setBlockContextParameter() 1476 getContext().VoidTy, LangAS::opencl_generic)); in GenerateBlockFunction()
|
D | CGOpenCLRuntime.cpp | 122 CGM.getContext().getTargetAddressSpace(LangAS::opencl_generic)); in getGenericVoidPointerType()
|
D | CGOpenMPRuntimeGPU.cpp | 1108 CGM.getContext().getTargetAddressSpace(LangAS::cuda_shared)); in emitNonSPMDKernel() 1240 CGM.getContext().getTargetAddressSpace(LangAS::cuda_shared)); in emitSPMDKernel() 2856 unsigned SharedAddressSpace = C.getTargetAddressSpace(LangAS::cuda_shared); in emitInterWarpCopyFunction() 4109 LangAS::opencl_global); in translateParameter() 4113 LangAS::opencl_generic); in translateParameter() 4394 auto AS = LangAS::Default; in getAddressOfLocalVariable() 4409 AS = LangAS::cuda_constant; in getAddressOfLocalVariable() 4412 AS = LangAS::cuda_shared; in getAddressOfLocalVariable() 4546 return CGM.getContext().getTargetAddressSpace(LangAS::cuda_constant); in getDefaultFirstprivateAddressSpace() 4550 LangAS &AS) { in hasAllocateAttributeForGlobalVar() [all …]
|
D | CGOpenMPRuntimeGPU.h | 409 bool hasAllocateAttributeForGlobalVar(const VarDecl *VD, LangAS &AS) override;
|
/external/clang/lib/CodeGen/ |
D | CGOpenCLRuntime.cpp | 38 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global); in convertOpenCLSpecificType() 72 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global); in getPipeType()
|
/external/llvm-project/clang/include/clang/Sema/ |
D | ParsedAttr.h | 603 LangAS asOpenCLLangAS() const { in asOpenCLLangAS() 606 return LangAS::opencl_constant; in asOpenCLLangAS() 608 return LangAS::opencl_global; in asOpenCLLangAS() 610 return LangAS::opencl_global_device; in asOpenCLLangAS() 612 return LangAS::opencl_global_host; in asOpenCLLangAS() 614 return LangAS::opencl_local; in asOpenCLLangAS() 616 return LangAS::opencl_private; in asOpenCLLangAS() 618 return LangAS::opencl_generic; in asOpenCLLangAS() 620 return LangAS::Default; in asOpenCLLangAS()
|
D | Overload.h | 1023 LangAS DestAS = LangAS::Default; 1145 LangAS getDestAS() { return DestAS; } in getDestAS() 1147 void setDestAS(LangAS AS) { in setDestAS()
|
/external/clang/include/clang/Basic/ |
D | AddressSpaces.h | 21 namespace LangAS {
|
D | TargetInfo.h | 85 const LangAS::Map *AddrSpaceMap; 920 const LangAS::Map &getAddressSpaceMap() const { in getAddressSpaceMap()
|
/external/llvm-project/clang/lib/AST/ |
D | TypePrinter.cpp | 2061 if (getAddressSpace() != LangAS::Default) in isEmptyWhenPrinted() 2074 std::string Qualifiers::getAddrSpaceAsString(LangAS AS) { in getAddrSpaceAsString() 2076 case LangAS::Default: in getAddrSpaceAsString() 2078 case LangAS::opencl_global: in getAddrSpaceAsString() 2080 case LangAS::opencl_local: in getAddrSpaceAsString() 2082 case LangAS::opencl_private: in getAddrSpaceAsString() 2084 case LangAS::opencl_constant: in getAddrSpaceAsString() 2086 case LangAS::opencl_generic: in getAddrSpaceAsString() 2088 case LangAS::opencl_global_device: in getAddrSpaceAsString() 2090 case LangAS::opencl_global_host: in getAddrSpaceAsString() [all …]
|
D | MicrosoftMangle.cpp | 340 LangAS AddrSpace = Quals.getAddressSpace(); in is64BitPointer() 341 return AddrSpace == LangAS::ptr64 || in is64BitPointer() 342 (PointersAre64Bit && !(AddrSpace == LangAS::ptr32_sptr || in is64BitPointer() 343 AddrSpace == LangAS::ptr32_uptr)); in is64BitPointer() 2045 LangAS AS = Quals.getAddressSpace(); in mangleAddressSpaceType() 2054 case LangAS::opencl_global: in mangleAddressSpaceType() 2057 case LangAS::opencl_global_device: in mangleAddressSpaceType() 2060 case LangAS::opencl_global_host: in mangleAddressSpaceType() 2063 case LangAS::opencl_local: in mangleAddressSpaceType() 2066 case LangAS::opencl_constant: in mangleAddressSpaceType() [all …]
|
D | ItaniumMangle.cpp | 2357 LangAS AS = Quals.getAddressSpace(); in mangleQualifiers() 2370 case LangAS::opencl_global: in mangleQualifiers() 2373 case LangAS::opencl_global_device: in mangleQualifiers() 2376 case LangAS::opencl_global_host: in mangleQualifiers() 2379 case LangAS::opencl_local: in mangleQualifiers() 2382 case LangAS::opencl_constant: in mangleQualifiers() 2385 case LangAS::opencl_private: in mangleQualifiers() 2388 case LangAS::opencl_generic: in mangleQualifiers() 2392 case LangAS::cuda_device: in mangleQualifiers() 2395 case LangAS::cuda_constant: in mangleQualifiers() [all …]
|
/external/llvm-project/clang/lib/Basic/ |
D | TargetInfo.cpp | 447 LangAS TargetInfo::getOpenCLTypeAddrSpace(OpenCLTypeKind TK) const { in getOpenCLTypeAddrSpace() 451 return LangAS::opencl_global; in getOpenCLTypeAddrSpace() 454 return LangAS::opencl_constant; in getOpenCLTypeAddrSpace() 457 return LangAS::Default; in getOpenCLTypeAddrSpace()
|
/external/llvm-project/clang/include/clang/AST/ |
D | Type.h | 361 LangAS getAddressSpace() const { 362 return static_cast<LangAS>(Mask >> AddressSpaceShift); 373 assert(Addr == LangAS::Default || hasTargetSpecificAddressSpace()); 374 if (Addr != LangAS::Default) 381 void setAddressSpace(LangAS space) { 386 void removeAddressSpace() { setAddressSpace(LangAS::Default); } 387 void addAddressSpace(LangAS space) { 388 assert(space != LangAS::Default); 478 static bool isAddressSpaceSupersetOf(LangAS A, LangAS B) { 483 (A == LangAS::opencl_generic && B != LangAS::opencl_constant) || [all …]
|
/external/clang/include/clang/AST/ |
D | ASTContext.h | 443 const LangAS::Map *AddrSpaceMap; 2209 if (AS < LangAS::Offset || AS >= LangAS::Offset + LangAS::Count) in getTargetAddressSpace() 2212 return (*AddrSpaceMap)[AS - LangAS::Offset]; in getTargetAddressSpace() 2217 AS < LangAS::Offset || in addressSpaceMapManglingFor() 2218 AS >= LangAS::Offset + LangAS::Count; in addressSpaceMapManglingFor()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaType.cpp | 2065 ? LangAS::opencl_generic in deduceOpenCLPointeeAddrSpace() 2066 : LangAS::opencl_private); in deduceOpenCLPointeeAddrSpace() 4356 static bool DiagnoseMultipleAddrSpaceAttributes(Sema &S, LangAS ASOld, in DiagnoseMultipleAddrSpaceAttributes() 4357 LangAS ASNew, in DiagnoseMultipleAddrSpaceAttributes() 4359 if (ASOld != LangAS::Default) { in DiagnoseMultipleAddrSpaceAttributes() 5315 LangAS ASIdx = LangAS::Default; in GetFullTypeForDeclarator() 5320 LangAS ASIdxNew = attr.asOpenCLLangAS(); in GetFullTypeForDeclarator() 5329 LangAS AS = in GetFullTypeForDeclarator() 5330 (ASIdx == LangAS::Default ? S.getDefaultCXXMethodAddrSpace() in GetFullTypeForDeclarator() 6332 static bool BuildAddressSpaceIndex(Sema &S, LangAS &ASIdx, in BuildAddressSpaceIndex() [all …]
|
/external/mesa3d/src/gallium/frontends/clover/llvm/codegen/ |
D | common.cpp | 213 static_cast<unsigned>(clang::LangAS::opencl_local); in make_kernel_args()
|