| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | EquivalenceClasses.h | 62 template <class ElemTy> class EquivalenceClasses { 78 ElemTy Data; 82 ECValue(const ElemTy &Elt) in ECValue() 118 const ElemTy &getData() const { return Data; } in getData() 129 DenseMap<ElemTy, ECValue *> TheMapping; 178 iterator_range<member_iterator> members(const ElemTy &V) const { in members() 183 bool contains(const ElemTy &V) const { in contains() 190 const ElemTy &getLeaderValue(const ElemTy &V) const { in getLeaderValue() 199 const ElemTy &getOrInsertLeaderValue(const ElemTy &V) { in getOrInsertLeaderValue() 220 const ECValue &insert(const ElemTy &Data) { in insert() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | TypedPointerType.cpp | 38 bool TypedPointerType::isValidElementType(Type *ElemTy) { in isValidElementType() argument 39 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() && in isValidElementType() 40 !ElemTy->isMetadataTy() && !ElemTy->isTokenTy() && in isValidElementType() 41 !ElemTy->isX86_AMXTy(); in isValidElementType()
|
| H A D | Type.cpp | 706 bool StructType::isValidElementType(Type *ElemTy) { in isValidElementType() argument 707 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() && in isValidElementType() 708 !ElemTy->isMetadataTy() && !ElemTy->isFunctionTy() && in isValidElementType() 709 !ElemTy->isTokenTy(); in isValidElementType() 768 bool ArrayType::isValidElementType(Type *ElemTy) { in isValidElementType() argument 769 return !ElemTy->isVoidTy() && !ElemTy->isLabelTy() && in isValidElementType() 770 !ElemTy->isMetadataTy() && !ElemTy->isFunctionTy() && in isValidElementType() 771 !ElemTy->isTokenTy() && !ElemTy->isX86_AMXTy(); in isValidElementType() 792 bool VectorType::isValidElementType(Type *ElemTy) { in isValidElementType() argument 793 if (ElemTy->isIntegerTy() || ElemTy->isFloatingPointTy() || in isValidElementType() [all …]
|
| H A D | DataLayout.cpp | 892 int64_t DataLayout::getIndexedOffsetInType(Type *ElemTy, in getIndexedOffsetInType() argument 897 GTI = gep_type_begin(ElemTy, Indices), in getIndexedOffsetInType() 898 GTE = gep_type_end(ElemTy, Indices); in getIndexedOffsetInType() 940 std::optional<APInt> DataLayout::getGEPIndexForOffset(Type *&ElemTy, in getGEPIndexForOffset() argument 942 if (auto *ArrTy = dyn_cast<ArrayType>(ElemTy)) { in getGEPIndexForOffset() 943 ElemTy = ArrTy->getElementType(); in getGEPIndexForOffset() 944 return getElementIndex(getTypeAllocSize(ElemTy), Offset); in getGEPIndexForOffset() 947 if (isa<VectorType>(ElemTy)) { in getGEPIndexForOffset() 954 if (auto *STy = dyn_cast<StructType>(ElemTy)) { in getGEPIndexForOffset() 962 ElemTy = STy->getElementType(Index); in getGEPIndexForOffset() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VETargetTransformInfo.h | 35 static bool isVectorLaneType(llvm::Type &ElemTy) { in isVectorLaneType() argument 37 if (ElemTy.isIntegerTy()) { in isVectorLaneType() 38 unsigned ScaBits = ElemTy.getScalarSizeInBits(); in isVectorLaneType() 41 if (ElemTy.isPointerTy()) { in isVectorLaneType() 44 if (ElemTy.isFloatTy() || ElemTy.isDoubleTy()) { in isVectorLaneType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEmitIntrinsics.cpp | 171 CallInst *buildSpvPtrcast(Function *F, Value *Op, Type *ElemTy); 172 void replaceUsesOfWithSpvPtrcast(Value *Op, Type *ElemTy, Instruction *I, 174 void propagateElemType(Value *Op, Type *ElemTy, 389 Type *ElemTy) { in buildSpvPtrcast() argument 403 SmallVector<Value *, 2> Args = {Op, buildMD(getNormalizedPoisonValue(ElemTy)), in buildSpvPtrcast() 407 GR->buildAssignPtr(B, ElemTy, PtrCasted); in buildSpvPtrcast() 412 Value *Op, Type *ElemTy, Instruction *I, in replaceUsesOfWithSpvPtrcast() argument 418 PtrCastedI = buildSpvPtrcast(F, Op, ElemTy); in replaceUsesOfWithSpvPtrcast() 427 Value *Op, Type *ElemTy, in propagateElemType() argument 441 replaceUsesOfWithSpvPtrcast(Op, ElemTy, UI, Ptrcasts); in propagateElemType() [all …]
|
| H A D | SPIRVUtils.h | 325 inline Type *getTypedPointerWrapper(Type *ElemTy, unsigned AS) { in getTypedPointerWrapper() argument 326 return TargetExtType::get(ElemTy->getContext(), TYPED_PTR_TARGET_EXT_NAME, in getTypedPointerWrapper() 327 {ElemTy}, {AS}); in getTypedPointerWrapper() 349 Type *ElemTy = VecTy->getElementType(); in applyWrappers() local 350 Type *NewElemTy = ElemTy->isTargetExtTy() ? applyWrappers(ElemTy) : ElemTy; in applyWrappers() 351 if (NewElemTy != ElemTy) in applyWrappers()
|
| H A D | SPIRVGlobalRegistry.cpp | 653 Type *ElemTy = ::getPointeeType(Ty); in getOrCreateConstNullPtr() local 654 assert(ElemTy); in getOrCreateConstNullPtr() 656 dyn_cast<TargetExtType>(getTypedPointerWrapper(ElemTy, AddressSpace))); in getOrCreateConstNullPtr() 889 SPIRVType *ElemTy = findSPIRVType( in getOpTypeStruct() local 892 assert(ElemTy && ElemTy->getOpcode() != SPIRV::OpTypeVoid && in getOpTypeStruct() 894 FieldTypes.push_back(getSPIRVTypeID(ElemTy)); in getOpTypeStruct() 1080 if (Type *ElemTy = ::getPointeeType(Ty)) in createSPIRVType() local 1081 SpvElementType = getOrCreateSPIRVType(ElemTy, MIRBuilder, AccQual, EmitIR); in createSPIRVType() 1090 Type *ElemTy = ::getPointeeType(Ty); in createSPIRVType() local 1091 if (!ElemTy) { in createSPIRVType() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Program.cpp | 411 QualType ElemTy = ArrayType->getElementType(); in createDescriptor() local 415 if (std::optional<PrimType> T = Ctx.classify(ElemTy)) { in createDescriptor() 427 D, ElemTy.getTypePtr(), std::nullopt, IsConst, IsTemporary); in createDescriptor() 442 if (std::optional<PrimType> T = Ctx.classify(ElemTy)) { in createDescriptor() 447 D, ElemTy.getTypePtr(), std::nullopt, IsConst, IsTemporary); in createDescriptor() 465 std::optional<PrimType> ElemTy = Ctx.classify(CT->getElementType()); in createDescriptor() local 466 if (!ElemTy) in createDescriptor() 469 return allocateDescriptor(D, *ElemTy, MDSize, 2, IsConst, IsTemporary, in createDescriptor() 475 std::optional<PrimType> ElemTy = Ctx.classify(VT->getElementType()); in createDescriptor() local 476 if (!ElemTy) in createDescriptor() [all …]
|
| H A D | Pointer.cpp | 730 QualType ElemTy = AT->getElementType(); in toRValue() local 737 if (std::optional<PrimType> T = Ctx.classify(ElemTy)) { in toRValue() 740 Ok &= Composite(ElemTy, EP.narrow(), Slot); in toRValue() 748 QualType ElemTy = CT->getElementType(); in toRValue() local 750 if (ElemTy->isIntegerType()) { in toRValue() 751 std::optional<PrimType> ElemT = Ctx.classify(ElemTy); in toRValue() 759 } else if (ElemTy->isFloatingType()) { in toRValue() 770 QualType ElemTy = VT->getElementType(); in toRValue() local 771 PrimType ElemT = *Ctx.classify(ElemTy); in toRValue()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | Address.h | 100 RawAddress withElementType(llvm::Type *ElemTy) const { in withElementType() argument 101 return RawAddress(getPointer(), ElemTy, getAlignment(), isKnownNonNull()); in withElementType() 276 Address withElementType(llvm::Type *ElemTy) const { in withElementType() argument 278 return Address(getBasePointer(), ElemTy, getAlignment(), in withElementType() 282 A.ElementType = ElemTy; in withElementType() 312 ConstantAddress withElementType(llvm::Type *ElemTy) const { in withElementType() argument 313 return ConstantAddress(getPointer(), ElemTy, getAlignment()); in withElementType()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
| H A D | Sparc.cpp | 183 llvm::Type *ElemTy = StrTy->getElementType(i); in addStruct() local 185 switch (ElemTy->getTypeID()) { in addStruct() 187 addStruct(ElemOffset, cast<llvm::StructType>(ElemTy)); in addStruct() 190 addFloat(ElemOffset, ElemTy, 32); in addStruct() 193 addFloat(ElemOffset, ElemTy, 64); in addStruct() 196 addFloat(ElemOffset, ElemTy, 128); in addStruct() 201 Elems.push_back(ElemTy); in addStruct()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelLoweringHVX.cpp | 41 MVT ElemTy = Ty.getScalarType(); in getIEEEProperties() local 42 switch (ElemTy.SimpleTy) { in getIEEEProperties() 52 llvm_unreachable(("Unexpected type: " + EVT(ElemTy).getEVTString()).c_str()); in getIEEEProperties() 419 for (MVT ElemTy : Subtarget.getHVXElementTypes()) { in initializeHVXLowering() local 420 if (ElemTy == MVT::i1) in initializeHVXLowering() 422 int ElemWidth = ElemTy.getFixedSizeInBits(); in initializeHVXLowering() 425 MVT VecTy = MVT::getVectorVT(ElemTy, N); in initializeHVXLowering() 454 MVT ElemTy = VecTy.getVectorElementType(); in getPreferredHvxVectorAction() local 459 if (ElemTy == MVT::i1 && VecLen > HwLen) in getPreferredHvxVectorAction() 465 if (ElemTy == MVT::i1) { in getPreferredHvxVectorAction() [all …]
|
| H A D | HexagonSubtarget.cpp | 187 MVT ElemTy = VecTy.getSimpleVT().getVectorElementType(); in isHVXVectorType() local 188 if (!IncludeBool && ElemTy == MVT::i1) in isHVXVectorType() 195 if (IncludeBool && ElemTy == MVT::i1) { in isHVXVectorType() 207 return llvm::is_contained(ElemTypes, ElemTy); in isHVXVectorType() 233 MVT ElemTy = Ty.getVectorElementType().getSimpleVT(); in isTypeForHVX() local 236 MVT SimpleTy = MVT::getVectorVT(ElemTy, VecLen); in isTypeForHVX()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/ |
| H A D | VecUtils.h | 114 static Type *getWideType(Type *ElemTy, unsigned NumElts) { 115 if (ElemTy->isVectorTy()) { 116 auto *VecTy = cast<FixedVectorType>(ElemTy); 117 ElemTy = VecTy->getElementType(); 120 return FixedVectorType::get(ElemTy, NumElts);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILCBufferAccess.cpp | 205 Type *ElemTy = ArrTy->getElementType(); in copyArrayElemsForMemCpy() local 206 size_t ElemTySize = DL.getTypeAllocSize(ElemTy); in copyArrayElemsForMemCpy() 211 if (ArrayType *ElemArrTy = dyn_cast<ArrayType>(ElemTy)) { in copyArrayElemsForMemCpy() 223 CBR.loadValue(Builder, ElemTy, CBufArrayOffset.getZExtValue(), Name); in copyArrayElemsForMemCpy() 256 Type *ElemTy = ArrTy->getElementType(); in replaceMemCpy() local 257 size_t ElemSize = DL.getTypeAllocSize(ElemTy); in replaceMemCpy()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | APValue.cpp | 158 ArrayRef<LValuePathEntry> Path, QualType ElemTy) in LValuePathSerializationHelper() argument 159 : Ty((const void *)ElemTy.getTypePtrOrNull()), Path(Path) {} in LValuePathSerializationHelper() 741 QualType ElemTy = Ty->castAs<VectorType>()->getElementType(); in printPretty() local 742 getVectorElt(0).printPretty(Out, Policy, ElemTy, Ctx); in printPretty() 745 getVectorElt(i).printPretty(Out, Policy, ElemTy, Ctx); in printPretty() 824 QualType ElemTy = Base.getType().getNonReferenceType(); in printPretty() local 841 if (ElemTy->isRecordType()) { in printPretty() 855 ElemTy = VD->getType(); in printPretty() 857 } else if (ElemTy->isAnyComplexType()) { in printPretty() 860 ElemTy = ElemTy->castAs<ComplexType>()->getElementType(); in printPretty() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Utils.h | 104 llvm::Type *ElemTy = llvm::Type::getInt8Ty(SE.getContext()); in getPointerDiffInBytes() local 105 return getPointersDiff(ElemTy, Opnd0, ElemTy, Opnd1, I0->getDataLayout(), in getPointerDiffInBytes()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngine.cpp | 605 Type *ElemTy = STy->getElementType(i); in getConstantValue() local 606 if (ElemTy->isIntegerTy()) in getConstantValue() 608 APInt(ElemTy->getPrimitiveSizeInBits(), 0); in getConstantValue() 609 else if (ElemTy->isAggregateType()) { in getConstantValue() 610 const Constant *ElemUndef = UndefValue::get(ElemTy); in getConstantValue() 622 Type *ElemTy = ArrTy->getElementType(); in getConstantValue() local 625 if (ElemTy->isIntegerTy()) in getConstantValue() 628 APInt(ElemTy->getPrimitiveSizeInBits(), 0); in getConstantValue() 634 Type *ElemTy = VTy->getElementType(); in getConstantValue() local 637 if (ElemTy->isIntegerTy()) in getConstantValue() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | HLSLBuiltinTypeDeclBuilder.cpp | 812 QualType ElemTy = getHandleElementType(); in addHandleAccessFunction() local 814 AST.getAddrSpaceQualType(ElemTy, LangAS::hlsl_device); in addHandleAccessFunction() 824 ReturnTy = ElemTy; in addHandleAccessFunction() 840 QualType ElemTy = getHandleElementType(); in addAppendMethod() local 842 AST.getAddrSpaceQualType(ElemTy, LangAS::hlsl_device); in addAppendMethod() 844 .addParam("value", ElemTy) in addAppendMethod() 858 QualType ElemTy = getHandleElementType(); in addConsumeMethod() local 860 AST.getAddrSpaceQualType(ElemTy, LangAS::hlsl_device); in addConsumeMethod() 861 return BuiltinTypeMethodBuilder(*this, "Consume", ElemTy) in addConsumeMethod()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelperCasts.cpp | 309 LLT ElemTy = DstTy.getScalarType(); in matchCastOfBuildVector() local 316 {TargetOpcode::G_BUILD_VECTOR, {DstTy, ElemTy}}) || in matchCastOfBuildVector() 317 !isLegalOrBeforeLegalizer({Cast->getOpcode(), {ElemTy, InputElemTy}}) || in matchCastOfBuildVector() 318 !isCastFree(Cast->getOpcode(), ElemTy, InputElemTy)) in matchCastOfBuildVector() 326 B.buildInstr(Cast->getOpcode(), {ElemTy}, {BV->getSourceReg(I)}); in matchCastOfBuildVector()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | Scalarizer.cpp | 577 Type *ElemTy = Split.VecTy->getElementType(); in getVectorSplit() local 579 if (NumElems == 1 || ElemTy->isPointerTy() || in getVectorSplit() 580 2 * ElemTy->getScalarSizeInBits() > ScalarizeMinBits) { in getVectorSplit() 583 Split.SplitTy = ElemTy; in getVectorSplit() 585 Split.NumPacked = ScalarizeMinBits / ElemTy->getScalarSizeInBits(); in getVectorSplit() 590 Split.SplitTy = FixedVectorType::get(ElemTy, Split.NumPacked); in getVectorSplit() 594 Split.RemainderTy = FixedVectorType::get(ElemTy, RemainderElems); in getVectorSplit() 596 Split.RemainderTy = ElemTy; in getVectorSplit() 1309 Type *ElemTy = Ty->getElementType(I); in finish() local 1310 assert(isa<FixedVectorType>(ElemTy) && in finish() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/ |
| H A D | NVPTX.cpp | 334 llvm::Type *ElemTy = CGF.ConvertTypeForMem(ArgType->getPointeeType()); in MakeLdu() local 336 CGF.CGM.getIntrinsic(IntrinsicID, {ElemTy, Ptr->getType()}), in MakeLdu() 344 llvm::Type *ElemTy = CGF.ConvertTypeForMem(ArgType->getPointeeType()); in MakeLdg() local 348 auto *LD = CGF.Builder.CreateAlignedLoad(ElemTy, ASC, AlignV.getAsAlign()); in MakeLdg() 358 llvm::Type *ElemTy = in MakeScopedAtomic() local 361 CGF.CGM.getIntrinsic(IntrinsicID, {ElemTy, Ptr->getType()}), in MakeScopedAtomic() 653 llvm::Type *ElemTy = in EmitNVPTXBuiltinExpr() local 657 Intrinsic::nvvm_atomic_cas_gen_i_cta, {ElemTy, Ptr->getType()}), in EmitNVPTXBuiltinExpr() 665 llvm::Type *ElemTy = in EmitNVPTXBuiltinExpr() local 669 Intrinsic::nvvm_atomic_cas_gen_i_sys, {ElemTy, Ptr->getType()}), in EmitNVPTXBuiltinExpr()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULowerBufferFatPointers.cpp | 782 Type *ElemTy = T->getScalarType(); in legalNonAggregateFor() local 783 if (isa<PointerType, ScalableVectorType>(ElemTy)) { in legalNonAggregateFor() 788 unsigned ElemSize = DL.getTypeSizeInBits(ElemTy).getFixedValue(); in legalNonAggregateFor() 960 for (auto [I, ElemTy, Offset] : in visitLoadImpl() 963 Changed |= visitLoadImpl(OrigLI, ElemTy, AggIdxs, in visitLoadImpl() 971 Type *ElemTy = AT->getElementType(); in visitLoadImpl() local 972 if (!ElemTy->isSingleValueType() || !DL.typeSizeEqualsStoreSize(ElemTy) || in visitLoadImpl() 973 ElemTy->isVectorTy()) { in visitLoadImpl() 974 TypeSize ElemStoreSize = DL.getTypeStoreSize(ElemTy); in visitLoadImpl() 979 Changed |= visitLoadImpl(OrigLI, ElemTy, AggIdxs, in visitLoadImpl() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | DerivedTypes.h | 353 LLVM_ABI static bool isValidElementType(Type *ElemTy); 417 LLVM_ABI static bool isValidElementType(Type *ElemTy); 578 LLVM_ABI static bool isValidElementType(Type *ElemTy); 734 LLVM_ABI static bool isValidElementType(Type *ElemTy); 737 LLVM_ABI static bool isLoadableOrStorableType(Type *ElemTy);
|