Searched refs:VecTy (Results 1 - 25 of 72) sorted by relevance

123

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DTinyPtrVector.h32 using VecTy = SmallVector<EltTy, 4>;
33 using value_type = typename VecTy::value_type;
38 using PtrUnion = PointerUnion<EltTy, VecTy *>;
47 if (VecTy *V = Val.template dyn_cast<VecTy*>())
52 if (VecTy *V = Val.template dyn_cast<VecTy*>())
53 Val = new VecTy(*V);
70 Val = new VecTy(*RHS.Val.template get<VecTy*>());
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizeMutations.cpp59 const LLT VecTy = Query.Types[TypeIdx];
61 std::max(1u << Log2_32_Ceil(VecTy.getNumElements()), Min);
63 LLT::vector(NewNumElements, VecTy.getElementType()));
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp46 bool HexagonTTIImpl::isTypeForHVX(Type *VecTy) const {
47 assert(VecTy->isVectorTy());
48 if (cast<VectorType>(VecTy)->isScalable())
51 if (!cast<VectorType>(VecTy)->getElementType()->isIntegerTy())
53 EVT VecVT = EVT::getEVT(VecTy);
163 VectorType *VecTy = cast<VectorType>(Src); local
164 unsigned VecWidth = VecTy->getBitWidth();
165 if (useHVX() && isTypeForHVX(VecTy)) {
184 VecTy->getElementType()->isFloatingPointTy() ? FloatFactor : 1;
218 Type *VecTy, unsigne
217 getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, unsigned Alignment, unsigned AddressSpace, bool UseMaskForCond, bool UseMaskForGaps) argument
[all...]
H A DHexagonISelLoweringHVX.cpp227 HexagonTargetLowering::typeSplit(MVT VecTy) const {
228 assert(VecTy.isVector());
229 unsigned NumElem = VecTy.getVectorNumElements();
231 MVT HalfTy = MVT::getVectorVT(VecTy.getVectorElementType(), NumElem/2);
236 HexagonTargetLowering::typeExtElem(MVT VecTy, unsigned Factor) const { argument
237 MVT ElemTy = VecTy.getVectorElementType();
239 return MVT::getVectorVT(NewElemTy, VecTy.getVectorNumElements());
243 HexagonTargetLowering::typeTruncElem(MVT VecTy, unsigned Factor) const { argument
244 MVT ElemTy = VecTy.getVectorElementType();
246 return MVT::getVectorVT(NewElemTy, VecTy
350 buildHvxVectorReg(ArrayRef<SDValue> Values, const SDLoc &dl, MVT VecTy, SelectionDAG &DAG) const argument
591 buildHvxVectorPred(ArrayRef<SDValue> Values, const SDLoc &dl, MVT VecTy, SelectionDAG &DAG) const argument
770 MVT VecTy = ty(VecV); local
815 MVT VecTy = ty(VecV); local
879 MVT VecTy = ty(VecV); local
966 MVT VecTy = ty(VecV); local
1029 MVT VecTy = ty(Op); local
1056 MVT VecTy = ty(Op); local
1196 MVT VecTy = ty(VecV); local
[all...]
H A DHexagonSubtarget.h230 bool isHVXVectorType(MVT VecTy, bool IncludeBool = false) const { argument
231 if (!VecTy.isVector() || !useHVXOps() || VecTy.isScalableVector())
233 MVT ElemTy = VecTy.getVectorElementType();
238 unsigned NumElems = VecTy.getVectorNumElements();
253 unsigned VecWidth = VecTy.getSizeInBits();
H A DHexagonISelLowering.cpp1877 Type *VecTy = I.getArgOperand(1)->getType(); local
1878 Info.memVT = MVT::getVT(VecTy);
1882 MaybeAlign(M.getDataLayout().getTypeAllocSizeInBits(VecTy) / 8);
1976 MVT VecTy = ty(Op); local
1977 assert(!Subtarget.isHVXVectorType(VecTy, true) &&
1979 assert(VecTy.getSizeInBits() <= 64 && "Unexpected vector length");
1988 if (ty(Op0) != VecTy || ty(Op1) != VecTy)
1996 return DAG.getUNDEF(VecTy);
2004 unsigned ElemBytes = VecTy
2152 getBuildVectorConstInts(ArrayRef<SDValue> Values, MVT VecTy, SelectionDAG &DAG, MutableArrayRef<ConstantInt*> Consts) const argument
2182 buildVector32(ArrayRef<SDValue> Elem, const SDLoc &dl, MVT VecTy, SelectionDAG &DAG) const argument
2265 buildVector64(ArrayRef<SDValue> Elem, const SDLoc &dl, MVT VecTy, SelectionDAG &DAG) const argument
2329 MVT VecTy = ty(VecV); local
2428 MVT VecTy = ty(VecV); local
2528 MVT VecTy = ty(Op); local
2583 MVT VecTy = ty(Op); local
[all...]
H A DHexagonTargetTransformInfo.h46 bool isTypeForHVX(Type *VecTy) const;
124 unsigned getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy,
H A DHexagonISelLowering.h341 bool getBuildVectorConstInts(ArrayRef<SDValue> Values, MVT VecTy,
344 SDValue buildVector32(ArrayRef<SDValue> Elem, const SDLoc &dl, MVT VecTy,
346 SDValue buildVector64(ArrayRef<SDValue> Elem, const SDLoc &dl, MVT VecTy,
399 MVT typeExtElem(MVT VecTy, unsigned Factor) const;
400 MVT typeTruncElem(MVT VecTy, unsigned Factor) const;
416 MVT VecTy, SelectionDAG &DAG) const;
418 MVT VecTy, SelectionDAG &DAG) const;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp89 Value *ComputeElements(Value *TripCount, VectorType *VecTy);
98 VectorType *VecTy,
306 VectorType *VecTy = getVectorType(cast<IntrinsicInst>(&I)); local
307 unsigned Lanes = VecTy->getNumElements();
308 unsigned ElementWidth = VecTy->getScalarSizeInBits();
328 VectorType *VecTy) {
331 VecTy->getNumElements());
462 VectorType *VecTy, Value *NumElements) {
474 ConstantInt::get(cast<IntegerType>(Ty), VecTy->getNumElements());
477 switch (VecTy
327 ComputeElements(Value *TripCount, VectorType *VecTy) argument
460 InsertVCTPIntrinsic(Instruction *Predicate, DenseMap<Instruction*, Instruction*> &NewPredicates, VectorType *VecTy, Value *NumElements) argument
524 VectorType *VecTy = getVectorType(I); local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DASTImporter.h177 using VecTy = llvm::SmallVector<Decl *, 32>;
197 using Cycle = llvm::iterator_range<VecTy::const_reverse_iterator>;
206 VecTy copyCycleAtBack() const {
208 return VecTy(R.begin(), R.end());
213 VecTy Nodes;
231 llvm::SmallVector<ImportPathTy::VecTy, 32>;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp780 VectorType *VecTy = dyn_cast<VectorType>(Ty); local
784 (VecTy && TTI.getLoadVectorFactor(VF, TySize, TySize / 8, VecTy) == 0))
827 VectorType *VecTy = dyn_cast<VectorType>(Ty); local
831 (VecTy && TTI.getStoreVectorFactor(VF, TySize, TySize / 8, VecTy) == 0))
992 VectorType *VecTy; local
995 VecTy = VectorType::get(StoreTy->getScalarType(),
998 VecTy = VectorType::get(StoreTy, Chain.size());
1002 unsigned TargetVF = TTI.getStoreVectorFactor(VF, Sz, SzInBytes, VecTy);
1142 VectorType *VecTy; local
[all...]
H A DSLPVectorizer.cpp3224 VectorType *VecTy = VectorType::get(ScalarTy, VL.size());
3226 // If we have computed a smaller type for the expression, update VecTy so
3229 VecTy = VectorType::get(
3237 TTI->getShuffleCost(TargetTransformInfo::SK_PermuteSingleSrc, VecTy);
3244 TTI->getShuffleCost(TargetTransformInfo::SK_Broadcast, VecTy, 0);
3250 int Cost = TTI->getShuffleCost(ShuffleKind.getValue(), VecTy);
3260 Cost -= TTI->getVectorInstrCost(Instruction::ExtractElement, VecTy,
3287 Instruction::ExtractElement, VecTy, Idx);
3290 Instruction::ExtractElement, VecTy, Idx);
3304 TTI->getVectorInstrCost(Instruction::ExtractElement, VecTy, Id
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h160 int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy,
165 int getInterleavedMemoryOpCostAVX512(unsigned Opcode, Type *VecTy,
170 int getInterleavedMemoryOpCostAVX2(unsigned Opcode, Type *VecTy,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64LegalizerInfo.cpp549 const LLT &VecTy = Query.Types[1];
550 return VecTy == v2s16 || VecTy == v4s16 || VecTy == v8s16 ||
551 VecTy == v4s32 || VecTy == v2s64 || VecTy == v2s32;
556 const LLT &VecTy = Query.Types[0];
558 return VecTy == v2s32 || VecTy
[all...]
H A DAArch64TargetTransformInfo.h117 int getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy,
175 int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp622 VectorType *VecTy,
624 int Cost = TTIImpl->getExtractWithExtendCost(Opcode, Dst, VecTy, Index);
681 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices,
684 int Cost = TTIImpl->getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices,
831 VectorType *VecTy) const {
832 return TTIImpl->getLoadVectorFactor(VF, LoadSize, ChainSizeInBytes, VecTy);
838 VectorType *VecTy) const {
839 return TTIImpl->getStoreVectorFactor(VF, StoreSize, ChainSizeInBytes, VecTy);
1030 Type *VecTy = RdxStart->getType();
1031 unsigned NumVecElems = VecTy
621 getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy, unsigned Index) const argument
680 getInterleavedMemoryOpCost( unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, unsigned Alignment, unsigned AddressSpace, bool UseMaskForCond, bool UseMaskForGaps) const argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h594 Type *VecTy = nullptr; local
596 VecTy = A->getType();
598 assert((VF == 1 || VF == VecTy->getVectorNumElements()) &&
602 VecTy = VectorType::get(A->getType(), VF);
604 Cost += getScalarizationOverhead(VecTy, false, true);
611 unsigned getScalarizationOverhead(Type *VecTy, ArrayRef<const Value *> Args) { argument
612 assert(VecTy->isVectorTy());
616 Cost += getScalarizationOverhead(VecTy, true, false);
619 VecTy->getVectorNumElements());
623 Cost += getScalarizationOverhead(VecTy, fals
823 getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy, unsigned Index) argument
915 getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, unsigned Alignment, unsigned AddressSpace, bool UseMaskForCond = false, bool UseMaskForGaps = false) argument
[all...]
H A DValueTypes.h105 MVT VecTy = MVT::getVectorVT(IntTy, getVectorNumElements(), local
107 assert(VecTy.SimpleTy != MVT::INVALID_SIMPLE_VALUE_TYPE &&
109 return VecTy;
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h865 LLT VecTy = Query.Types[TypeIdx];
866 return VecTy.isVector() && VecTy.getElementType() == EltTy &&
867 VecTy.getNumElements() < MinElements;
870 LLT VecTy = Query.Types[TypeIdx];
872 TypeIdx, LLT::vector(MinElements, VecTy.getElementType()));
883 LLT VecTy = Query.Types[TypeIdx];
884 return VecTy.isVector() && VecTy.getElementType() == EltTy &&
885 VecTy
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h930 int getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy,
968 /// \p VecTy is the vector type of the interleaved access.
976 int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, unsigned Factor,
1123 VectorType *VecTy) const;
1129 VectorType *VecTy) const;
1325 VectorType *VecTy, unsigned Index) = 0;
1339 virtual int getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy,
1390 VectorType *VecTy) const = 0;
1393 VectorType *VecTy) const = 0;
1732 int getExtractWithExtendCost(unsigned Opcode, Type *Dst, VectorType *VecTy,
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1481 if (VectorType *VecTy = dyn_cast<VectorType>(Ty)) {
1482 unsigned ElementSizeInBits = DL.getTypeSizeInBits(VecTy->getScalarType());
1489 if (NumSkippedElements.ugt(VecTy->getNumElements()))
1493 return getNaturalGEPRecursively(IRB, DL, Ptr, VecTy->getElementType(),
2183 VectorType *VecTy = cast<VectorType>(V->getType());
2185 assert(NumElements <= VecTy->getNumElements() && "Too many elements!");
2187 if (NumElements == VecTy->getNumElements())
2209 VectorType *VecTy = cast<VectorType>(Old->getType());
2210 assert(VecTy && "Can only insert a vector into a vector");
2221 assert(Ty->getNumElements() <= VecTy
[all...]
H A DScalarizer.cpp164 VectorType *VecTy = nullptr; member in struct:__anon2755::VectorLayout
441 Layout.VecTy = dyn_cast<VectorType>(Ty);
442 if (!Layout.VecTy)
446 Layout.ElemTy = Layout.VecTy->getElementType();
453 Layout.VecAlign = DL.getABITypeAlignment(Layout.VecTy);
797 unsigned NumElems = Layout.VecTy->getNumElements();
804 Res[I] = Builder.CreateAlignedLoad(Layout.VecTy->getElementType(), Ptr[I],
823 unsigned NumElems = Layout.VecTy->getNumElements();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.h154 VectorType *VecTy) const;
157 VectorType *VecTy) const;
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DParsedAttr.h729 using VecTy = llvm::TinyPtrVector<ParsedAttr *>;
730 using SizeType = decltype(std::declval<VecTy>().size());
751 struct iterator : llvm::iterator_adaptor_base<iterator, VecTy::iterator,
755 iterator(VecTy::iterator I) : iterator_adaptor_base(I) {}
760 : llvm::iterator_adaptor_base<const_iterator, VecTy::const_iterator,
764 const_iterator(VecTy::const_iterator I) : iterator_adaptor_base(I) {}
815 VecTy AttrList;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp1061 int SystemZTTIImpl::getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, argument
1069 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices,
1072 assert(isa<VectorType>(VecTy) &&
1078 unsigned NumElts = VecTy->getVectorNumElements();
1081 unsigned NumEltsPerVecReg = (128U / getScalarSizeInBits(VecTy));
1082 unsigned NumVectorMemOps = getNumVectorRegs(VecTy);
1104 unsigned NumDstVecs = ceil(VF * getScalarSizeInBits(VecTy), 128U);

Completed in 489 milliseconds

123