| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInterleavedAccess.cpp | 41 if (auto *FVTy = dyn_cast<FixedVectorType>(VTy)) { in isLegalInterleavedAccessType() local 46 if (FVTy->getNumElements() < 2) in isLegalInterleavedAccessType() 258 if (auto *FVTy = dyn_cast<FixedVectorType>(ResVTy)) { in lowerDeinterleaveIntrinsicToLoad() local 259 Value *VL = ConstantInt::get(XLenTy, FVTy->getNumElements()); in lowerDeinterleaveIntrinsicToLoad() 260 Value *Mask = Builder.getAllOnesMask(FVTy->getElementCount()); in lowerDeinterleaveIntrinsicToLoad() 328 if (auto *FVTy = dyn_cast<FixedVectorType>(InVTy)) { in lowerInterleaveIntrinsicToStore() local 333 Value *VL = ConstantInt::get(XLenTy, FVTy->getNumElements()); in lowerInterleaveIntrinsicToStore() 334 Value *Mask = Builder.getAllOnesMask(FVTy->getElementCount()); in lowerInterleaveIntrinsicToStore() 456 if (auto *FVTy = dyn_cast<FixedVectorType>(VTy)) { in lowerInterleavedVPLoad() local 458 {FVTy, PtrTy, XLenTy}, in lowerInterleavedVPLoad() [all …]
|
| H A D | RISCVTargetTransformInfo.cpp | 1024 auto *FVTy = cast<FixedVectorType>(VecTy); in getInterleavedMemoryOpCost() local 1027 unsigned VF = FVTy->getNumElements() / Factor; in getInterleavedMemoryOpCost() 1038 FixedVectorType::get(FVTy->getElementType(), VF * Factor); in getInterleavedMemoryOpCost() 1069 getShuffleCost(TTI::ShuffleKind::SK_PermuteSingleSrc, FVTy, FVTy, Mask, in getInterleavedMemoryOpCost()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVUtils.h | 419 auto *FVTy = dyn_cast<FixedVectorType>(Ty); in isVector1() local 420 return FVTy && FVTy->getNumElements() == 1; in isVector1() 427 auto *FVTy = dyn_cast<FixedVectorType>(Ty); in normalizeType() local 428 if (!FVTy || FVTy->getNumElements() != 1) in normalizeType() 433 return normalizeType(FVTy->getElementType()); in normalizeType()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 583 if (auto *FVTy = dyn_cast<FixedVectorType>(VTy)) { in ConstantFoldUnaryInstruction() local 585 Type *Ty = IntegerType::get(FVTy->getContext(), 32); in ConstantFoldUnaryInstruction() 587 for (unsigned i = 0, e = FVTy->getNumElements(); i != e; ++i) { in ConstantFoldUnaryInstruction() 892 if (auto *FVTy = dyn_cast<FixedVectorType>(VTy)) { in ConstantFoldBinaryInstruction() local 895 Type *Ty = IntegerType::get(FVTy->getContext(), 32); in ConstantFoldBinaryInstruction() 896 for (unsigned i = 0, e = FVTy->getNumElements(); i != e; ++i) { in ConstantFoldBinaryInstruction()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Type.h | 362 static FixedVectorType *get(Type *ElementType, const FixedVectorType *FVTy) { in get() argument 363 return get(ElementType, FVTy->getNumElements()); in get()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 3679 StringRef Name, Intrinsic::ID IntrinsicID, FixedVectorType *FVTy, in ConstantFoldFixedVectorCall() argument 3682 SmallVector<Constant *, 4> Result(FVTy->getNumElements()); in ConstantFoldFixedVectorCall() 3684 Type *Ty = FVTy->getElementType(); in ConstantFoldFixedVectorCall() 3692 Constant *VecData = ConstantFoldLoadFromConstPtr(SrcPtr, FVTy, DL); in ConstantFoldFixedVectorCall() 3695 for (unsigned I = 0, E = FVTy->getNumElements(); I != E; ++I) { in ConstantFoldFixedVectorCall() 3721 if (NewElements.size() != FVTy->getNumElements()) in ConstantFoldFixedVectorCall() 3730 unsigned Lanes = FVTy->getNumElements(); in ConstantFoldFixedVectorCall() 3748 unsigned Lanes = FVTy->getNumElements(); in ConstantFoldFixedVectorCall() 3769 unsigned NumElements = FVTy->getNumElements(); in ConstantFoldFixedVectorCall() 3833 for (unsigned I = 0, E = FVTy->getNumElements(); I != E; ++I) { in ConstantFoldFixedVectorCall() [all …]
|
| H A D | ValueTracking.cpp | 143 auto *FVTy = dyn_cast<FixedVectorType>(V->getType()); in computeKnownBits() local 145 FVTy ? APInt::getAllOnes(FVTy->getNumElements()) : APInt(1, 1); in computeKnownBits() 310 auto *FVTy = dyn_cast<FixedVectorType>(V1->getType()); in isKnownNonEqual() local 312 FVTy ? APInt::getAllOnes(FVTy->getNumElements()) : APInt(1, 1); in isKnownNonEqual() 328 auto *FVTy = dyn_cast<FixedVectorType>(V->getType()); in ComputeNumSignBits() local 330 FVTy ? APInt::getAllOnes(FVTy->getNumElements()) : APInt(1, 1); in ComputeNumSignBits() 1080 auto *FVTy = dyn_cast<FixedVectorType>(I->getType()); in analyzeKnownBitsFromAndXorOr() local 1082 FVTy ? APInt::getAllOnes(FVTy->getNumElements()) : APInt(1, 1); in analyzeKnownBitsFromAndXorOr() 2211 if (auto *FVTy = dyn_cast<FixedVectorType>(Ty)) { in computeKnownBits() local 2213 FVTy->getNumElements() == DemandedElts.getBitWidth() && in computeKnownBits() [all …]
|
| H A D | VectorUtils.cpp | 316 if (auto *FVTy = dyn_cast<FixedVectorType>(VTy)) { in findScalarElement() local 317 unsigned Width = FVTy->getNumElements(); in findScalarElement() 319 return PoisonValue::get(FVTy->getElementType()); in findScalarElement()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | DerivedTypes.h | 600 static FixedVectorType *get(Type *ElementType, const FixedVectorType *FVTy) { in get() argument 601 return get(ElementType, FVTy->getNumElements()); in get()
|
| H A D | PatternMatch.h | 367 auto *FVTy = dyn_cast<FixedVectorType>(VTy); in match_impl() local 368 if (!FVTy) in match_impl() 372 unsigned NumElts = FVTy->getNumElements(); in match_impl()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 320 auto FVTy = dyn_cast<FixedVectorType>(Ty); in areTypesABICompatible() local 321 return FVTy && in areTypesABICompatible() 322 FVTy->getScalarSizeInBits() * FVTy->getNumElements() > 128; in areTypesABICompatible()
|
| H A D | AArch64ISelLowering.cpp | 17179 auto *FVTy = cast<FixedVectorType>(VTy); in lowerInterleavedLoad() local 17183 Type *EltTy = FVTy->getElementType(); in lowerInterleavedLoad() 17185 FVTy = in lowerInterleavedLoad() 17186 FixedVectorType::get(DL.getIntPtrType(EltTy), FVTy->getNumElements()); in lowerInterleavedLoad() 17190 FVTy = FixedVectorType::get(FVTy->getElementType(), in lowerInterleavedLoad() 17191 FVTy->getNumElements() / NumLoads); in lowerInterleavedLoad() 17194 UseScalable ? cast<VectorType>(getSVEContainerIRType(FVTy)) : FVTy; in lowerInterleavedLoad() 17216 getSVEPredPatternFromNumElements(FVTy->getNumElements()); in lowerInterleavedLoad() 17219 Subtarget->getMinSVEVectorSizeInBits() == DL.getTypeSizeInBits(FVTy)) in lowerInterleavedLoad() 17234 FVTy->getNumElements() * Factor); in lowerInterleavedLoad() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VectorCombine.cpp | 1008 if (auto *FVTy = dyn_cast<FixedVectorType>(VecTy)) in scalarizeVPIntrinsic() local 1009 Mask.resize(FVTy->getNumElements(), 0); in scalarizeVPIntrinsic()
|