/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | TinyPtrVector.h | 46 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val)) in ~TinyPtrVector() 51 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val)) in TinyPtrVector() 52 Val = new VecTy(*V); in TinyPtrVector() 69 Val = new VecTy(*cast<VecTy *>(RHS.Val)); 78 *cast<VecTy *>(Val) = *cast<VecTy *>(RHS.Val); 98 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val)) { 166 if (VecTy *Vec = dyn_cast_if_present<VecTy *>(Val)) in empty() 265 else if (VecTy *Vec = cast<VecTy *>(Val)) in pop_back() 273 } else if (VecTy *Vec = dyn_cast_if_present<VecTy *>(Val)) { in clear() 288 } else if (VecTy *Vec = dyn_cast_if_present<VecTy *>(Val)) { in erase() [all …]
|
H A D | PostOrderIterator.h | 298 using VecTy = SmallVector<NodeRef, 8>; variable 299 VecTy Blocks; // Block list in normal PO order 306 using rpo_iterator = typename VecTy::reverse_iterator; 307 using const_rpo_iterator = typename VecTy::const_reverse_iterator;
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonISelLoweringHVX.cpp | 1608 MVT VecTy = ty(Op); in LowerHvxBuildVector() local 1649 MVT VecTy = ty(Op); in LowerHvxSplatVector() local 1669 MVT VecTy = ty(Op); in LowerHvxConcatVectors() local 1778 MVT VecTy = ty(Op); in LowerHvxInsertElement() local 2244 MVT VecTy = ty(Op); in LowerHvxFpExtend() local 2479 MVT VecTy = ty(A); in emitHvxMulHsV60() local 2480 MVT PairTy = typeJoin({VecTy, VecTy}); in emitHvxMulHsV60() 2537 MVT VecTy = ty(A); in emitHvxMulLoHiV60() local 2538 MVT PairTy = typeJoin({VecTy, VecTy}); in emitHvxMulLoHiV60() 2614 MVT VecTy = ty(A); in emitHvxMulLoHiV62() local [all …]
|
H A D | HexagonTargetTransformInfo.cpp | 55 auto *VecTy = dyn_cast<VectorType>(Ty); in isHVXVectorType() local 56 if (!VecTy) in isHVXVectorType() 58 if (!ST.isTypeForHVX(VecTy)) in isHVXVectorType() 60 if (ST.useHVXV69Ops() || !VecTy->getElementType()->isFloatingPointTy()) in isHVXVectorType() 194 VectorType *VecTy = cast<VectorType>(Src); in getMemoryOpCost() local 195 unsigned VecWidth = VecTy->getPrimitiveSizeInBits().getFixedValue(); in getMemoryOpCost() 196 if (isHVXVectorType(VecTy)) { in getMemoryOpCost() 217 VecTy->getElementType()->isFloatingPointTy() ? FloatFactor : 1; in getMemoryOpCost() 259 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument 263 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost() [all …]
|
H A D | HexagonISelLowering.cpp | 2243 MVT VecTy = ty(Op); in LowerVECTOR_SHUFFLE() local 2255 if (ty(Op0) != VecTy || ty(Op1) != VecTy) in LowerVECTOR_SHUFFLE() 2263 return DAG.getUNDEF(VecTy); in LowerVECTOR_SHUFFLE() 2658 MVT VecTy = ty(VecV); in extractVector() local 2712 MVT VecTy = ty(VecV); in extractVectorPred() local 2764 MVT VecTy = ty(VecV); in insertVector() local 2806 MVT VecTy = ty(VecV); in insertVectorPred() local 2928 MVT VecTy = ty(Op); in LowerBUILD_VECTOR() local 2940 if (VecTy == MVT::v8i1 || VecTy == MVT::v4i1 || VecTy == MVT::v2i1) { in LowerBUILD_VECTOR() 2983 MVT VecTy = ty(Op); in LowerCONCAT_VECTORS() local [all …]
|
H A D | HexagonSubtarget.cpp | 187 bool HexagonSubtarget::isHVXVectorType(EVT VecTy, bool IncludeBool) const { in isHVXVectorType() argument 188 if (!VecTy.isSimple()) in isHVXVectorType() 190 if (!VecTy.isVector() || !useHVXOps() || VecTy.isScalableVector()) in isHVXVectorType() 192 MVT ElemTy = VecTy.getSimpleVT().getVectorElementType(); in isHVXVectorType() 197 unsigned NumElems = VecTy.getVectorNumElements(); in isHVXVectorType() 209 unsigned VecWidth = VecTy.getSizeInBits(); in isHVXVectorType() 215 bool HexagonSubtarget::isTypeForHVX(Type *VecTy, bool IncludeBool) const { in isTypeForHVX() argument 216 if (!VecTy->isVectorTy() || isa<ScalableVectorType>(VecTy)) in isTypeForHVX() 219 Type *ScalTy = VecTy->getScalarType(); in isTypeForHVX() 225 EVT Ty = EVT::getEVT(VecTy, /*HandleUnknown*/false); in isTypeForHVX()
|
H A D | HexagonISelLowering.h | 365 unsigned getPreferredHvxVectorAction(MVT VecTy) const; 374 bool getBuildVectorConstInts(ArrayRef<SDValue> Values, MVT VecTy, 377 SDValue buildVector32(ArrayRef<SDValue> Elem, const SDLoc &dl, MVT VecTy, 379 SDValue buildVector64(ArrayRef<SDValue> Elem, const SDLoc &dl, MVT VecTy, 440 MVT typeExtElem(MVT VecTy, unsigned Factor) const; 441 MVT typeTruncElem(MVT VecTy, unsigned Factor) const; 475 bool allowsHvxMemoryAccess(MVT VecTy, MachineMemOperand::Flags Flags, 477 bool allowsHvxMisalignedMemoryAccesses(MVT VecTy, 492 MVT VecTy, SelectionDAG &DAG) const; 494 MVT VecTy, SelectionDAG &DAG) const;
|
H A D | HexagonVectorCombine.cpp | 670 if (auto *VecTy = dyn_cast<VectorType>(ValTy)) in getMask() local 1719 if (VecTy == nullptr) in processFxpMul() 1941 auto VecTy = cast<VectorType>(X->getType()); in createAddCarry() local 2269 auto *VecTy = dyn_cast<VectorType>(Ty); in length() local 2270 assert(VecTy && "Must be a vector type"); in length() 2277 if (auto *VecTy = dyn_cast<VectorType>(Ty)) in getNullValue() local 2285 if (auto *VecTy = dyn_cast<VectorType>(Ty)) in getFullValue() local 2293 auto VecTy = cast<VectorType>(Ty); in getConstSplat() local 2294 Type *ElemTy = VecTy->getElementType(); in getConstSplat() 2650 unsigned Length = length(VecTy); in splitVectorElements() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VectorCombine.cpp | 351 Type *VecTy = Ext0->getVectorOperand()->getType(); in getShuffleExtract() local 413 Opcode, VecTy, CmpInst::makeCmpResultType(VecTy), Pred); in isExtractExtractCheap() 638 auto *VecTy = cast<FixedVectorType>(I.getType()); in foldInsExtFNeg() local 639 if (SrcVec->getType() != VecTy) in foldInsExtFNeg() 643 unsigned NumElts = VecTy->getNumElements(); in foldInsExtFNeg() 654 Type *ScalarTy = VecTy->getScalarType(); in foldInsExtFNeg() 917 Type *VecTy = I.getType(); in scalarizeBinopOrCmp() local 918 assert(VecTy->isVectorTy() && in scalarizeBinopOrCmp() 931 Opcode, VecTy, CmpInst::makeCmpResultType(VecTy), Pred); in scalarizeBinopOrCmp() 1027 if (!VecTy) in foldExtractedCmps() [all …]
|
H A D | LoadStoreVectorizer.cpp | 691 unsigned ChainSizeBytes, VectorType *VecTy) { in splitChainByAlignment() argument 693 ChainSizeBytes, VecTy) in splitChainByAlignment() 695 ChainSizeBytes, VecTy); in splitChainByAlignment() 743 FixedVectorType *VecTy = FixedVectorType::get(VecElemTy, NumVecElems); in splitChainByAlignment() local 870 Type *VecTy = FixedVectorType::get( in vectorizeChain() local 901 VecInst = Builder.CreateAlignedLoad(VecTy, in vectorizeChain() 953 Value *Vec = PoisonValue::get(VecTy); in vectorizeChain() 1359 VectorType *VecTy = dyn_cast<VectorType>(Ty); in collectEquivalenceClasses() local 1362 if ((!VecTy && !isPowerOf2_32(DL.getTypeSizeInBits(Ty))) || in collectEquivalenceClasses() 1363 (VecTy && !isPowerOf2_32(DL.getTypeSizeInBits(VecTy->getScalarType())))) in collectEquivalenceClasses() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | LegalizerInfo.h | 959 const LLT VecTy = Query.Types[TypeIdx]; in widenVectorEltsToVectorMinSize() 960 return VecTy.isVector() && !VecTy.isScalable() && in widenVectorEltsToVectorMinSize() 1128 LLT VecTy = Query.Types[TypeIdx]; in clampMinNumElements() 1129 return VecTy.isVector() && VecTy.getElementType() == EltTy && in clampMinNumElements() 1133 LLT VecTy = Query.Types[TypeIdx]; in clampMinNumElements() 1146 LLT VecTy = Query.Types[TypeIdx]; in alignNumElementsTo() 1147 return VecTy.isVector() && VecTy.getElementType() == EltTy && in alignNumElementsTo() 1151 LLT VecTy = Query.Types[TypeIdx]; in alignNumElementsTo() 1166 LLT VecTy = Query.Types[TypeIdx]; in clampMaxNumElements() 1167 return VecTy.isVector() && VecTy.getElementType() == EltTy && in clampMaxNumElements() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTImporter.h | 149 using VecTy = llvm::SmallVector<Decl *, 32>; 169 using Cycle = llvm::iterator_range<VecTy::const_reverse_iterator>; 178 VecTy copyCycleAtBack() const { in copyCycleAtBack() 180 return VecTy(R.begin(), R.end()); in copyCycleAtBack() 185 VecTy Nodes; 201 llvm::SmallVector<ImportPathTy::VecTy, 32>;
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetTransformInfoImpl.h | 568 InstructionCost getAltInstrCost(VectorType *VecTy, unsigned Opcode0, in getAltInstrCost() argument 621 VectorType *VecTy, in getExtractWithExtendCost() argument 879 VectorType *VecTy) const { in getLoadVectorFactor() argument 885 VectorType *VecTy) const { in getStoreVectorFactor() argument 1313 auto *VecTy = cast<VectorType>(U->getType()); in getInstructionCost() local 1354 return TargetTTI->getShuffleCost(TTI::SK_Reverse, VecTy, in getInstructionCost() 1359 return TargetTTI->getShuffleCost(TTI::SK_Select, VecTy, in getInstructionCost() 1364 return TargetTTI->getShuffleCost(TTI::SK_Transpose, VecTy, in getInstructionCost() 1369 return TargetTTI->getShuffleCost(TTI::SK_Broadcast, VecTy, in getInstructionCost() 1385 return TargetTTI->getShuffleCost(TTI::SK_Splice, VecTy, in getInstructionCost() [all …]
|
H A D | TargetTransformInfo.h | 1263 VectorType *VecTy, unsigned Opcode0, unsigned Opcode1, 1330 VectorType *VecTy, 1620 VectorType *VecTy) const; 1626 VectorType *VecTy) const; 1851 virtual bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, 1971 VectorType *VecTy, unsigned Opcode0, unsigned Opcode1, 2094 VectorType *VecTy) const = 0; 2613 VectorType *VecTy, in getExtractWithExtendCost() argument 2615 return Impl.getExtractWithExtendCost(Opcode, Dst, VecTy, Index); in getExtractWithExtendCost() 2798 VectorType *VecTy) const override { in getLoadVectorFactor() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
H A D | OpDescriptor.cpp | 36 } else if (VectorType *VecTy = dyn_cast<VectorType>(T)) { in makeConstantsWithType() local 38 Type *EltTy = VecTy->getElementType(); in makeConstantsWithType() 40 ElementCount EC = VecTy->getElementCount(); in makeConstantsWithType()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | Scalarizer.cpp | 102 FixedVectorType *VecTy = nullptr; member 225 unsigned NumElements = VS.VecTy->getNumElements(); in concatenate() 241 Value *Res = PoisonValue::get(VS.VecTy); in concatenate() 380 for (unsigned J = 0; J < VecTy->getNumElements(); ++J) in operator []() 541 Split.VecTy = dyn_cast<FixedVectorType>(Ty); in getVectorSplit() 542 if (!Split.VecTy) in getVectorSplit() 545 unsigned NumElems = Split.VecTy->getNumElements(); in getVectorSplit() 546 Type *ElemTy = Split.VecTy->getElementType(); in getVectorSplit() 824 if (auto *VecTy = in visitGetElementPtrInst() local 912 MidVS.VecTy = FixedVectorType::get(DstVS->VecTy->getElementType(), in visitBitCastInst() [all …]
|
H A D | SROA.cpp | 2684 VectorType *VecTy; member in __anon27169d500d11::AllocaSliceRewriter 2740 ElementTy(VecTy ? VecTy->getElementType() : nullptr), in AllocaSliceRewriter() 2745 if (VecTy) { in AllocaSliceRewriter() 2750 assert((!IntTy && !VecTy) || (IntTy && !VecTy) || (!IntTy && VecTy)); in AllocaSliceRewriter() 2787 if (VecTy || IntTy) in visit() 2917 if (VecTy) { in visitLoadInst() 3098 if (VecTy) in visitStoreInst() 3245 if (VecTy) { in visitMemSetInst() 4794 VectorType *VecTy = in rewritePartition() local 4796 if (VecTy) in rewritePartition() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVCodeGenPrepare.cpp | 139 Type *VecTy = I.getOperand(1)->getType(); in visitIntrinsicInst() local 141 auto *VecPHI = Builder.CreatePHI(VecTy, PHI->getNumIncomingValues()); in visitIntrinsicInst() 146 VecTy, PHI->getIncomingValueForBlock(BB), (uint64_t)0); in visitIntrinsicInst()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineValueType.h | 195 MVT VecTy = MVT::getVectorVT(IntTy, getVectorElementCount()); in changeVectorElementTypeToInteger() local 196 assert(VecTy.SimpleTy != MVT::INVALID_SIMPLE_VALUE_TYPE && in changeVectorElementTypeToInteger() 198 return VecTy; in changeVectorElementTypeToInteger() 204 MVT VecTy = MVT::getVectorVT(EltVT, getVectorElementCount()); in changeVectorElementType() local 205 assert(VecTy.SimpleTy != MVT::INVALID_SIMPLE_VALUE_TYPE && in changeVectorElementType() 207 return VecTy; in changeVectorElementType()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | LegalizeMutations.cpp | 100 const LLT VecTy = Query.Types[TypeIdx]; in moreElementsToNextPow2() local 102 std::max(1u << Log2_32_Ceil(VecTy.getNumElements()), Min); in moreElementsToNextPow2() 104 TypeIdx, LLT::fixed_vector(NewNumElements, VecTy.getElementType())); in moreElementsToNextPow2()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64LegalizerInfo.cpp | 844 const LLT &VecTy = Query.Types[1]; in AArch64LegalizerInfo() local 845 return VecTy == v2s16 || VecTy == v4s16 || VecTy == v8s16 || in AArch64LegalizerInfo() 846 VecTy == v4s32 || VecTy == v2s64 || VecTy == v2s32 || in AArch64LegalizerInfo() 847 VecTy == v8s8 || VecTy == v16s8 || VecTy == v2p0; in AArch64LegalizerInfo() 1983 LLT VecTy; in legalizeFCopySign() local 1994 VecTy = LLT::fixed_vector(2, DstTy); in legalizeFCopySign() 1999 VecTy = LLT::fixed_vector(4, DstTy); in legalizeFCopySign() 2005 auto Undef = MIRBuilder.buildUndef(VecTy); in legalizeFCopySign() 2008 VecTy, Undef, MI.getOperand(1).getReg(), Zero); in legalizeFCopySign() 2010 VecTy, Undef, MI.getOperand(2).getReg(), Zero); in legalizeFCopySign() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.h | 143 InstructionCost getAltInstrCost(VectorType *VecTy, unsigned Opcode0, 224 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, 228 unsigned Opcode, FixedVectorType *VecTy, unsigned Factor, 274 bool isLegalAltInstr(VectorType *VecTy, unsigned Opcode0, unsigned Opcode1,
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | TargetTransformInfo.cpp | 475 VectorType *VecTy, unsigned Opcode0, unsigned Opcode1, in isLegalAltInstr() argument 477 return TTIImpl->isLegalAltInstr(VecTy, Opcode0, Opcode1, OpcodeMask); in isLegalAltInstr() 880 VectorType *VecTy, unsigned Opcode0, unsigned Opcode1, in getAltInstrCost() argument 883 TTIImpl->getAltInstrCost(VecTy, Opcode0, Opcode1, OpcodeMask, CostKind); in getAltInstrCost() 954 unsigned Opcode, Type *Dst, VectorType *VecTy, unsigned Index) const { in getExtractWithExtendCost() argument 956 TTIImpl->getExtractWithExtendCost(Opcode, Dst, VecTy, Index); in getExtractWithExtendCost() 1045 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument 1049 Opcode, VecTy, Factor, Indices, Alignment, AddressSpace, CostKind, in getInterleavedMemoryOpCost() 1227 VectorType *VecTy) const { in getLoadVectorFactor() 1228 return TTIImpl->getLoadVectorFactor(VF, LoadSize, ChainSizeInBytes, VecTy); in getLoadVectorFactor() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsSEISelLowering.cpp | 87 for (const auto &VecTy : VecTys) { in MipsSETargetLowering() local 1417 EVT ViaVecTy = VecTy; in getBuildVectorSplat() 1422 if (VecTy == MVT::v2i64) { in getBuildVectorSplat() 1445 if (VecTy != ViaVecTy) in getBuildVectorSplat() 1454 EVT VecTy = Op->getValueType(0); in lowerMSABinaryBitImmIntr() local 1460 if (VecTy == MVT::v2i64) { in lowerMSABinaryBitImmIntr() 1483 if (VecTy == MVT::v2i64) in lowerMSABinaryBitImmIntr() 1488 Exp2Imm = DAG.getNode(ISD::SHL, DL, VecTy, DAG.getConstant(1, DL, VecTy), in lowerMSABinaryBitImmIntr() 1600 EVT VecTy = Op->getValueType(0); in lowerINTRINSIC_WO_CHAIN() local 2402 EVT VecTy = Op0->getValueType(0); in lowerEXTRACT_VECTOR_ELT() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.cpp | 1107 if (auto *VecTy = dyn_cast<FixedVectorType>(DataTy)) { in isLegalMaskedLoad() local 1109 if (VecTy->getNumElements() == 2) in isLegalMaskedLoad() 1114 if (VecWidth != 128 && VecTy->getElementType()->isFloatingPointTy()) in isLegalMaskedLoad() 1529 assert(isa<VectorType>(VecTy) && "Expect a vector type"); in getInterleavedMemoryOpCost() 1536 unsigned NumElts = cast<FixedVectorType>(VecTy)->getNumElements(); in getInterleavedMemoryOpCost() 1538 FixedVectorType::get(VecTy->getScalarType(), NumElts / Factor); in getInterleavedMemoryOpCost() 1555 VecTy->isIntOrIntVectorTy() && in getInterleavedMemoryOpCost() 1691 VecCost += getArithmeticInstrCost(Opcode, VecTy, CostKind); in getArithmeticReductionCost() 1718 VecCost += getArithmeticInstrCost(Opcode, VecTy, CostKind); in getArithmeticReductionCost() 1727 getArithmeticInstrCost(Opcode, VecTy, CostKind); in getArithmeticReductionCost() [all …]
|