Home
last modified time | relevance | path

Searched refs:LangAS (Results 1 – 25 of 83) sorted by relevance

1234

/external/llvm-project/clang/include/clang/Basic/
DAddressSpaces.h25 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 …]
DTargetInfo.h413 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/
DAMDGPU.h315 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/
DTargetInfo.h248 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()
DConstantEmitter.h45 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()
DCodeGenTypeCache.h97 LangAS ASTAllocaAddressSpace;
115 LangAS getASTAllocaAddressSpace() const { return ASTAllocaAddressSpace; } in getASTAllocaAddressSpace()
DCodeGenModule.cpp1400 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 …]
DCGDecl.cpp204 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()
DCGBlocks.cpp195 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()
DCGOpenCLRuntime.cpp122 CGM.getContext().getTargetAddressSpace(LangAS::opencl_generic)); in getGenericVoidPointerType()
DCGOpenMPRuntimeGPU.cpp1108 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 …]
DCGOpenMPRuntimeGPU.h409 bool hasAllocateAttributeForGlobalVar(const VarDecl *VD, LangAS &AS) override;
/external/clang/lib/CodeGen/
DCGOpenCLRuntime.cpp38 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global); in convertOpenCLSpecificType()
72 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global); in getPipeType()
/external/llvm-project/clang/include/clang/Sema/
DParsedAttr.h603 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()
DOverload.h1023 LangAS DestAS = LangAS::Default;
1145 LangAS getDestAS() { return DestAS; } in getDestAS()
1147 void setDestAS(LangAS AS) { in setDestAS()
/external/clang/include/clang/Basic/
DAddressSpaces.h21 namespace LangAS {
DTargetInfo.h85 const LangAS::Map *AddrSpaceMap;
920 const LangAS::Map &getAddressSpaceMap() const { in getAddressSpaceMap()
/external/llvm-project/clang/lib/AST/
DTypePrinter.cpp2061 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 …]
DMicrosoftMangle.cpp340 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 …]
DItaniumMangle.cpp2357 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/
DTargetInfo.cpp447 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/
DType.h361 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/
DASTContext.h443 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/
DSemaType.cpp2065 ? 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/
Dcommon.cpp213 static_cast<unsigned>(clang::LangAS::opencl_local); in make_kernel_args()

1234