/external/llvm-project/llvm/lib/CodeGen/ |
D | ValueTypes.cpp | 110 return isExtendedVector() && isa<FixedVectorType>(LLVMTy); in isExtendedFixedLengthVector() 199 return FixedVectorType::get(Type::getInt1Ty(Context), 1); in getTypeForEVT() 201 return FixedVectorType::get(Type::getInt1Ty(Context), 2); in getTypeForEVT() 203 return FixedVectorType::get(Type::getInt1Ty(Context), 4); in getTypeForEVT() 205 return FixedVectorType::get(Type::getInt1Ty(Context), 8); in getTypeForEVT() 207 return FixedVectorType::get(Type::getInt1Ty(Context), 16); in getTypeForEVT() 209 return FixedVectorType::get(Type::getInt1Ty(Context), 32); in getTypeForEVT() 211 return FixedVectorType::get(Type::getInt1Ty(Context), 64); in getTypeForEVT() 213 return FixedVectorType::get(Type::getInt1Ty(Context), 128); in getTypeForEVT() 215 return FixedVectorType::get(Type::getInt1Ty(Context), 256); in getTypeForEVT() [all …]
|
D | InterleavedLoadCombinePass.cpp | 676 FixedVectorType *const VTy; 678 VectorInfo(FixedVectorType *VTy) in VectorInfo() 738 FixedVectorType *VTy = dyn_cast<FixedVectorType>(Op->getType()); in computeFromBCI() 788 FixedVectorType *ArgTy = in computeFromSVI() 789 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() 1273 Candidates.emplace_back(cast<FixedVectorType>(SVI->getType())); in run()
|
D | ExpandReductions.cpp | 129 cast<FixedVectorType>(Vec->getType())->getNumElements())) in expandReductions() 149 cast<FixedVectorType>(Vec->getType())->getNumElements())) in expandReductions() 162 cast<FixedVectorType>(Vec->getType())->getNumElements()) || in expandReductions()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 554 class FixedVectorType : public VectorType { 556 FixedVectorType(Type *ElTy, unsigned NumElts) in FixedVectorType() function 560 static FixedVectorType *get(Type *ElementType, unsigned NumElts); 562 static FixedVectorType *get(Type *ElementType, const FixedVectorType *FVTy) { in get() 566 static FixedVectorType *getInteger(FixedVectorType *VTy) { in getInteger() 567 return cast<FixedVectorType>(VectorType::getInteger(VTy)); in getInteger() 570 static FixedVectorType *getExtendedElementVectorType(FixedVectorType *VTy) { in getExtendedElementVectorType() 571 return cast<FixedVectorType>(VectorType::getExtendedElementVectorType(VTy)); in getExtendedElementVectorType() 574 static FixedVectorType *getTruncatedElementVectorType(FixedVectorType *VTy) { in getTruncatedElementVectorType() 575 return cast<FixedVectorType>( in getTruncatedElementVectorType() [all …]
|
D | MatrixBuilder.h | 73 auto *RetType = FixedVectorType::get(EltTy, Rows * Columns); 118 FixedVectorType::get(OpType->getElementType(), Rows * Columns); 137 FixedVectorType::get(LHSType->getElementType(), LHSRows * RHSColumns);
|
/external/llvm-project/llvm/unittests/IR/ |
D | VectorTypesTest.cpp | 41 auto *V16Int8Ty = FixedVectorType::get(Int8Ty, 16); in TEST() 47 dyn_cast<FixedVectorType>(VectorType::get(Int32Ty, 8, false)); in TEST() 53 dyn_cast<FixedVectorType>(VectorType::get(Int8Ty, V8Int32Ty)); in TEST() 59 dyn_cast<FixedVectorType>(VectorType::get(Int32Ty, V8Int32Ty)); in TEST() 62 auto *V8Int16Ty = dyn_cast<FixedVectorType>( in TEST() 69 auto *V4Int64Ty = dyn_cast<FixedVectorType>(VectorType::get(Int64Ty, EltCnt)); in TEST() 74 auto *V2Int64Ty = dyn_cast<FixedVectorType>( in TEST() 81 dyn_cast<FixedVectorType>(VectorType::get(Int64Ty, EltCnt * 2)); in TEST() 87 dyn_cast<FixedVectorType>(VectorType::get(Float64Ty, EltCnt)); in TEST() 92 auto *ExtTy = dyn_cast<FixedVectorType>( in TEST() [all …]
|
D | InstructionsTest.cpp | 190 Type *V8x8Ty = FixedVectorType::get(Int8Ty, 8); in TEST() 191 Type *V8x64Ty = FixedVectorType::get(Int64Ty, 8); in TEST() 198 Type *V2Int32Ty = FixedVectorType::get(Int32Ty, 2); in TEST() 199 Type *V2Int64Ty = FixedVectorType::get(Int64Ty, 2); in TEST() 200 Type *V4Int16Ty = FixedVectorType::get(Int16Ty, 4); in TEST() 201 Type *V1Int16Ty = FixedVectorType::get(Int16Ty, 1); in TEST() 214 Type *V2Int32PtrAS1Ty = FixedVectorType::get(Int32PtrAS1Ty, 2); in TEST() 215 Type *V2Int64PtrAS1Ty = FixedVectorType::get(Int64PtrAS1Ty, 2); in TEST() 216 Type *V4Int32PtrAS1Ty = FixedVectorType::get(Int32PtrAS1Ty, 4); in TEST() 218 Type *V4Int64PtrAS1Ty = FixedVectorType::get(Int64PtrAS1Ty, 4); in TEST() [all …]
|
/external/llvm-project/llvm/lib/Target/ARM/ |
D | MVEGatherScatterLowering.cpp | 87 Value *checkGEP(Value *&Offsets, FixedVectorType *Ty, GetElementPtrInst *GEP, 187 unsigned OffsetElemSize = cast<FixedVectorType>(Offsets->getType()) in checkOffsetSize() 204 if (isa<FixedVectorType>(ConstOff->getType())) { in checkOffsetSize() 217 Value *MVEGatherScatterLowering::checkGEP(Value *&Offsets, FixedVectorType *Ty, in checkGEP() 230 !isa<FixedVectorType>(Offsets->getType())) in checkGEP() 240 cast<FixedVectorType>(Offsets->getType())->getNumElements(); in checkGEP() 247 FixedVectorType *OffsetType = cast<FixedVectorType>(Offsets->getType()); in checkGEP() 251 if (!ZextOffs || cast<FixedVectorType>(ZextOffs->getDestTy()) in checkGEP() 275 auto *BCTy = cast<FixedVectorType>(BitCast->getType()); in lookThroughBitcast() 276 auto *BCSrcTy = cast<FixedVectorType>(BitCast->getOperand(0)->getType()); in lookThroughBitcast() [all …]
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 85 unsigned getBroadcastShuffleOverhead(FixedVectorType *VTy) { in getBroadcastShuffleOverhead() 99 unsigned getPermuteShuffleOverhead(FixedVectorType *VTy) { in getPermuteShuffleOverhead() 117 unsigned getExtractSubvectorOverhead(FixedVectorType *VTy, int Index, in getExtractSubvectorOverhead() 118 FixedVectorType *SubVTy) { in getExtractSubvectorOverhead() 140 unsigned getInsertSubvectorOverhead(FixedVectorType *VTy, int Index, in getInsertSubvectorOverhead() 141 FixedVectorType *SubVTy) { in getInsertSubvectorOverhead() 577 auto *Ty = cast<FixedVectorType>(InTy); in getScalarizationOverhead() 599 auto *Ty = cast<FixedVectorType>(InTy); in getScalarizationOverhead() 624 VF == cast<FixedVectorType>(VecTy)->getNumElements()) && in getOperandsScalarizationOverhead() 628 VecTy = FixedVectorType::get(Ty, VF); in getOperandsScalarizationOverhead() [all …]
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 274 unsigned VWidth = cast<FixedVectorType>(V->getType())->getNumElements(); in findDemandedEltsBySingleUser() 292 cast<FixedVectorType>(UserInstr->getType())->getNumElements(); in findDemandedEltsBySingleUser() 318 unsigned VWidth = cast<FixedVectorType>(V->getType())->getNumElements(); in findDemandedEltsByAllUsers() 437 if (isa<FixedVectorType>(SVI->getType()) && isa<ConstantInt>(Index)) { in visitExtractElementInst() 441 unsigned LHSWidth = cast<FixedVectorType>(SVI->getOperand(0)->getType()) in visitExtractElementInst() 475 unsigned NumElts = cast<FixedVectorType>(V->getType())->getNumElements(); in collectSingleShuffleElements() 517 cast<FixedVectorType>(LHS->getType())->getNumElements(); in collectSingleShuffleElements() 547 auto *InsVecType = cast<FixedVectorType>(InsElt->getType()); in replaceExtractElements() 548 auto *ExtVecType = cast<FixedVectorType>(ExtElt->getVectorOperandType()); in replaceExtractElements() 631 unsigned NumElts = cast<FixedVectorType>(V->getType())->getNumElements(); in collectShuffleElements() [all …]
|
D | InstCombineCasts.cpp | 507 VecType = FixedVectorType::get(DestType, NumVecElts); in foldVecTruncToExtElt() 910 auto *VecOpTy = cast<FixedVectorType>(VecOp->getType()); in visitTrunc() 923 auto *BitCastTo = FixedVectorType::get(DestTy, BitCastNumElts); in visitTrunc() 1576 unsigned NumElts = cast<FixedVectorType>(CVVTy)->getNumElements(); in shrinkFPConstantVector() 1593 return FixedVectorType::get(MinType, NumElts); in shrinkFPConstantVector() 1980 IntPtrTy = FixedVectorType::get( in visitPtrToInt() 1981 IntPtrTy, cast<FixedVectorType>(VecTy)->getNumElements()); in visitPtrToInt() 2036 FixedVectorType::get(DestTy->getElementType(), in optimizeVectorResizeWithIntegerBitCasts() 2037 cast<FixedVectorType>(SrcTy)->getNumElements()); in optimizeVectorResizeWithIntegerBitCasts() 2042 unsigned SrcElts = cast<FixedVectorType>(SrcTy)->getNumElements(); in optimizeVectorResizeWithIntegerBitCasts() [all …]
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86PartialReduction.cpp | 71 if (cast<FixedVectorType>(Op->getType())->getNumElements() < 8) in tryMAddReplacement() 139 auto *MulTy = cast<FixedVectorType>(Op->getType()); in tryMAddReplacement() 214 auto *OpTy = cast<FixedVectorType>(Op->getType()); in trySADReplacement() 248 FixedVectorType::get(Builder.getInt32Ty(), IntrinsicNumElts / 4); in trySADReplacement() 268 cast<FixedVectorType>(Ops[0]->getType())->getNumElements() * 2; in trySADReplacement() 278 NumElts = cast<FixedVectorType>(OpTy)->getNumElements(); in trySADReplacement() 285 cast<FixedVectorType>(Ops[0]->getType())->getNumElements(); in trySADReplacement() 313 unsigned NumElems = cast<FixedVectorType>(BO->getType())->getNumElements(); in matchAddReduction()
|
D | X86InstCombineIntrinsic.cpp | 202 auto VT = cast<FixedVectorType>(Vec->getType()); in simplifyX86immShift() 234 unsigned NumAmtElts = cast<FixedVectorType>(AmtVT)->getNumElements(); in simplifyX86immShift() 350 auto VT = cast<FixedVectorType>(II.getType()); in simplifyX86varShift() 448 auto *ArgTy = cast<FixedVectorType>(Arg0->getType()); in simplifyX86pack() 451 assert(cast<FixedVectorType>(ResTy)->getNumElements() == (2 * NumSrcElts) && in simplifyX86pack() 513 auto *ArgTy = dyn_cast<FixedVectorType>(Arg->getType()); in simplifyX86movmsk() 567 auto *VecTy = cast<FixedVectorType>(II.getType()); in simplifyX86insertps() 668 auto *ShufTy = FixedVectorType::get(IntTy8, 16); in simplifyX86extrq() 745 auto *ShufTy = FixedVectorType::get(IntTy8, 16); in simplifyX86insertq() 810 auto *VecTy = cast<FixedVectorType>(II.getType()); in simplifyX86pshufb() [all …]
|
D | X86InterleavedAccess.cpp | 72 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() 730 auto *ShuffleTy = cast<FixedVectorType>(Shuffles[0]->getType()); in lowerIntoOptimizedSequence() 736 auto *ShuffleEltTy = cast<FixedVectorType>(Inst->getType()); in lowerIntoOptimizedSequence() 772 FixedVectorType::get(ShuffleEltTy, NumSubVecElems), in lowerIntoOptimizedSequence() 835 assert(cast<FixedVectorType>(SVI->getType())->getNumElements() % Factor == in lowerInterleavedStore()
|
D | X86TargetTransformInfo.cpp | 995 int OrigSubElts = cast<FixedVectorType>(SubTp)->getNumElements(); in getShuffleCost() 1004 auto *VecTy = FixedVectorType::get(BaseTp->getElementType(), in getShuffleCost() 1006 auto *SubTy = FixedVectorType::get(BaseTp->getElementType(), in getShuffleCost() 1070 cast<FixedVectorType>(BaseTp)->getNumElements()) { in getShuffleCost() 1079 auto *SingleOpTy = FixedVectorType::get(BaseTp->getElementType(), in getShuffleCost() 3087 SubTy = FixedVectorType::get(ScalarType, SubNumElts); in getVectorInstrCost() 3154 for (unsigned i = 0, e = cast<FixedVectorType>(Ty)->getNumElements(); in getScalarizationOverhead() 3172 PowerOf2Ceil(cast<FixedVectorType>(Ty)->getNumElements()); in getScalarizationOverhead() 3204 if (auto *VTy = dyn_cast<FixedVectorType>(Src)) { in getMemoryOpCost() 3257 auto *SrcVTy = dyn_cast<FixedVectorType>(SrcTy); in getMaskedMemoryOpCost() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | Scalarizer.cpp | 265 Size = cast<FixedVectorType>(Ty)->getNumElements(); in INITIALIZE_PASS_DEPENDENCY() 469 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in splitUnary() 489 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in splitBinary() 532 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in splitCall() 582 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitSelectInst() 636 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitGetElementPtrInst() 681 unsigned NumElems = cast<FixedVectorType>(VT)->getNumElements(); in visitCastInst() 700 unsigned DstNumElems = cast<FixedVectorType>(DstVT)->getNumElements(); in visitBitCastInst() 701 unsigned SrcNumElems = cast<FixedVectorType>(SrcVT)->getNumElements(); in visitBitCastInst() 715 auto *MidTy = FixedVectorType::get(DstVT->getElementType(), FanOut); in visitBitCastInst() [all …]
|
D | ScalarizeMaskedMemIntrin.cpp | 87 unsigned NumElts = cast<FixedVectorType>(Mask->getType())->getNumElements(); in isConstantIntVector() 136 VectorType *VecType = cast<FixedVectorType>(CI->getType()); in scalarizeMaskedLoad() 162 unsigned VectorWidth = cast<FixedVectorType>(VecType)->getNumElements(); in scalarizeMaskedLoad() 299 unsigned VectorWidth = cast<FixedVectorType>(VecType)->getNumElements(); in scalarizeMaskedStore() 400 auto *VecType = cast<FixedVectorType>(CI->getType()); in scalarizeMaskedGather() 524 auto *SrcFVTy = cast<FixedVectorType>(Src->getType()); in scalarizeMaskedScatter() 609 auto *VecType = cast<FixedVectorType>(CI->getType()); in scalarizeMaskedExpandLoad() 733 auto *VecType = cast<FixedVectorType>(Src->getType()); in scalarizeMaskedCompressStore()
|
/external/llvm-project/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 240 auto *VTp = cast<FixedVectorType>(Tp); in getRandomValue() 302 return FixedVectorType::get(Ty, width); in pickVectorType() 490 cast<FixedVectorType>(Val0->getType())->getNumElements()), in Act() 504 unsigned Width = cast<FixedVectorType>(Val0->getType())->getNumElements(); in Act() 537 cast<FixedVectorType>(Val0->getType())->getNumElements()), in Act() 554 auto *VecTy = cast<FixedVectorType>(VTy); in Act() 636 if (isa<FixedVectorType>(Val0->getType()) && (getRandom() % 1)) { in Act() 638 cast<FixedVectorType>(Val0->getType())->getNumElements(); in Act() 639 CondTy = FixedVectorType::get(CondTy, NumElem); in Act()
|
/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 369 auto *VTy = cast<FixedVectorType>(Ty); in getNumVectorRegs() 477 auto *VTy = cast<FixedVectorType>(Ty); in getArithmeticInstrCost() 599 assert(cast<FixedVectorType>(SrcTy)->getNumElements() == in getVectorTruncCost() 600 cast<FixedVectorType>(DstTy)->getNumElements() && in getVectorTruncCost() 616 unsigned VF = cast<FixedVectorType>(SrcTy)->getNumElements(); in getVectorTruncCost() 678 return FixedVectorType::get(ElTy, VF); in getCmpOpsType() 689 auto *DstVTy = cast<FixedVectorType>(Dst); in getBoolVecToIntConversionCost() 746 auto *SrcVecTy = cast<FixedVectorType>(Src); in getCastInstrCost() 747 auto *DstVecTy = cast<FixedVectorType>(Dst); in getCastInstrCost() 881 unsigned VF = cast<FixedVectorType>(ValTy)->getNumElements(); in getCmpSelInstrCost() [all …]
|
/external/llvm-project/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 47 if (Arg0Type != FixedVectorType::get(Type::getFloatTy(F->getContext()), 4)) in UpgradePTESTIntrinsic() 660 FixedVectorType::get(Type::getBFloatTy(Ctx), OperandWidth / 16) in UpgradeIntrinsicFunction1() 1016 auto *ResultTy = cast<FixedVectorType>(Op->getType()); in UpgradeX86PSLLDQIntrinsics() 1020 Type *VecTy = FixedVectorType::get(Builder.getInt8Ty(), NumElts); in UpgradeX86PSLLDQIntrinsics() 1050 auto *ResultTy = cast<FixedVectorType>(Op->getType()); in UpgradeX86PSRLDQIntrinsics() 1054 Type *VecTy = FixedVectorType::get(Builder.getInt8Ty(), NumElts); in UpgradeX86PSRLDQIntrinsics() 1083 llvm::VectorType *MaskTy = FixedVectorType::get( in getX86MaskVec() 1108 cast<FixedVectorType>(Op0->getType())->getNumElements()); in EmitX86Select() 1119 auto *MaskTy = FixedVectorType::get(Builder.getInt1Ty(), in EmitX86ScalarSelect() 1135 unsigned NumElts = cast<FixedVectorType>(Op0->getType())->getNumElements(); in UpgradeX86ALIGNIntrinsics() [all …]
|
D | Type.cpp | 77 if (((isa<FixedVectorType>(this)) && Ty->isX86_MMXTy()) && in canLosslesslyBitCastTo() 80 if ((isX86_MMXTy() && isa<FixedVectorType>(Ty)) && in canLosslesslyBitCastTo() 604 return FixedVectorType::get(ElementType, EC.getKnownMinValue()); in get() 616 FixedVectorType *FixedVectorType::get(Type *ElementType, unsigned NumElts) { in get() 629 Entry = new (pImpl->Alloc) FixedVectorType(ElementType, NumElts); in get() 630 return cast<FixedVectorType>(Entry); in get()
|
D | Constants.cpp | 164 unsigned NumElts = cast<FixedVectorType>(VTy)->getNumElements(); in isNotOneValue() 214 unsigned NumElts = cast<FixedVectorType>(VTy)->getNumElements(); in isNotMinSignedValue() 230 auto *VTy = dyn_cast<FixedVectorType>(getType()); in isFiniteNonZeroFP() 244 auto *VTy = dyn_cast<FixedVectorType>(getType()); in isNormalFP() 258 auto *VTy = dyn_cast<FixedVectorType>(getType()); in hasExactInverseFP() 272 auto *VTy = dyn_cast<FixedVectorType>(getType()); in isNaN() 316 for (unsigned i = 0, e = cast<FixedVectorType>(VTy)->getNumElements(); in containsUndefElement() 326 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in containsConstantExpression() 745 auto *VTy = dyn_cast<FixedVectorType>(Ty); in replaceUndefsWith() 769 auto *VTy = dyn_cast<FixedVectorType>(Ty); in mergeUndefsWith() [all …]
|
/external/llvm-project/clang/lib/CodeGen/ |
D | SwiftCallingConv.cpp | 337 (end - begin) / cast<llvm::FixedVectorType>(vecTy)->getNumElements(); in addEntry() 340 e = cast<llvm::FixedVectorType>(vecTy)->getNumElements(); in addEntry() 695 cast<llvm::FixedVectorType>(vectorTy)->getNumElements()); in isLegalVectorType() 708 auto numElts = cast<llvm::FixedVectorType>(vectorTy)->getNumElements(); in splitLegalVectorType() 714 return {llvm::FixedVectorType::get(eltTy, numElts / 2), 2}; in splitLegalVectorType() 730 auto numElts = cast<llvm::FixedVectorType>(origVectorTy)->getNumElements(); in legalizeVectorType() 768 llvm::FixedVectorType::get(eltTy, candidateNumElts)); in legalizeVectorType() 778 components.push_back(llvm::FixedVectorType::get(eltTy, numElts)); in legalizeVectorType()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPrintfRuntimeBinding.cpp | 221 auto *LLVMVecType = llvm::dyn_cast<llvm::FixedVectorType>(ArgType); in lowerPrintfForGpu() 224 ResType = llvm::FixedVectorType::get(ResType, NumElem); in lowerPrintfForGpu() 474 } else if (isa<FixedVectorType>(ArgType)) { in lowerPrintfForGpu() 476 uint32_t EleCount = cast<FixedVectorType>(ArgType)->getNumElements(); in lowerPrintfForGpu() 515 IType = FixedVectorType::get(IType, EleCount); in lowerPrintfForGpu()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | VectorUtils.cpp | 273 if (auto *FVTy = dyn_cast<FixedVectorType>(VTy)) { in findScalarElement() 304 if (SVI && isa<FixedVectorType>(SVI->getType())) { in findScalarElement() 306 cast<FixedVectorType>(SVI->getOperand(0)->getType())->getNumElements(); in findScalarElement() 825 unsigned NumElts1 = cast<FixedVectorType>(VecTy1)->getNumElements(); in concatenateTwoVectors() 826 unsigned NumElts2 = cast<FixedVectorType>(VecTy2)->getNumElements(); in concatenateTwoVectors() 884 E = cast<FixedVectorType>(ConstMask->getType())->getNumElements(); in maskIsAllZeroOrUndef() 911 E = cast<FixedVectorType>(ConstMask->getType())->getNumElements(); in maskIsAllOneOrUndef() 924 assert(isa<FixedVectorType>(Mask->getType()) && in possiblyDemandedEltsInMask() 931 cast<FixedVectorType>(Mask->getType())->getNumElements(); in possiblyDemandedEltsInMask()
|