| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Type.cpp | 71 VectorType *VectorType::get(Type *ElementType, ElementCount EC) { in get() 72 return cast<VectorType>(ElementType->getContext().getType( in get() 73 llvm::VectorType::get(ElementType->LLVMTy, EC))); in get() 76 Type *VectorType::getElementType() const { in getElementType() 77 return Ctx.getType(cast<llvm::VectorType>(LLVMTy)->getElementType()); in getElementType() 79 VectorType *VectorType::getInteger(VectorType *VTy) { in getInteger() 80 return cast<VectorType>(VTy->getContext().getType( in getInteger() 81 llvm::VectorType::getInteger(cast<llvm::VectorType>(VTy->LLVMTy)))); in getInteger() 83 VectorType *VectorType::getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType() 84 return cast<VectorType>( in getExtendedElementVectorType() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | DerivedTypes.h | 430 class VectorType : public Type { 457 LLVM_ABI VectorType(Type *ElType, unsigned EQ, Type::TypeID TID); 460 VectorType(const VectorType &) = delete; 461 VectorType &operator=(const VectorType &) = delete; 466 LLVM_ABI static VectorType *get(Type *ElementType, ElementCount EC); 468 static VectorType *get(Type *ElementType, unsigned NumElements, in get() 470 return VectorType::get(ElementType, in get() 474 static VectorType *get(Type *ElementType, const VectorType *Other) { in get() 475 return VectorType::get(ElementType, Other->getElementCount()); in get() 481 static VectorType *getInteger(VectorType *VTy) { in getInteger() [all …]
|
| H A D | MatrixBuilder.h | 45 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in splatScalarOperandIfNeeded() 51 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in splatScalarOperandIfNeeded() 112 auto *OpType = cast<VectorType>(Matrix->getType()); 129 auto *LHSType = cast<VectorType>(LHS->getType()); 130 auto *RHSType = cast<VectorType>(RHS->getType()); 163 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in CreateAdd() 169 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in CreateAdd() 173 return cast<VectorType>(LHS->getType()) in CreateAdd() 188 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in CreateSub() 194 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in CreateSub() [all …]
|
| H A D | VectorTypeUtils.h | 23 return VectorType::get(Scalar, EC); in toVectorTy() 88 return Ty->isVoidTy() || VectorType::isValidElementType(Ty); in canVectorizeTy() 102 return cast<VectorType>(getContainedTypes(Ty).front())->getElementCount(); in getVectorizedTypeVF()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Type.h | 40 class VectorType; variable 52 friend class VectorType; // For LLVMTy. variable 327 class VectorType : public Type { 329 LLVM_ABI static VectorType *get(Type *ElementType, ElementCount EC); 330 static VectorType *get(Type *ElementType, unsigned NumElements, in get() 332 return VectorType::get(ElementType, in get() 337 static VectorType *get(Type *ElementType, const VectorType *Other) { in get() 338 return VectorType::get(ElementType, Other->getElementCount()); in get() 342 return cast<llvm::VectorType>(LLVMTy)->getElementCount(); in getElementCount() 344 LLVM_ABI static VectorType *getInteger(VectorType *VTy); [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | OpenCLBuiltins.td | 167 // Its child classes can represent concrete types (e.g. VectorType) or 191 class VectorType<Type _Ty, int _VecWidth> : Type<_Ty.Name, _Ty.QTExpr> { 528 [VectorType<RType, v>, VectorType<IType, v>], 788 …def : Builtin<name, [VectorType<Float, VSize>, VectorType<Float, VSize>, VectorType<Float, VSize>]… 789 …def : Builtin<name, [VectorType<Double, VSize>, VectorType<Double, VSize>, VectorType<Double, VSiz… 790 …def : Builtin<name, [VectorType<Half, VSize>, VectorType<Half, VSize>, VectorType<Half, VSize>], A… 856 … def : Builtin<name, [VectorType<Char, VSize>, Size, PointerType<ConstType<Char>, AS>], Attr.Pure>; 857 …def : Builtin<name, [VectorType<UChar, VSize>, Size, PointerType<ConstType<UChar>, AS>], Attr.Pure… 858 …def : Builtin<name, [VectorType<Short, VSize>, Size, PointerType<ConstType<Short>, AS>], Attr.Pure… 859 …def : Builtin<name, [VectorType<UShort, VSize>, Size, PointerType<ConstType<UShort>, AS>], Attr.Pu… [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Intrinsics.cpp | 97 } else if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in getMangledTypeStr() 531 return VectorType::get(DecodeFixedType(Infos, Tys, Context), in DecodeFixedType() 545 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() 546 return VectorType::getExtendedElementVectorType(VTy); in DecodeFixedType() 552 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() 553 return VectorType::getTruncatedElementVectorType(VTy); in DecodeFixedType() 562 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType() 565 return VectorType::getSubdividedVectorType(VTy, SubDivs); in DecodeFixedType() 568 return VectorType::getOneNthElementsVectorType( in DecodeFixedType() 569 cast<VectorType>(Tys[D.getRefArgNumber()]), D.getVectorDivisor()); in DecodeFixedType() [all …]
|
| H A D | VectorTypeUtils.cpp | 21 assert(all_of(StructTy->elements(), VectorType::isValidElementType) && in toVectorizedStructTy() 26 return VectorType::get(ElTy, EC); in toVectorizedStructTy() 50 ElementCount VF = cast<VectorType>(ElemTys.front())->getElementCount(); in isVectorizedStructTy() 52 return Ty->isVectorTy() && cast<VectorType>(Ty)->getElementCount() == VF; in isVectorizedStructTy() 61 all_of(ElemTys, VectorType::isValidElementType); in canVectorizeStructTy()
|
| H A D | Constants.cpp | 304 auto *VTy = dyn_cast<VectorType>(getType()); in isElementWiseEqual() 315 Type *IntTy = VectorType::getInteger(VTy); in isElementWiseEqual() 325 if (auto *VTy = dyn_cast<VectorType>(C->getType())) { in containsUndefinedElement() 414 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue() 430 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue() 448 return Elt < cast<VectorType>(getType()) in getAggregateElement() 455 return Elt < cast<VectorType>(getType()) in getAggregateElement() 889 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getTrue() 897 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getFalse() 931 VectorType *VTy = VectorType::get(ITy, EC); in get() [all …]
|
| H A D | Pass.cpp | 230 using VectorType = AnalysisUsage::VectorType; typedef 232 VectorType &CFGOnlyList; 234 GetCFGOnlyPasses(VectorType &L) : CFGOnlyList(L) {} in GetCFGOnlyPasses()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | MapVector.h | 35 typename VectorType = SmallVector<std::pair<KeyT, ValueT>, 0>> 38 VectorType Vector; 46 using value_type = typename VectorType::value_type; 47 using size_type = typename VectorType::size_type; 49 using iterator = typename VectorType::iterator; 50 using const_iterator = typename VectorType::const_iterator; 51 using reverse_iterator = typename VectorType::reverse_iterator; 52 using const_reverse_iterator = typename VectorType::const_reverse_iterator; 55 VectorType takeVector() { in takeVector() 195 typename VectorType::iterator erase(typename VectorType::iterator Iterator) { in erase() [all …]
|
| H A D | UniqueVector.h | 26 using VectorType = typename std::vector<T>; 27 using iterator = typename VectorType::iterator; 28 using const_iterator = typename VectorType::const_iterator; 35 VectorType Vector;
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ValueTypes.cpp | 50 VectorType::get(VT.getTypeForEVT(Context), NumElements, IsScalable); in getExtendedVectorVT() 57 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), EC); in getExtendedVectorVT() 132 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType()); in getExtendedVectorElementType() 137 ElementCount EC = cast<VectorType>(LLVMTy)->getElementCount(); in getExtendedVectorNumElements() 149 return cast<VectorType>(LLVMTy)->getElementCount(); in getExtendedVectorElementCount() 156 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits() 286 VectorType *VTy = cast<VectorType>(Ty); in getVT() 309 VectorType *VTy = cast<VectorType>(Ty); in getEVT()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ |
| H A D | PassAnalysisSupport.h | 50 using VectorType = SmallVectorImpl<AnalysisID>; 63 void pushUnique(VectorType &Set, AnalysisID ID) { in pushUnique() 145 const VectorType &getRequiredSet() const { return Required; } in getRequiredSet() 146 const VectorType &getRequiredTransitiveSet() const { in getRequiredTransitiveSet() 149 const VectorType &getPreservedSet() const { return Preserved; } in getPreservedSet() 150 const VectorType &getUsedSet() const { return Used; } in getUsedSet()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.h | 48 unsigned getEstimatedVLFor(VectorType *Ty) const; 163 getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy, VectorType *SrcTy, 165 VectorType *SubTp, ArrayRef<const Value *> Args = {}, 169 VectorType *Ty, const APInt &DemandedElts, bool Insert, bool Extract, 208 getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF, 212 getArithmeticReductionCost(unsigned Opcode, VectorType *Ty, 218 VectorType *ValTy, std::optional<FastMathFlags> FMF, 310 bool forceScalarizeMaskedGather(VectorType *VTy, in forceScalarizeMaskedGather() 316 bool forceScalarizeMaskedScatter(VectorType *VTy, in forceScalarizeMaskedScatter() 327 bool isLegalInterleavedAccessType(VectorType *VTy, unsigned Factor, in isLegalInterleavedAccessType() [all …]
|
| H A D | RISCVTargetTransformInfo.cpp | 311 Type *Tp = VectorType::get(AccumType, VF.divideCoefficientBy(4)); in getPartialReductionCost() 399 static VectorType *getVRGatherIndexType(MVT DataVT, const RISCVSubtarget &ST, in getVRGatherIndexType() 406 return cast<VectorType>(EVT(IndexVT).getTypeForEVT(C)); in getVRGatherIndexType() 414 MVT LegalVT, VectorType *Tp, in costShuffleViaSplitting() 484 std::optional<unsigned> VLen, VectorType *Tp, in costShuffleViaVRegSplitting() 602 VectorType *MaskTy = in getSlideCost() 603 VectorType::get(IntegerType::getInt1Ty(Tp->getContext()), EC); in getSlideCost() 609 RISCVTTIImpl::getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy, in getShuffleCost() 610 VectorType *SrcTy, ArrayRef<int> Mask, in getShuffleCost() 612 VectorType *SubTp, ArrayRef<const Value *> Args, in getShuffleCost() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.h | 40 class VectorType; variable 197 getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy, 224 getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF, 228 getArithmeticReductionCostSVE(unsigned Opcode, VectorType *ValTy, 231 InstructionCost getSpliceCost(VectorType *Tp, int Index, 439 getArithmeticReductionCost(unsigned Opcode, VectorType *Ty, 445 VectorType *ValTy, std::optional<FastMathFlags> FMF, 449 bool IsUnsigned, Type *ResTy, VectorType *Ty, 453 getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy, VectorType *SrcTy, 455 VectorType *SubTp, ArrayRef<const Value *> Args = {}, [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/ |
| H A D | OpDescriptor.h | 192 VectorType *ThisVec = dyn_cast<VectorType>(This); in matchFirstLengthWAnyType() 193 VectorType *FirstVec = dyn_cast<VectorType>(First); in matchFirstLengthWAnyType() 204 if (VectorType *VecTy = dyn_cast<VectorType>(Cur[0]->getType())) { in matchFirstLengthWAnyType() 209 if (VectorType::isValidElementType(T)) { in matchFirstLengthWAnyType() 212 makeConstantsWithType(VectorType::get(T, EC), Result); in matchFirstLengthWAnyType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86TargetTransformInfo.h | 146 InstructionCost getAltInstrCost(VectorType *VecTy, unsigned Opcode0, 152 getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy, VectorType *SrcTy, 154 VectorType *SubTp, ArrayRef<const Value *> Args = {}, 172 VectorType *Ty, const APInt &DemandedElts, bool Insert, bool Extract, 219 getArithmeticReductionCost(unsigned Opcode, VectorType *Ty, 228 getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF, 277 bool forceScalarizeMaskedGather(VectorType *VTy, 279 bool forceScalarizeMaskedScatter(VectorType *VTy, in forceScalarizeMaskedScatter() 289 bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.h | 89 VectorType *Ty, const APInt &DemandedElts, bool Insert, bool Extract, 102 getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy, VectorType *SrcTy, 104 VectorType *SubTp, ArrayRef<const Value *> Args = {}, 139 getArithmeticReductionCost(unsigned Opcode, VectorType *Ty, 143 getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF,
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 131 InstructionCost getExtractSubvectorOverhead(VectorType *VTy, in getExtractSubvectorOverhead() 159 InstructionCost getInsertSubvectorOverhead(VectorType *VTy, in getInsertSubvectorOverhead() 333 auto VecTy = VectorType::get(IntegerType::getInt1Ty(Ctx), VF); 873 VectorType *InTy, const APInt &DemandedElts, bool Insert, bool Extract, 926 InstructionCost getScalarizationOverhead(VectorType *InTy, bool Insert, in getScalarizationOverhead() 957 if (auto *VecTy = dyn_cast<VectorType>(Ty)) in getOperandsScalarizationOverhead() 970 InstructionCost getScalarizationOverhead(VectorType *RetTy, in getScalarizationOverhead() 1104 VectorType *SrcTy, int &Index, in improveShuffleKindFromMask() 1105 VectorType *&SubTy) const { in improveShuffleKindFromMask() 1158 getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy, VectorType *SrcTy, [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMTargetTransformInfo.h | 197 bool forceScalarizeMaskedGather(VectorType *VTy, in forceScalarizeMaskedGather() 206 bool forceScalarizeMaskedScatter(VectorType *VTy, in forceScalarizeMaskedScatter() 226 getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy, VectorType *SrcTy, 228 VectorType *SubTp, ArrayRef<const Value *> Args = {}, 293 getArithmeticReductionCost(unsigned Opcode, VectorType *ValTy, 298 VectorType *ValTy, std::optional<FastMathFlags> FMF, 301 getMulAccReductionCost(bool IsUnsigned, Type *ResTy, VectorType *ValTy, 305 getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetTransformInfo.h | 128 VectorType *VecTy) const override; 131 VectorType *VecTy) const override; 239 getShuffleCost(TTI::ShuffleKind Kind, VectorType *DstTy, VectorType *SrcTy, 241 VectorType *SubTp, ArrayRef<const Value *> Args = {}, 261 getArithmeticReductionCost(unsigned Opcode, VectorType *Ty, 269 getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF,
|
| /freebsd/contrib/llvm-project/clang/include/clang/CodeGen/ |
| H A D | SwiftCallingConv.h | 27 class VectorType; variable 140 llvm::VectorType *vectorTy); 147 llvm::VectorType *vectorTy); 154 llvm::VectorType *vectorTy,
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfo.h | 830 LLVM_ABI bool forceScalarizeMaskedGather(VectorType *Type, 834 LLVM_ABI bool forceScalarizeMaskedScatter(VectorType *Type, 849 LLVM_ABI bool isLegalInterleavedAccessType(VectorType *VTy, unsigned Factor, 864 LLVM_ABI bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, 960 VectorType *Ty, const APInt &DemandedElts, bool Insert, bool Extract, 1392 VectorType *VecTy, unsigned Opcode0, unsigned Opcode1, 1404 ShuffleKind Kind, VectorType *DstTy, VectorType *SrcTy, 1407 VectorType *SubTp = nullptr, ArrayRef<const Value *> Args = {}, 1457 getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy, 1636 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF, [all …]
|