Home
last modified time | relevance | path

Searched refs:VectorType (Results 1 – 25 of 243) sorted by relevance

12345678910

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h403 class VectorType : public Type {
430 VectorType(Type *ElType, unsigned EQ, Type::TypeID TID);
433 VectorType(const VectorType &) = delete;
434 VectorType &operator=(const VectorType &) = delete;
439 static VectorType *get(Type *ElementType, ElementCount EC);
441 static VectorType *get(Type *ElementType, unsigned NumElements, in get()
443 return VectorType::get(ElementType, in get()
447 static VectorType *get(Type *ElementType, const VectorType *Other) { in get()
448 return VectorType::get(ElementType, Other->getElementCount()); in get()
454 static VectorType *getInteger(VectorType *VTy) { in getInteger()
[all …]
H A DMatrixBuilder.h45 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 …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DOpenCLBuiltins.td163 // Its child classes can represent concrete types (e.g. VectorType) or
187 class VectorType<Type _Ty, int _VecWidth> : Type<_Ty.Name, _Ty.QTExpr> {
524 [VectorType<RType, v>, VectorType<IType, v>],
784 …def : Builtin<name, [VectorType<Float, VSize>, VectorType<Float, VSize>, VectorType<Float, VSize>]…
785 …def : Builtin<name, [VectorType<Double, VSize>, VectorType<Double, VSize>, VectorType<Double, VSiz…
786 …def : Builtin<name, [VectorType<Half, VSize>, VectorType<Half, VSize>, VectorType<Half, VSize>], A…
852 … def : Builtin<name, [VectorType<Char, VSize>, Size, PointerType<ConstType<Char>, AS>], Attr.Pure>;
853 …def : Builtin<name, [VectorType<UChar, VSize>, Size, PointerType<ConstType<UChar>, AS>], Attr.Pure…
854 …def : Builtin<name, [VectorType<Short, VSize>, Size, PointerType<ConstType<Short>, AS>], Attr.Pure…
855 …def : Builtin<name, [VectorType<UShort, VSize>, Size, PointerType<ConstType<UShort>, AS>], Attr.Pu…
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DMapVector.h35 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()
193 typename VectorType in erase()
[all...]
H A DUniqueVector.h26 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 DValueTypes.cpp49 VectorType::get(VT.getTypeForEVT(Context), NumElements, IsScalable); in getExtendedVectorVT()
56 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), EC); in getExtendedVectorVT()
131 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType()); in getExtendedVectorElementType()
136 ElementCount EC = cast<VectorType>(LLVMTy)->getElementCount(); in getExtendedVectorNumElements()
148 return cast<VectorType>(LLVMTy)->getElementCount(); in getExtendedVectorElementCount()
155 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits()
261 VectorType *VTy = cast<VectorType>(Ty); in getVT()
284 VectorType *VTy = cast<VectorType>(Ty); in getEVT()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp304 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()
411 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue()
427 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue()
871 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getTrue()
879 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getFalse()
913 VectorType *VTy = VectorType::get(ITy, EC); in get()
919 VectorType *VTy = VectorType::get(ITy, EC); in get()
929 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
[all …]
H A DFunction.cpp1029 } else if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in getMangledTypeStr()
1416 return VectorType::get(DecodeFixedType(Infos, Tys, Context), in DecodeFixedType()
1430 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
1431 return VectorType::getExtendedElementVectorType(VTy); in DecodeFixedType()
1437 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
1438 return VectorType::getTruncatedElementVectorType(VTy); in DecodeFixedType()
1447 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType()
1450 return VectorType::getSubdividedVectorType(VTy, SubDivs); in DecodeFixedType()
1453 return VectorType::getHalfElementsVectorType(cast<VectorType>( in DecodeFixedType()
1458 if (auto *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
[all …]
H A DType.cpp125 if (isa<VectorType>(this) && isa<VectorType>(Ty)) in canLosslesslyBitCastTo()
190 const VectorType *VTy = cast<VectorType>(this); in getPrimitiveSizeInBits()
207 if (auto *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth()
224 if (auto *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType()
669 VectorType::VectorType(Type *ElType, unsigned EQ, Type::TypeID TID) in VectorType() function in VectorType
676 VectorType *VectorType::get(Type *ElementType, ElementCount EC) { in get()
683 bool VectorType::isValidElementType(Type *ElemTy) { in isValidElementType()
701 VectorType *&Entry = ElementType->getContext() in get()
723 VectorType *&Entry = ElementType->getContext() in get()
H A DPass.cpp247 using VectorType = AnalysisUsage::VectorType; in GetCFGOnlyPasses()
249 VectorType &CFGOnlyList; in passEnumerate()
251 GetCFGOnlyPasses(VectorType &L) : CFGOnlyList(L) {} in passEnumerate()
243 using VectorType = AnalysisUsage::VectorType; global() typedef
/freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/
H A DOpDescriptor.h189 VectorType *ThisVec = dyn_cast<VectorType>(This); in matchFirstLengthWAnyType()
190 VectorType *FirstVec = dyn_cast<VectorType>(First); in matchFirstLengthWAnyType()
201 if (VectorType *VecTy = dyn_cast<VectorType>(Cur[0]->getType())) { in matchFirstLengthWAnyType()
206 if (VectorType::isValidElementType(T)) { in matchFirstLengthWAnyType()
209 makeConstantsWithType(VectorType::get(T, EC), Result); in matchFirstLengthWAnyType()
/freebsd/contrib/llvm-project/llvm/include/llvm/
H A DPassAnalysisSupport.h49 using VectorType = SmallVectorImpl<AnalysisID>;
62 void pushUnique(VectorType &Set, AnalysisID ID) { in pushUnique()
144 const VectorType &getRequiredSet() const { return Required; } in getRequiredSet()
145 const VectorType &getRequiredTransitiveSet() const { in getRequiredTransitiveSet()
148 const VectorType &getPreservedSet() const { return Preserved; } in getPreservedSet()
149 const VectorType &getUsedSet() const { return Used; } in getUsedSet()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h145 InstructionCost getAltInstrCost(VectorType *VecTy, unsigned Opcode0,
150 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
153 VectorType *SubTp,
168 InstructionCost getScalarizationOverhead(VectorType *Ty,
214 InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
222 InstructionCost getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty,
268 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment);
269 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter()
277 bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1,
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h40 class VectorType; variable
180 VectorType *VecTy, unsigned Index);
192 InstructionCost getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty,
197 VectorType *ValTy,
200 InstructionCost getSpliceCost(VectorType *Tp, int Index);
394 InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
398 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
401 VectorType *SubTp,
405 InstructionCost getScalarizationOverhead(VectorType *Ty,
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h49 unsigned getEstimatedVLFor(VectorType *Ty);
145 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
148 VectorType *SubTp,
177 InstructionCost getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty,
181 InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
186 Type *ResTy, VectorType *ValTy,
269 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedGather()
274 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter()
297 cast<VectorType>(PI.getArgOperand(1)->getType()) in getVPLegalizationStrategy()
H A DRISCVTargetTransformInfo.cpp346 static VectorType *getVRGatherIndexType(MVT DataVT, const RISCVSubtarget &ST, in getVRGatherIndexType()
353 return cast<VectorType>(EVT(IndexVT).getTypeForEVT(C)); in getVRGatherIndexType()
357 VectorType *Tp, ArrayRef<int> Mask, in getShuffleCost()
359 int Index, VectorType *SubTp, in getShuffleCost()
403 VectorType *IdxTy = getVRGatherIndexType(LT.second, *ST, Tp->getContext()); in getShuffleCost()
420 VectorType *IdxTy = getVRGatherIndexType(LT.second, *ST, C); in getShuffleCost()
421 VectorType *MaskTy = VectorType::get(IntegerType::getInt1Ty(C), EC); in getShuffleCost()
635 auto *VTy = cast<VectorType>(VecTy); in getInterleavedMemoryOpCost()
640 VectorType::get(VTy->getElementType(), in getInterleavedMemoryOpCost()
650 auto *LegalVTy = VectorType::get(VTy->getElementType(), in getInterleavedMemoryOpCost()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h129 InstructionCost getExtractSubvectorOverhead(VectorType *VTy, in getExtractSubvectorOverhead()
157 InstructionCost getInsertSubvectorOverhead(VectorType *VTy, in getInsertSubvectorOverhead()
768 InstructionCost getScalarizationOverhead(VectorType *InTy, in getScalarizationOverhead()
798 InstructionCost getScalarizationOverhead(VectorType *InTy, bool Insert, in getScalarizationOverhead()
830 if (auto *VecTy = dyn_cast<VectorType>(Ty)) in getOperandsScalarizationOverhead()
843 InstructionCost getScalarizationOverhead(VectorType *RetTy, in getScalarizationOverhead()
977 VectorType *Ty, int &Index, in improveShuffleKindFromMask()
978 VectorType *&SubTy) const { in improveShuffleKindFromMask()
1023 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
1026 VectorType *SubTp,
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h798 bool forceScalarizeMaskedGather(VectorType *Type, Align Alignment) const;
801 bool forceScalarizeMaskedScatter(VectorType *Type, Align Alignment) const;
821 bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1,
896 InstructionCost getScalarizationOverhead(VectorType *Ty,
1300 VectorType *VecTy, unsigned Opcode0, unsigned Opcode1,
1313 ShuffleKind Kind, VectorType *Tp, ArrayRef<int> Mask = std::nullopt,
1315 VectorType *SubTp = nullptr, ArrayRef<const Value *> Args = std::nullopt,
1366 VectorType *VecTy,
1512 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF,
1516 Intrinsic::ID IID, VectorType *Ty, FastMathFlags FMF = FastMathFlags(),
[all …]
H A DTargetTransformInfoImpl.h300 bool forceScalarizeMaskedGather(VectorType *DataType, Align Alignment) const { in forceScalarizeMaskedGather()
304 bool forceScalarizeMaskedScatter(VectorType *DataType, in forceScalarizeMaskedScatter()
313 bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1, in isLegalAltInstr()
372 InstructionCost getScalarizationOverhead(VectorType *Ty, in getScalarizationOverhead()
589 InstructionCost getAltInstrCost(VectorType *VecTy, unsigned Opcode0, in getAltInstrCost()
596 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Ty,
599 VectorType *SubTp,
644 VectorType *VecTy, in getExtractWithExtendCost()
792 InstructionCost getArithmeticReductionCost(unsigned, VectorType *, in getArithmeticReductionCost() argument
798 InstructionCost getMinMaxReductionCost(Intrinsic::ID IID, VectorType *, in getMinMaxReductionCost() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h193 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedGather()
201 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter()
219 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
222 VectorType *SubTp,
283 InstructionCost getArithmeticReductionCost(unsigned Opcode, VectorType *ValTy,
287 Type *ResTy, VectorType *ValTy,
291 VectorType *ValTy,
294 InstructionCost getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty,
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.h126 VectorType *VecTy) const;
129 VectorType *VecTy) const;
233 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
236 VectorType *SubTp,
250 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF,
255 InstructionCost getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty,
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DSwiftCallingConv.h27 class VectorType; variable
140 llvm::VectorType *vectorTy);
147 llvm::VectorType *vectorTy);
154 llvm::VectorType *vectorTy,
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DVFABIDemangling.cpp
H A DTargetTransformInfo.cpp489 VectorType *VecTy, unsigned Opcode0, unsigned Opcode1, in isLegalAltInstr()
499 bool TargetTransformInfo::forceScalarizeMaskedGather(VectorType *DataType, in forceScalarizeMaskedGather()
504 bool TargetTransformInfo::forceScalarizeMaskedScatter(VectorType *DataType, in forceScalarizeMaskedScatter()
595 VectorType *Ty, const APInt &DemandedElts, bool Insert, bool Extract, in getScalarizationOverhead()
907 VectorType *VecTy = dyn_cast<VectorType>(Ty); in getArithmeticInstrCost()
925 VectorType *VecTy, unsigned Opcode0, unsigned Opcode1, in getAltInstrCost()
934 ShuffleKind Kind, VectorType *Ty, ArrayRef<int> Mask, in getShuffleCost()
935 TTI::TargetCostKind CostKind, int Index, VectorType *SubTp, in getShuffleCost()
999 unsigned Opcode, Type *Dst, VectorType *VecTy, unsigned Index) const { in getExtractWithExtendCost()
1150 unsigned Opcode, VectorType *Ty, std::optional<FastMathFlags> FMF, in getArithmeticReductionCost()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DARM.cpp309 if (const VectorType *VT = Base->getAs<VectorType>()) { in classifyHomogeneousAggregate()
539 if (const VectorType *VT = RetTy->getAs<VectorType>()) { in classifyReturnType()
638 if (const VectorType *VT = Ty->getAs<VectorType> ()) { in isIllegalVectorType()
699 if (const VectorType *VT = Ty->getAs<VectorType>()) in containsAnyFP16Vectors()
728 } else if (const VectorType *VT = Ty->getAs<VectorType>()) { in isHomogeneousAggregateBaseType()

12345678910