Home
last modified time | relevance | path

Searched refs:FixedVectorType (Results 1 – 25 of 131) sorted by relevance

123456

/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DValueTypes.cpp113 return isExtendedVector() && isa<FixedVectorType>(LLVMTy); in isExtendedFixedLengthVector()
214 return FixedVectorType::get(Type::getInt1Ty(Context), 1); in getTypeForEVT()
216 return FixedVectorType::get(Type::getInt1Ty(Context), 2); in getTypeForEVT()
218 return FixedVectorType::get(Type::getInt1Ty(Context), 4); in getTypeForEVT()
220 return FixedVectorType::get(Type::getInt1Ty(Context), 8); in getTypeForEVT()
240 return FixedVectorType::get(Type::getInt8Ty(Context), 1); in getTypeForEVT()
242 return FixedVectorType::get(Type::getInt8Ty(Context), 2); in getTypeForEVT()
244 return FixedVectorType::get(Type::getInt8Ty(Context), 4); in getTypeForEVT()
246 return FixedVectorType::get(Type::getInt8Ty(Context), 8); in getTypeForEVT()
338 return FixedVectorType::get(Type::getHalfTy(Context), 1); in getTypeForEVT()
[all …]
H A DInterleavedLoadCombinePass.cpp675 FixedVectorType *const VTy;
677 VectorInfo(FixedVectorType *VTy) : VTy(VTy) { in VectorInfo()
736 FixedVectorType *VTy = dyn_cast<FixedVectorType>(Op->getType()); in computeFromBCI()
786 FixedVectorType *ArgTy = in computeFromSVI()
787 cast<FixedVectorType>(SVI->getOperand(0)->getType()); in computeFromSVI()
1203 cast<FixedVectorType>(InterleavedLoad.front().SVI->getType()) in combine()
1205 FixedVectorType *ILTy = FixedVectorType::get(ETy, Factor * ElementsPerSVI); in combine()
1270 Candidates.emplace_back(cast<FixedVectorType>(SVI->getType())); in run()
H A DExpandReductions.cpp127 cast<FixedVectorType>(Vec->getType())->getNumElements())) in expandReductions()
147 cast<FixedVectorType>(Vec->getType())->getNumElements())) in expandReductions()
159 cast<FixedVectorType>(Vec->getType())->getNumElements()) || in expandReductions()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDerivedTypes.h525 class FixedVectorType : public VectorType {
527 FixedVectorType(Type *ElTy, unsigned NumElts) in FixedVectorType() function
533 static FixedVectorType *get(Type *ElementType, const FixedVectorType *FVTy) { in get()
537 static FixedVectorType *getInteger(FixedVectorType *VTy) { in getInteger()
541 static FixedVectorType *getExtendedElementVectorType(FixedVectorType *VTy) { in getExtendedElementVectorType()
545 static FixedVectorType *getTruncatedElementVectorType(FixedVectorType *VTy) { in getTruncatedElementVectorType()
546 return cast<FixedVectorType>( in getTruncatedElementVectorType()
550 static FixedVectorType *getSubdividedVectorType(FixedVectorType *VTy, in getSubdividedVectorType()
552 return cast<FixedVectorType>( in getSubdividedVectorType()
556 static FixedVectorType *getHalfElementsVectorType(FixedVectorType *VTy) { in getHalfElementsVectorType()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp243 FixedVectorType *PtrTy = cast<FixedVectorType>(Ptr->getType()); in decomposePtr()
268 !isa<FixedVectorType>(Offsets->getType())) in decomposeGEP()
285 FixedVectorType *OffsetType = cast<FixedVectorType>(Offsets->getType()); in decomposeGEP()
409 auto *Ty = cast<FixedVectorType>(I->getType()); in lowerGather()
457 auto *Ty = cast<FixedVectorType>(I->getType()); in tryCreateMaskedGatherBase()
477 auto *Ty = cast<FixedVectorType>(I->getType()); in tryCreateMaskedGatherBaseWB()
729 FixedVectorType *Ty; in tryCreateIncrementingGatScat()
731 Ty = cast<FixedVectorType>(I->getType()); in tryCreateIncrementingGatScat()
1128 FixedVectorType *XElType = dyn_cast<FixedVectorType>(X->getType()); in CheckAndCreateOffsetAdd()
1129 FixedVectorType *YElType = dyn_cast<FixedVectorType>(Y->getType()); in CheckAndCreateOffsetAdd()
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DVectorTypesTest.cpp45 auto *V16Int8Ty = FixedVectorType::get(Int8Ty, 16); in TEST()
66 auto *V8Int16Ty = dyn_cast<FixedVectorType>( in TEST()
78 auto *V2Int64Ty = dyn_cast<FixedVectorType>( in TEST()
96 auto *ExtTy = dyn_cast<FixedVectorType>( in TEST()
102 auto *TruncTy = dyn_cast<FixedVectorType>( in TEST()
108 auto *HalvedTy = dyn_cast<FixedVectorType>( in TEST()
114 auto *DoubledTy = dyn_cast<FixedVectorType>( in TEST()
284 auto *V2Int32Ty = FixedVectorType::get(Int32Ty, 2); in TEST()
285 auto *V4Int32Ty = FixedVectorType::get(Int32Ty, 4); in TEST()
287 auto *V2Int64Ty = FixedVectorType::get(Int64Ty, 2); in TEST()
[all …]
H A DVectorBuilderTest.cpp34 FixedVectorType::get(Type::getInt1Ty(Context), VectorNumElements); in createBuilderModule()
59 FixedVectorType::get(Type::getFloatTy(Context), VectorNumElements); in TEST_F()
61 FixedVectorType::get(Type::getInt32Ty(Context), VectorNumElements); in TEST_F()
90 auto *MaskVecTy = cast<FixedVectorType>(ConstMask->getType()); in isAllTrueMask()
109 FixedVectorType::get(Type::getFloatTy(Context), VectorNumElements); in TEST_F()
111 FixedVectorType::get(Type::getInt32Ty(Context), VectorNumElements); in TEST_F()
155 FixedVectorType::get(Type::getFloatTy(Context), VectorNumElements); in TEST_F()
157 FixedVectorType::get(Type::getInt32Ty(Context), VectorNumElements); in TEST_F()
190 FixedVectorType::get(Type::getFloatTy(Context), VectorNumElements); in TEST_F()
192 FixedVectorType::get(Type::getInt32Ty(Context), VectorNumElements); in TEST_F()
[all …]
H A DInstructionsTest.cpp198 Type *V8x8Ty = FixedVectorType::get(Int8Ty, 8); in TEST()
199 Type *V8x64Ty = FixedVectorType::get(Int64Ty, 8); in TEST()
206 Type *V2Int32Ty = FixedVectorType::get(Int32Ty, 2); in TEST()
207 Type *V2Int64Ty = FixedVectorType::get(Int64Ty, 2); in TEST()
208 Type *V4Int16Ty = FixedVectorType::get(Int16Ty, 4); in TEST()
209 Type *V1Int16Ty = FixedVectorType::get(Int16Ty, 1); in TEST()
228 Type *V2Int64PtrTy = FixedVectorType::get(Int64PtrTy, 2); in TEST()
439 Type *V8x8Ty = FixedVectorType::get(Int8Ty, 8); in TEST()
440 Type *V8x64Ty = FixedVectorType::get(Int64Ty, 8); in TEST()
1433 Type *VITy = FixedVectorType::get(ITy, 2); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp666 auto *InsVecType = cast<FixedVectorType>(InsElt->getType()); in replaceExtractElements()
1271 cast<FixedVectorType>(Shuf->getType())->getNumElements(); in foldInsEltIntoSplat()
1550 if (isa<FixedVectorType>(IE.getType()) && in visitInsertElementInst()
1554 isa<FixedVectorType>(ExtVecOp->getType()) && in visitInsertElementInst()
2039 cast<FixedVectorType>(Shuf.getType())->getNumElements(); in canonicalizeInsertSplat()
2197 cast<FixedVectorType>(SrcType)->getNumElements() != in foldTruncShuffle()
2198 cast<FixedVectorType>(DestType)->getNumElements() || in foldTruncShuffle()
2242 cast<FixedVectorType>(Shuf.getType())->getNumElements(); in narrowVectorSelect()
2323 assert(isa<FixedVectorType>(CastSrcTy) && isa<FixedVectorType>(ShufOpTy) && in foldCastShuffle()
2589 auto *XType = cast<FixedVectorType>(X->getType()); in visitShuffleVectorInst()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86LowerAMXIntrinsics.cpp50 if (auto *FVT = dyn_cast<FixedVectorType>(Ty)) in isV256I32Ty()
178 FixedVectorType *V256I32Ty = FixedVectorType::get(EltTy, 256); in createTileLoadStoreLoops()
303 FixedVectorType *V256I32Ty = FixedVectorType::get(B.getInt32Ty(), 256); in createTileDPLoops()
379 FixedVectorType *V4I8Ty = FixedVectorType::get(B.getInt8Ty(), 4); in createTileDPLoops()
380 FixedVectorType *V4I32Ty = FixedVectorType::get(B.getInt32Ty(), 4); in createTileDPLoops()
434 FixedVectorType *V2I16Ty = FixedVectorType::get(B.getInt16Ty(), 2); in createTileDPLoops()
435 FixedVectorType *V2F32Ty = FixedVectorType::get(B.getFloatTy(), 2); in createTileDPLoops()
562 FixedVectorType *V256I32Ty = FixedVectorType::get(Builder.getInt32Ty(), 256); in lowerTileZero()
H A DX86PartialReduction.cpp110 if (cast<FixedVectorType>(Op->getType())->getNumElements() < 8) in tryMAddReplacement()
185 auto *MulTy = cast<FixedVectorType>(Op->getType()); in tryMAddReplacement()
265 auto *OpTy = cast<FixedVectorType>(Op->getType()); in trySADReplacement()
299 FixedVectorType::get(Builder.getInt32Ty(), IntrinsicNumElts / 4); in trySADReplacement()
319 cast<FixedVectorType>(Ops[0]->getType())->getNumElements() * 2; in trySADReplacement()
329 NumElts = cast<FixedVectorType>(OpTy)->getNumElements(); in trySADReplacement()
336 cast<FixedVectorType>(Ops[0]->getType())->getNumElements(); in trySADReplacement()
368 unsigned NumElems = cast<FixedVectorType>(BO->getType())->getNumElements(); in matchAddReduction()
H A DX86InstCombineIntrinsic.cpp202 auto *VT = cast<FixedVectorType>(Vec->getType()); in simplifyX86immShift()
350 auto *VT = cast<FixedVectorType>(II.getType()); in simplifyX86varShift()
447 auto *ArgTy = cast<FixedVectorType>(Arg0->getType()); in simplifyX86pack()
512 auto *ArgTy = dyn_cast<FixedVectorType>(Arg->getType()); in simplifyX86movmsk()
565 auto *VecTy = cast<FixedVectorType>(II.getType()); in simplifyX86insertps()
666 auto *ShufTy = FixedVectorType::get(IntTy8, 16); in simplifyX86extrq()
743 auto *ShufTy = FixedVectorType::get(IntTy8, 16); in simplifyX86insertq()
808 auto *VecTy = cast<FixedVectorType>(II.getType()); in simplifyX86pshufb()
853 auto *VecTy = cast<FixedVectorType>(II.getType()); in simplifyX86vpermilvar()
900 auto *VecTy = cast<FixedVectorType>(II.getType()); in simplifyX86vpermv()
[all …]
H A DX86InterleavedAccess.cpp72 void decompose(Instruction *Inst, unsigned NumSubVectors, FixedVectorType *T,
168 Instruction *VecInst, unsigned NumSubVectors, FixedVectorType *SubVecTy, in decompose()
204 VecBaseTy = FixedVectorType::get(Type::getInt8Ty(LI->getContext()), 16); in decompose()
724 auto *ShuffleTy = cast<FixedVectorType>(Shuffles[0]->getType()); in lowerIntoOptimizedSequence()
727 auto *ShuffleEltTy = cast<FixedVectorType>(Inst->getType()); in lowerIntoOptimizedSequence()
770 FixedVectorType::get(ShuffleEltTy, NumSubVecElems), in lowerIntoOptimizedSequence()
833 assert(cast<FixedVectorType>(SVI->getType())->getNumElements() % Factor == in lowerInterleavedStore()
H A DX86TargetTransformInfo.cpp4069 auto *VTy = dyn_cast<FixedVectorType>(Src); in getMemoryOpCost()
4130 : FixedVectorType::get( in getMemoryOpCost()
4350 auto *ValVTy = cast<FixedVectorType>(ValTy); in getArithmeticReductionCost()
4493 FixedVectorType *ShufTy; in getArithmeticReductionCost()
4504 FixedVectorType *ShufTy; in getArithmeticReductionCost()
4515 auto *ShiftTy = FixedVectorType::get( in getArithmeticReductionCost()
4740 auto *ValVTy = cast<FixedVectorType>(ValTy); in getMinMaxReductionCost()
4805 FixedVectorType *ShufTy; in getMinMaxReductionCost()
4814 auto *ShiftTy = FixedVectorType::get( in getMinMaxReductionCost()
5089 auto *IndexVTy = FixedVectorType::get( in getGSVectorCost()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp292 Size = cast<FixedVectorType>(Ty)->getNumElements(); in INITIALIZE_PASS_DEPENDENCY()
510 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in splitUnary()
530 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in splitBinary()
573 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in splitCall()
630 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitSelectInst()
684 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitGetElementPtrInst()
729 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitCastInst()
802 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitInsertElementInst()
837 unsigned NumSrcElems = cast<FixedVectorType>(VT)->getNumElements(); in visitExtractElementInst()
869 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitShuffleVectorInst()
[all …]
H A DScalarizeMaskedMemIntrin.cpp95 unsigned NumElts = cast<FixedVectorType>(Mask->getType())->getNumElements(); in isConstantIntVector()
150 VectorType *VecType = cast<FixedVectorType>(CI->getType()); in scalarizeMaskedLoad()
176 unsigned VectorWidth = cast<FixedVectorType>(VecType)->getNumElements(); in scalarizeMaskedLoad()
315 unsigned VectorWidth = cast<FixedVectorType>(VecType)->getNumElements(); in scalarizeMaskedStore()
419 auto *VecType = cast<FixedVectorType>(CI->getType()); in scalarizeMaskedGather()
549 auto *SrcFVTy = cast<FixedVectorType>(Src->getType()); in scalarizeMaskedScatter()
638 auto *VecType = cast<FixedVectorType>(CI->getType()); in scalarizeMaskedExpandLoad()
766 auto *VecType = cast<FixedVectorType>(Src->getType()); in scalarizeMaskedCompressStore()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h124 assert((!isa<FixedVectorType>(VTy) || in getExtractSubvectorOverhead()
149 assert((!isa<FixedVectorType>(VTy) || in getInsertSubvectorOverhead()
202 auto *VT = cast<FixedVectorType>(DataTy); in getCommonMaskedMemoryOpCost()
210 FixedVectorType::get( in getCommonMaskedMemoryOpCost()
708 auto *Ty = cast<FixedVectorType>(InTy); in getScalarizationOverhead()
732 auto *Ty = cast<FixedVectorType>(InTy); in getScalarizationOverhead()
851 if (auto *VTy = dyn_cast<FixedVectorType>(Ty)) {
906 if (auto *FVT = dyn_cast<FixedVectorType>(Tp))
1166 auto *SrcVT = FixedVectorType::get(EltTy, VF); in getReplicationShuffleCost()
1260 auto *VT = cast<FixedVectorType>(VecTy);
[all …]
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h123 if (isa<FixedVectorType>(DataType) && !ST->useRVVForFixedLengthVectors()) in isLegalMaskedLoadStore()
128 if (isa<FixedVectorType>(DataType) && in isLegalMaskedLoadStore()
151 if (isa<FixedVectorType>(DataType) && !ST->useRVVForFixedLengthVectors()) in isLegalMaskedGatherScatter()
156 if (isa<FixedVectorType>(DataType) && in isLegalMaskedGatherScatter()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp131 auto *Ty = dyn_cast<FixedVectorType>(I.getType()); in vectorizeLoadInsert()
404 auto *VecTy = cast<FixedVectorType>(Vec->getType()); in createShiftShuffle()
551 auto *DestTy = dyn_cast<FixedVectorType>(I.getType()); in foldBitcastShuf()
552 auto *SrcTy = dyn_cast<FixedVectorType>(V->getType()); in foldBitcastShuf()
753 auto *VecTy = dyn_cast<FixedVectorType>(X->getType()); in foldExtractedCmps()
1073 auto *VecTy = dyn_cast<FixedVectorType>(I.getType()); in foldShuffleOfBinops()
1195 FixedVectorType *VecType = in foldShuffleFromReductions()
1199 FixedVectorType *ShuffleInputType = in foldShuffleFromReductions()
1248 auto *VT = dyn_cast<FixedVectorType>(I.getType()); in foldSelectShuffle()
1490 FixedVectorType *Op0SmallVT = in foldSelectShuffle()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp246 auto *VTp = cast<FixedVectorType>(Tp); in getRandomValue()
308 return FixedVectorType::get(Ty, width); in pickVectorType()
485 cast<FixedVectorType>(Val0->getType())->getNumElements()), in Act()
499 unsigned Width = cast<FixedVectorType>(Val0->getType())->getNumElements(); in Act()
532 cast<FixedVectorType>(Val0->getType())->getNumElements()), in Act()
549 auto *VecTy = cast<FixedVectorType>(VTy); in Act()
631 if (isa<FixedVectorType>(Val0->getType()) && (getRandom() & 1)) { in Act()
633 cast<FixedVectorType>(Val0->getType())->getNumElements(); in Act()
634 CondTy = FixedVectorType::get(CondTy, NumElem); in Act()
/llvm-project-15.0.7/llvm/lib/IR/
H A DAutoUpgrade.cpp1111 auto *ResultTy = cast<FixedVectorType>(Op->getType()); in UpgradeX86PSLLDQIntrinsics()
1145 auto *ResultTy = cast<FixedVectorType>(Op->getType()); in UpgradeX86PSRLDQIntrinsics()
1178 llvm::VectorType *MaskTy = FixedVectorType::get( in getX86MaskVec()
1214 auto *MaskTy = FixedVectorType::get(Builder.getInt1Ty(), in EmitX86ScalarSelect()
2400 auto *DstTy = cast<FixedVectorType>(CI->getType()); in UpgradeIntrinsicCall()
2432 auto *DstTy = cast<FixedVectorType>(CI->getType()); in UpgradeIntrinsicCall()
2565 auto *VecTy = cast<FixedVectorType>(CI->getType()); in UpgradeIntrinsicCall()
2582 auto *DstTy = cast<FixedVectorType>(CI->getType()); in UpgradeIntrinsicCall()
2613 auto *VT = FixedVectorType::get(EltTy, NumSrcElts); in UpgradeIntrinsicCall()
2740 auto *VecTy = cast<FixedVectorType>(CI->getType()); in UpgradeIntrinsicCall()
[all …]
H A DType.cpp120 if (((isa<FixedVectorType>(this)) && Ty->isX86_MMXTy()) && in canLosslesslyBitCastTo()
123 if ((isX86_MMXTy() && isa<FixedVectorType>(Ty)) && in canLosslesslyBitCastTo()
128 if (((isa<FixedVectorType>(this)) && Ty->isX86_AMXTy()) && in canLosslesslyBitCastTo()
131 if ((isX86_AMXTy() && isa<FixedVectorType>(Ty)) && in canLosslesslyBitCastTo()
672 return FixedVectorType::get(ElementType, EC.getKnownMinValue()); in get()
684 FixedVectorType *FixedVectorType::get(Type *ElementType, unsigned NumElts) { in get()
697 Entry = new (pImpl->Alloc) FixedVectorType(ElementType, NumElts); in get()
698 return cast<FixedVectorType>(Entry); in get()
H A DConstants.cpp137 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in isNotOneValue()
182 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in isNotMinSignedValue()
204 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in isFiniteNonZeroFP()
225 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in isNormalFP()
246 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in hasExactInverseFP()
267 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in isNaN()
756 auto *VTy = dyn_cast<FixedVectorType>(Ty); in replaceUndefsWith()
780 auto *VTy = dyn_cast<FixedVectorType>(Ty); in mergeUndefsWith()
786 assert(isa<FixedVectorType>(Other->getType()) && in mergeUndefsWith()
2225 MidTy = FixedVectorType::get(MidTy, in getAddrSpaceCast()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp414 auto *VTy = cast<FixedVectorType>(Ty); in getNumVectorRegs()
522 auto *VTy = cast<FixedVectorType>(Ty); in getArithmeticInstrCost()
654 assert(cast<FixedVectorType>(SrcTy)->getNumElements() == in getVectorTruncCost()
655 cast<FixedVectorType>(DstTy)->getNumElements() && in getVectorTruncCost()
671 unsigned VF = cast<FixedVectorType>(SrcTy)->getNumElements(); in getVectorTruncCost()
733 return FixedVectorType::get(ElTy, VF); in getCmpOpsType()
744 auto *DstVTy = cast<FixedVectorType>(Dst); in getBoolVecToIntConversionCost()
803 auto *SrcVecTy = cast<FixedVectorType>(Src); in getCastInstrCost()
804 auto *DstVecTy = dyn_cast<FixedVectorType>(Dst); in getCastInstrCost()
947 unsigned VF = cast<FixedVectorType>(ValTy)->getNumElements(); in getCmpSelInstrCost()
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DSwiftCallingConv.cpp338 (end - begin) / cast<llvm::FixedVectorType>(vecTy)->getNumElements(); in addEntry()
341 e = cast<llvm::FixedVectorType>(vecTy)->getNumElements(); in addEntry()
696 cast<llvm::FixedVectorType>(vectorTy)->getNumElements()); in isLegalVectorType()
709 auto numElts = cast<llvm::FixedVectorType>(vectorTy)->getNumElements(); in splitLegalVectorType()
715 return {llvm::FixedVectorType::get(eltTy, numElts / 2), 2}; in splitLegalVectorType()
731 auto numElts = cast<llvm::FixedVectorType>(origVectorTy)->getNumElements(); in legalizeVectorType()
769 llvm::FixedVectorType::get(eltTy, candidateNumElts)); in legalizeVectorType()
779 components.push_back(llvm::FixedVectorType::get(eltTy, numElts)); in legalizeVectorType()

123456