/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DerivedTypes.h | 454 static VectorType *getInteger(VectorType *VTy) { in getInteger() argument 455 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger() 457 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() 458 return VectorType::get(EltTy, VTy->getElementCount()); in getInteger() 463 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType() argument 464 assert(VTy->isIntOrIntVectorTy() && "VTy expected to be a vector of ints."); in getExtendedElementVectorType() 465 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType() 466 return VectorType::get(EltTy->getExtendedType(), VTy->getElementCount()); in getExtendedElementVectorType() 472 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType() argument 474 if (VTy->getElementType()->isFloatingPointTy()) { in getTruncatedElementVectorType() [all …]
|
H A D | GlobalObject.h | 43 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, 46 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace) { in GlobalValue() argument
|
H A D | GetElementPtrTypeIterator.h | 116 else if (auto *VTy = dyn_cast<VectorType>(Ty)) in getStructTypeOrNull() 117 CurTy = VTy; in getStructTypeOrNull() 82 else if (auto *VTy = dyn_cast<VectorType>(Ty)) global() variable
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | InterleavedLoadCombinePass.cpp | 638 VectorInfo(const VectorInfo &c) : VTy(c.VTy) { in VectorInfo() 676 FixedVectorType *const VTy; member 678 VectorInfo(FixedVectorType *VTy) : VTy(VTy) { in VectorInfo() 679 EI = new ElementInfo[VTy->getNumElements()]; in VectorInfo() 686 unsigned getDimension() const { return VTy->getNumElements(); } in getDimension() 696 unsigned Size = DL.getTypeAllocSize(VTy->getElementType()); in isInterleaved() 739 FixedVectorType *VTy = dyn_cast<FixedVectorType>(Op->getType()); in computeFromBCI() local 740 if (!VTy) in computeFromBCI() 744 if (Result.VTy->getNumElements() % VTy->getNumElements()) in computeFromBCI() 747 unsigned Factor = Result.VTy->getNumElements() / VTy->getNumElements(); in computeFromBCI() [all …]
|
H A D | ValueTypes.cpp | 155 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits() local 156 return VTy->getPrimitiveSizeInBits(); in getExtendedSizeInBits() 261 VectorType *VTy = cast<VectorType>(Ty); in getVT() local 263 getVT(VTy->getElementType(), /*HandleUnknown=*/ false), in getVT() 264 VTy->getElementCount()); in getVT() 284 VectorType *VTy = cast<VectorType>(Ty); in getEVT() local 286 getEVT(VTy->getElementType(), /*HandleUnknown=*/ false), in getEVT() 287 VTy->getElementCount()); in getEVT()
|
H A D | LowLevelTypeUtils.cpp | 21 if (auto VTy = dyn_cast<VectorType>(&Ty)) { in getLLTForType() local 22 auto EC = VTy->getElementCount(); in getLLTForType() 23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); in getLLTForType()
|
H A D | ExpandLargeDivRem.cpp | 59 VectorType *VTy = cast<FixedVectorType>(BO->getType()); in scalarize() local 63 unsigned NumElements = VTy->getElementCount().getFixedValue(); in scalarize() 64 Value *Result = PoisonValue::get(VTy); in scalarize()
|
H A D | ReplaceWithVeclib.cpp | 105 auto *VTy = dyn_cast<VectorType>(II->getType()); in replaceWithCallToVeclib() local 106 ElementCount EC(VTy ? VTy->getElementCount() : ElementCount::getFixed(0)); in replaceWithCallToVeclib()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 151 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in isNotOneValue() local 152 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in isNotOneValue() 196 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in isNotMinSignedValue() local 197 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in isNotMinSignedValue() 218 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in isFiniteNonZeroFP() local 219 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in isFiniteNonZeroFP() 239 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in isNormalFP() local 240 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in isNormalFP() 260 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in hasExactInverseFP() local 261 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { in hasExactInverseFP() [all …]
|
H A D | Function.cpp | 1029 } else if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in getMangledTypeStr() local 1030 ElementCount EC = VTy->getElementCount(); in getMangledTypeStr() 1034 getMangledTypeStr(VTy->getElementType(), HasUnnamedType); in getMangledTypeStr() 1430 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local 1431 return VectorType::getExtendedElementVectorType(VTy); in DecodeFixedType() 1437 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local 1438 return VectorType::getTruncatedElementVectorType(VTy); in DecodeFixedType() 1447 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType() local 1448 assert(VTy && "Expected an argument of Vector Type"); in DecodeFixedType() 1450 return VectorType::getSubdividedVectorType(VTy, SubDivs); in DecodeFixedType() [all …]
|
H A D | ConstantFold.cpp | 472 auto *VTy = VectorType::get(EltTy, MaskEltCount); in ConstantFoldShuffleVectorInstruction() local 473 return ConstantAggregateZero::get(VTy); in ConstantFoldShuffleVectorInstruction() 583 } else if (auto *VTy = dyn_cast<FixedVectorType>(C->getType())) { in ConstantFoldUnaryInstruction() local 585 Type *Ty = IntegerType::get(VTy->getContext(), 32); in ConstantFoldUnaryInstruction() 589 return ConstantVector::getSplat(VTy->getElementCount(), Elt); in ConstantFoldUnaryInstruction() 593 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in ConstantFoldUnaryInstruction() 895 } else if (auto *VTy = dyn_cast<VectorType>(C1->getType())) { in ConstantFoldBinaryInstruction() local 899 return PoisonValue::get(VTy); in ConstantFoldBinaryInstruction() 907 return ConstantVector::getSplat(VTy->getElementCount(), Res); in ConstantFoldBinaryInstruction() 911 if (auto *FVTy = dyn_cast<FixedVectorType>(VTy)) { in ConstantFoldBinaryInstruction() [all …]
|
H A D | Type.cpp | 190 const VectorType *VTy = cast<VectorType>(this); in getPrimitiveSizeInBits() local 191 ElementCount EC = VTy->getElementCount(); in getPrimitiveSizeInBits() 192 TypeSize ETS = VTy->getElementType()->getPrimitiveSizeInBits(); in getPrimitiveSizeInBits() 207 if (auto *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth() local 208 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth() 224 if (auto *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType() local 225 return VTy->getElementType()->isSized(Visited); in isSizedDerivedType()
|
H A D | Value.cpp | 56 HasMetadata(false), VTy(checkType(ty)), UseList(nullptr) { in Value() 66 assert((VTy->isFirstClassType() || VTy->isVoidTy() || VTy->isStructTy()) && in Value() 70 assert((VTy->isFirstClassType() || VTy->isVoidTy()) && in Value() 98 dbgs() << "While deleting: " << *VTy << " %" << getName() << "\n"; in ~Value() 1075 LLVMContext &Value::getContext() const { return VTy->getContext(); } in getContext()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 295 Type *pickVectorType(VectorType *VTy = nullptr) { in pickVectorType() 303 if (VTy) in pickVectorType() 304 return VectorType::get(Ty, VTy->getElementCount()); in pickVectorType() 544 Type *VTy = V->getType(); in Act() local 548 if (VTy->isVectorTy()) in Act() 549 DestTy = pickVectorType(cast<VectorType>(VTy)); in Act() 552 if (VTy == DestTy) return; in Act() 555 if (VTy->isPointerTy()) { in Act() 562 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act() 572 if (VTy->isIntOrIntVectorTy() && DestTy->isIntOrIntVectorTy()) { in Act() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 165 Type *VTy = I->getType(); in SimplifyDemandedUseBits() local 167 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits() 221 return Constant::getIntegerValue(VTy, Known.One); in SimplifyDemandedUseBits() 252 return Constant::getIntegerValue(VTy, Known.One); in SimplifyDemandedUseBits() 298 return Constant::getIntegerValue(VTy, Known.One); in SimplifyDemandedUseBits() 325 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits() 338 I->setOperand(1, ConstantInt::getAllOnesValue(VTy)); in SimplifyDemandedUseBits() 358 Constant *AndC = ConstantInt::get(VTy, NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits() 362 Constant *XorC = ConstantInt::get(VTy, NewMask & XorRHS->getValue()); in SimplifyDemandedUseBits() 427 if (C->ult(VTy->getScalarSizeInBits()) && in SimplifyDemandedUseBits() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULateCodeGenPrepare.cpp | 124 FixedVectorType *VTy = dyn_cast<FixedVectorType>(ITy); in shouldReplace() local 125 if (!VTy) in shouldReplace() 130 Type *EltTy = VTy->getElementType(); in shouldReplace() 195 FixedVectorType *VTy = cast<FixedVectorType>(OriginalType); in calculateConvertType() local 197 TypeSize OriginalSize = DL->getTypeSizeInBits(VTy); in calculateConvertType() 211 FixedVectorType *VTy = cast<FixedVectorType>(V->getType()); in convertToOptType() local 214 TypeSize OriginalSize = DL->getTypeSizeInBits(VTy); in convertToOptType() 225 uint64_t ExpandedVecElementCount = NewSize / VTy->getScalarSizeInBits(); in convertToOptType() 228 uint64_t OriginalElementCount = VTy->getElementCount().getFixedValue(); in convertToOptType()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | VFABIDemangling.cpp |
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyTargetTransformInfo.cpp | 63 if (auto *VTy = dyn_cast<VectorType>(Ty)) { in getArithmeticInstrCost() local 73 cast<FixedVectorType>(VTy)->getNumElements() * in getArithmeticInstrCost() 75 getArithmeticInstrCost(Opcode, VTy->getElementType(), CostKind) + in getArithmeticInstrCost()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | BasicTTIImpl.h | 91 InstructionCost getBroadcastShuffleOverhead(FixedVectorType *VTy, in getBroadcastShuffleOverhead() argument 96 Cost += thisT()->getVectorInstrCost(Instruction::ExtractElement, VTy, in getBroadcastShuffleOverhead() 99 for (int i = 0, e = VTy->getNumElements(); i < e; ++i) { in getBroadcastShuffleOverhead() 100 Cost += thisT()->getVectorInstrCost(Instruction::InsertElement, VTy, in getBroadcastShuffleOverhead() 108 InstructionCost getPermuteShuffleOverhead(FixedVectorType *VTy, in getPermuteShuffleOverhead() argument 118 for (int i = 0, e = VTy->getNumElements(); i < e; ++i) { in getPermuteShuffleOverhead() 119 Cost += thisT()->getVectorInstrCost(Instruction::InsertElement, VTy, in getPermuteShuffleOverhead() 121 Cost += thisT()->getVectorInstrCost(Instruction::ExtractElement, VTy, in getPermuteShuffleOverhead() 129 InstructionCost getExtractSubvectorOverhead(VectorType *VTy, in getExtractSubvectorOverhead() argument 133 assert(VTy && SubVTy && in getExtractSubvectorOverhead() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVCodeGenPrepare.cpp | 187 auto *VTy = cast<VectorType>(II.getType()); in expandVPStrideLoad() local 190 Type *STy = VTy->getElementType(); in expandVPStrideLoad() 192 Value *Res = Builder.CreateIntrinsic(Intrinsic::experimental_vp_splat, {VTy}, in expandVPStrideLoad()
|
H A D | RISCVTargetTransformInfo.cpp | 635 auto *VTy = cast<VectorType>(VecTy); in getInterleavedMemoryOpCost() local 636 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(VTy); in getInterleavedMemoryOpCost() 640 VectorType::get(VTy->getElementType(), in getInterleavedMemoryOpCost() 641 VTy->getElementCount().divideCoefficientBy(Factor)); in getInterleavedMemoryOpCost() 643 if (VTy->getElementCount().isKnownMultipleOf(Factor) && in getInterleavedMemoryOpCost() 650 auto *LegalVTy = VectorType::get(VTy->getElementType(), in getInterleavedMemoryOpCost() 730 auto &VTy = *cast<VectorType>(DataTy); in getGatherScatterOpCost() local 732 getMemoryOpCost(Opcode, VTy.getElementType(), Alignment, 0, CostKind, in getGatherScatterOpCost() 734 unsigned NumLoads = getEstimatedVLFor(&VTy); in getGatherScatterOpCost() 753 auto &VTy = *cast<VectorType>(DataTy); in getStridedMemoryOpCost() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 419 auto *VTy = cast<FixedVectorType>(Ty); in getNumVectorRegs() local 420 unsigned WideBits = getScalarSizeInBits(Ty) * VTy->getNumElements(); in getNumVectorRegs() 531 auto *VTy = cast<FixedVectorType>(Ty); in getArithmeticInstrCost() local 532 unsigned VF = VTy->getNumElements(); in getArithmeticInstrCost() 547 getScalarizationOverhead(VTy, Args, Tys, CostKind); in getArithmeticInstrCost() 574 getScalarizationOverhead(VTy, Args, Tys, CostKind); in getArithmeticInstrCost() 593 getScalarizationOverhead(VTy, Args, Tys, CostKind); in getArithmeticInstrCost() 1297 auto *VTy = cast<FixedVectorType>(ParamTys.front()); in getVectorIntrinsicInstrCost() local 1298 unsigned ScalarSize = VTy->getScalarSizeInBits(); in getVectorIntrinsicInstrCost() 1303 unsigned VectorRegsNeeded = getNumVectorRegs(VTy); in getVectorIntrinsicInstrCost()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | SROA.cpp | 2096 static bool checkVectorTypeForPromotion(Partition &P, VectorType *VTy, in checkVectorTypeForPromotion() argument 2099 DL.getTypeSizeInBits(VTy->getElementType()).getFixedValue(); in checkVectorTypeForPromotion() 2105 assert((DL.getTypeSizeInBits(VTy).getFixedValue() % 8) == 0 && in checkVectorTypeForPromotion() 2110 if (!isVectorPromotionViableForSlice(P, S, VTy, ElementSize, DL)) in checkVectorTypeForPromotion() 2114 if (!isVectorPromotionViableForSlice(P, *S, VTy, ElementSize, DL)) in checkVectorTypeForPromotion() 2148 for (VectorType *&VTy : CandidateTys) { in checkVectorTypesForPromotion() 2149 if (!VTy->getElementType()->isIntegerTy()) in checkVectorTypesForPromotion() 2150 VTy = cast<VectorType>(VTy->getWithNewType(IntegerType::getIntNTy( in checkVectorTypesForPromotion() 2151 VTy->getContext(), VTy->getScalarSizeInBits()))); in checkVectorTypesForPromotion() 2187 for (VectorType *VTy : CandidateTys) { in checkVectorTypesForPromotion() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGBuiltin.cpp | 6433 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); in EmitNeonRShiftImm() local 6436 int EltSize = VTy->getScalarSizeInBits(); in EmitNeonRShiftImm() 6445 return llvm::ConstantAggregateZero::get(VTy); in EmitNeonRShiftImm() 6450 Shift = ConstantInt::get(VTy->getElementType(), ShiftAmt); in EmitNeonRShiftImm() 7679 llvm::FixedVectorType *VTy = in EmitCommonNeonBuiltinExpr() local 7681 llvm::Type *Ty = VTy; in EmitCommonNeonBuiltinExpr() 7699 auto NumElements = VTy->getElementCount(); in EmitCommonNeonBuiltinExpr() 7705 Ops[0] = Builder.CreateBitCast(Ops[0], VTy); in EmitCommonNeonBuiltinExpr() 7711 if (VTy->getElementType()->isFloatingPointTy() && in EmitCommonNeonBuiltinExpr() 7717 if (VTy->getElementType()->isFloatingPointTy()) in EmitCommonNeonBuiltinExpr() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.h | 268 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment); 269 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter() argument 270 return forceScalarizeMaskedGather(VTy, Alignment); in forceScalarizeMaskedScatter()
|