Home
last modified time | relevance | path

Searched refs:TargetExtType (Results 1 – 25 of 46) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DDXILResource.h42 class RawBufferExtType : public TargetExtType {
62 static bool classof(const TargetExtType *T) { in classof()
66 return isa<TargetExtType>(T) && classof(cast<TargetExtType>(T)); in classof()
73 class TypedBufferExtType : public TargetExtType {
84 static bool classof(const TargetExtType *T) { in classof()
88 return isa<TargetExtType>(T) && classof(cast<TargetExtType>(T)); in classof()
95 class TextureExtType : public TargetExtType {
109 static bool classof(const TargetExtType *T) { in classof()
113 return isa<TargetExtType>(T) && classof(cast<TargetExtType>(T)); in classof()
120 class MSTextureExtType : public TargetExtType {
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DType.cpp81 if (auto *TT = dyn_cast<TargetExtType>(this)) in containsNonGlobalTargetExtType()
82 return !TT->hasProperty(TargetExtType::CanBeGlobal); in containsNonGlobalTargetExtType()
97 if (auto *TT = dyn_cast<TargetExtType>(this)) in containsNonLocalTargetExtType()
98 return !TT->hasProperty(TargetExtType::CanBeLocal); in containsNonLocalTargetExtType()
121 if (auto *TT = dyn_cast<TargetExtType>(this)) in isScalableTargetExtTy()
151 return cast<TargetExtType>(this)->getName() == "riscv.vector.tuple"; in isRISCVVectorTupleTy()
271 if (auto *TTy = dyn_cast<TargetExtType>(this)) in isSizedDerivedType()
796 if (auto *TTy = dyn_cast<TargetExtType>(ElemTy)) in isValidElementType()
797 return TTy->hasProperty(TargetExtType::CanBeVectorElement); in isValidElementType()
892 TargetExtType::TargetExtType(LLVMContext &C, StringRef Name, in TargetExtType() function in TargetExtType
[all …]
H A DLLVMContextImpl.h200 KeyTy(const TargetExtType *TT)
211 static inline TargetExtType *getEmptyKey() {
212 return DenseMapInfo<TargetExtType *>::getEmptyKey();
215 static inline TargetExtType *getTombstoneKey() {
216 return DenseMapInfo<TargetExtType *>::getTombstoneKey();
224 static unsigned getHashValue(const TargetExtType *FT) {
228 static bool isEqual(const KeyTy &LHS, const TargetExtType *RHS) {
234 static bool isEqual(const TargetExtType *LHS, const TargetExtType *RHS) {
1735 DenseMap<TargetExtType *, std::unique_ptr<ConstantTargetNone>> CTNConstants;
1780 using TargetExtTypeSet = DenseSet<TargetExtType *, TargetExtTypeKeyInfo>;
H A DIntrinsics.cpp103 } else if (TargetExtType *TETy = dyn_cast<TargetExtType>(Ty)) { in getMangledTypeStr()
526 return TargetExtType::get(Context, "aarch64.svcount"); in DecodeFixedType()
861 return !isa<TargetExtType>(Ty) || in matchIntrinsicType()
862 cast<TargetExtType>(Ty)->getName() != "aarch64.svcount"; in matchIntrinsicType()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DHLSLBufferLayoutBuilder.cpp69 llvm::TargetExtType *HLSLBufferLayoutBuilder::createLayoutType( in createLayoutType()
73 if (llvm::TargetExtType *Ty = in createLayoutType()
157 llvm::TargetExtType *NewLayoutTy = llvm::TargetExtType::get( in createLayoutType()
206 cast<llvm::TargetExtType>(createLayoutType(Ty->getAs<RecordType>())); in layoutField()
209 assert(isa<llvm::TargetExtType>(NewTy) && "expected target type"); in layoutField()
210 ElemSize = cast<llvm::TargetExtType>(NewTy)->getIntParameter(0); in layoutField()
228 assert(isa<llvm::TargetExtType>(ElemLayoutTy) && "expected target type"); in layoutField()
229 ElemSize = cast<llvm::TargetExtType>(ElemLayoutTy)->getIntParameter(0); in layoutField()
H A DCGHLSLRuntime.h160 llvm::TargetExtType *
163 llvm::TargetExtType *LayoutTy);
174 llvm::DenseMap<const clang::RecordType *, llvm::TargetExtType *> LayoutTypes;
H A DCGHLSLRuntime.cpp122 cast<llvm::TargetExtType>(BufType)->getTypeParameter(0); in emitBufferGlobalsAndMetadata()
124 cast<llvm::TargetExtType>(BufLayoutType)->getTypeParameter(0)); in emitBufferGlobalsAndMetadata()
261 llvm::TargetExtType *TargetTy = in addBuffer()
262 cast<llvm::TargetExtType>(convertHLSLSpecificType( in addBuffer()
282 llvm::TargetExtType *
291 llvm::TargetExtType *LayoutTy) { in addHLSLBufferLayoutType()
H A DHLSLBufferLayoutBuilder.h36 llvm::TargetExtType *
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DSPIR.cpp346 return llvm::TargetExtType::get(Ctx, BaseType, {llvm::Type::getVoidTy(Ctx)}, in getSPIRVImageType()
354 return llvm::TargetExtType::get(Ctx, "spirv.Pipe", {}, in getOpenCLType()
364 return llvm::TargetExtType::get(Ctx, "spirv.Sampler"); in getOpenCLType()
366 return llvm::TargetExtType::get(Ctx, "spirv.Event"); in getOpenCLType()
368 return llvm::TargetExtType::get(Ctx, "spirv.DeviceEvent"); in getOpenCLType()
370 return llvm::TargetExtType::get(Ctx, "spirv.Queue"); in getOpenCLType()
372 return llvm::TargetExtType::get(Ctx, "spirv.ReserveId"); in getOpenCLType()
375 return llvm::TargetExtType::get(Ctx, "spirv.Avc" #Id "INTEL"); in getOpenCLType()
405 return llvm::TargetExtType::get(Ctx, "spirv.IntegralConstant", in getInlineSpirvConstant()
407 return llvm::TargetExtType::get(Ctx, "spirv.Literal", {}, Words); in getInlineSpirvConstant()
[all …]
H A DDirectX.cpp71 return llvm::TargetExtType::get(Ctx, TypeName, {ElemType}, Ints); in getHLSLType()
84 return llvm::TargetExtType::get(Ctx, "dx.CBuffer", {BufferLayoutTy}); in getHLSLType()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h781 class TargetExtType : public Type {
782 TargetExtType(LLVMContext &C, StringRef Name, ArrayRef<Type *> Types,
790 TargetExtType(const TargetExtType &) = delete;
791 TargetExtType &operator=(const TargetExtType &) = delete;
795 LLVM_ABI static TargetExtType *get(LLVMContext &Context, StringRef Name,
802 LLVM_ABI static Expected<TargetExtType *>
809 LLVM_ABI static Expected<TargetExtType *> checkParams(TargetExtType *TTy);
866 return cast<TargetExtType>(this)->getName(); in getTargetExtName()
H A DConstants.h874 explicit ConstantTargetNone(TargetExtType *T)
883 LLVM_ABI static ConstantTargetNone *get(TargetExtType *T);
887 inline TargetExtType *getType() const {
888 return cast<TargetExtType>(Value::getType());
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMemoryUtils.h29 class TargetExtType; variable
39 TargetExtType *isNamedBarrier(const GlobalVariable &GV);
H A DAMDGPUMemoryUtils.cpp34 TargetExtType *isNamedBarrier(const GlobalVariable &GV) { in isNamedBarrier()
44 if (auto *TTy = dyn_cast<TargetExtType>(Ty)) in isNamedBarrier()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVUtils.h326 return TargetExtType::get(ElemTy->getContext(), TYPED_PTR_TARGET_EXT_NAME, in getTypedPointerWrapper()
330 inline bool isTypedPointerWrapper(const TargetExtType *ExtTy) { in isTypedPointerWrapper()
338 if (auto *ExtTy = dyn_cast<TargetExtType>(Ty)) in isPointerTyOrWrapper()
344 if (auto *ExtTy = dyn_cast<TargetExtType>(Ty)) { in applyWrappers()
361 else if (auto *ExtTy = dyn_cast<TargetExtType>(Ty)) in getPointeeType()
371 if (auto *ExtTy = dyn_cast<TargetExtType>(Ty2)) in isUntypedEquivalentToTyExt()
H A DSPIRVBuiltins.h71 TargetExtType *parseBuiltinTypeNameToTargetExtType(std::string TypeName,
H A DSPIRVGlobalRegistry.h614 const TargetExtType *T, bool EmitIr = false);
617 getImageType(const TargetExtType *ExtensionType,
626 const TargetExtType *ExtensionType,
H A DSPIRVBuiltins.cpp3046 static SPIRVType *getNonParameterizedType(const TargetExtType *ExtensionType, in getNonParameterizedType()
3061 static SPIRVType *getPipeType(const TargetExtType *ExtensionType, in getPipeType()
3072 static SPIRVType *getCoopMatrType(const TargetExtType *ExtensionType, in getCoopMatrType()
3089 static SPIRVType *getSampledImageType(const TargetExtType *OpaqueType, in getSampledImageType()
3098 static SPIRVType *getInlineSpirvType(const TargetExtType *ExtensionType, in getInlineSpirvType()
3108 if (const TargetExtType *ParamEType = dyn_cast<TargetExtType>(Param)) { in getInlineSpirvType()
3149 static SPIRVType *getVulkanBufferType(const TargetExtType *ExtensionType, in getVulkanBufferType()
3165 static SPIRVType *getLayoutType(const TargetExtType *ExtensionType, in getLayoutType()
3172 TargetExtType *parseBuiltinTypeNameToTargetExtType(std::string TypeName, in parseBuiltinTypeNameToTargetExtType()
3197 return TargetExtType::get(Context, NameWithParameters); in parseBuiltinTypeNameToTargetExtType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Frontend/HLSL/
H A DCBuffer.cpp19 auto *HandleTy = cast<TargetExtType>(Handle->getValueType()); in getMemberOffset()
23 auto *LayoutTy = cast<TargetExtType>(HandleTy->getTypeParameter(0)); in getMemberOffset()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILResourceImplicitBinding.cpp77 llvm::TargetExtType *HandleTy = nullptr; in assignBindings()
87 HandleTy = cast<TargetExtType>(IB.Call->getType()); in assignBindings()
H A DDXILShaderFlags.cpp169 dxil::ResourceTypeInfo &RTI = DRTM[cast<TargetExtType>(II->getType())]; in updateFunctionFlags()
189 DRTM[cast<TargetExtType>(II->getArgOperand(0)->getType())]; in updateFunctionFlags()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DValueTypes.cpp225 return TargetExtType::get(Context, "aarch64.svcount"); in getTypeForEVT()
264 TargetExtType *TargetExtTy = cast<TargetExtType>(Ty); in getVT()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInterleavedAccess.cpp273 Type *VecTupTy = TargetExtType::get( in lowerDeinterleaveIntrinsicToLoad()
347 Type *VecTupTy = TargetExtType::get( in lowerInterleaveIntrinsicToStore()
463 Type *VecTupTy = TargetExtType::get( in lowerInterleavedVPLoad()
574 Type *VecTupTy = TargetExtType::get( in lowerInterleavedVPStore()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DType.h39 class TargetExtType; variable
67 friend class TargetExtType; // For LLVMTy. variable
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DDXILResource.cpp222 ResourceTypeInfo::ResourceTypeInfo(TargetExtType *HandleTy, in ResourceTypeInfo()
429 static bool isROV(dxil::ResourceKind Kind, TargetExtType *Ty) { in isROV()
497 TargetExtType *Ty) { in getTypedElementType()
827 auto *HandleTy = cast<TargetExtType>(F.getReturnType()); in populateResourceInfos()
1021 auto *HandleTy = cast<TargetExtType>(F.getReturnType()); in populate()

12