| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | DerivedTypes.h | 481 static VectorType *getInteger(VectorType *VTy) { in getInteger() argument 482 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger() 484 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() 485 return VectorType::get(EltTy, VTy->getElementCount()); in getInteger() 490 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType() argument 491 assert(VTy->isIntOrIntVectorTy() && "VTy expected to be a vector of ints."); in getExtendedElementVectorType() 492 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType() 493 return VectorType::get(EltTy->getExtendedType(), VTy->getElementCount()); in getExtendedElementVectorType() 499 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType() argument 501 if (VTy->getElementType()->isFloatingPointTy()) { in getTruncatedElementVectorType() [all …]
|
| H A D | GlobalObject.h | 44 GlobalObject(Type *Ty, ValueTy VTy, AllocInfo AllocInfo, LinkageTypes Linkage, 46 : GlobalValue(Ty, VTy, AllocInfo, 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/include/llvm/SandboxIR/ |
| H A D | Type.h | 344 LLVM_ABI static VectorType *getInteger(VectorType *VTy); 345 LLVM_ABI static VectorType *getExtendedElementVectorType(VectorType *VTy); 346 LLVM_ABI static VectorType *getTruncatedElementVectorType(VectorType *VTy); 347 LLVM_ABI static VectorType *getSubdividedVectorType(VectorType *VTy, 349 LLVM_ABI static VectorType *getHalfElementsVectorType(VectorType *VTy); 350 LLVM_ABI static VectorType *getDoubleElementsVectorType(VectorType *VTy); 366 static FixedVectorType *getInteger(FixedVectorType *VTy) { in getInteger() argument 367 return cast<FixedVectorType>(VectorType::getInteger(VTy)); in getInteger() 370 static FixedVectorType *getExtendedElementVectorType(FixedVectorType *VTy) { in getExtendedElementVectorType() argument 371 return cast<FixedVectorType>(VectorType::getExtendedElementVectorType(VTy)); in getExtendedElementVectorType() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Type.cpp | 79 VectorType *VectorType::getInteger(VectorType *VTy) { in getInteger() argument 80 return cast<VectorType>(VTy->getContext().getType( in getInteger() 81 llvm::VectorType::getInteger(cast<llvm::VectorType>(VTy->LLVMTy)))); in getInteger() 83 VectorType *VectorType::getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType() argument 85 VTy->getContext().getType(llvm::VectorType::getExtendedElementVectorType( in getExtendedElementVectorType() 86 cast<llvm::VectorType>(VTy->LLVMTy)))); in getExtendedElementVectorType() 88 VectorType *VectorType::getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType() argument 90 VTy->getContext().getType(llvm::VectorType::getTruncatedElementVectorType( in getTruncatedElementVectorType() 91 cast<llvm::VectorType>(VTy->LLVMTy)))); in getTruncatedElementVectorType() 93 VectorType *VectorType::getSubdividedVectorType(VectorType *VTy, in getSubdividedVectorType() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInterleavedAccess.cpp | 27 VectorType *VTy, unsigned Factor, Align Alignment, unsigned AddrSpace, in isLegalInterleavedAccessType() argument 29 EVT VT = getValueType(DL, VTy); in isLegalInterleavedAccessType() 35 !allowsMemoryAccessForAlignment(VTy->getContext(), DL, VT, AddrSpace, in isLegalInterleavedAccessType() 41 if (auto *FVTy = dyn_cast<FixedVectorType>(VTy)) { in isLegalInterleavedAccessType() 92 auto *VTy = cast<FixedVectorType>(Shuffles[0]->getType()); in lowerInterleavedLoad() local 93 if (!isLegalInterleavedAccessType(VTy, Factor, LI->getAlign(), in lowerInterleavedLoad() 104 unsigned ScalarSizeInBytes = DL.getTypeStoreSize(VTy->getElementType()); in lowerInterleavedLoad() 108 Value *Mask = Builder.getAllOnesMask(VTy->getElementCount()); in lowerInterleavedLoad() 109 Value *VL = Builder.getInt32(VTy->getNumElements()); in lowerInterleavedLoad() 113 {VTy, BasePtr->getType(), Stride->getType()}, in lowerInterleavedLoad() [all …]
|
| H A D | RISCVCodeGenPrepare.cpp | 263 auto *VTy = cast<VectorType>(II.getType()); in expandVPStrideLoad() local 266 Type *STy = VTy->getElementType(); in expandVPStrideLoad() 268 Value *Res = Builder.CreateIntrinsic(Intrinsic::experimental_vp_splat, {VTy}, in expandVPStrideLoad()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | InterleavedLoadCombinePass.cpp | 637 VectorInfo(const VectorInfo &c) : VTy(c.VTy) { in VectorInfo() 675 FixedVectorType *const VTy; member 677 VectorInfo(FixedVectorType *VTy) : VTy(VTy) { in VectorInfo() 678 EI = new ElementInfo[VTy->getNumElements()]; in VectorInfo() 685 unsigned getDimension() const { return VTy->getNumElements(); } in getDimension() 695 unsigned Size = DL.getTypeAllocSize(VTy->getElementType()); in isInterleaved() 738 FixedVectorType *VTy = dyn_cast<FixedVectorType>(Op->getType()); in computeFromBCI() local 739 if (!VTy) in computeFromBCI() 743 if (Result.VTy->getNumElements() % VTy->getNumElements()) in computeFromBCI() 746 unsigned Factor = Result.VTy->getNumElements() / VTy->getNumElements(); in computeFromBCI() [all …]
|
| H A D | ValueTypes.cpp | 156 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits() local 157 return VTy->getPrimitiveSizeInBits(); in getExtendedSizeInBits() 286 VectorType *VTy = cast<VectorType>(Ty); in getVT() local 288 getVT(VTy->getElementType(), /*HandleUnknown=*/ false), in getVT() 289 VTy->getElementCount()); in getVT() 309 VectorType *VTy = cast<VectorType>(Ty); in getEVT() local 311 getEVT(VTy->getElementType(), /*HandleUnknown=*/ false), in getEVT() 312 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 | 58 VectorType *VTy = cast<FixedVectorType>(BO->getType()); in scalarize() local 62 unsigned NumElements = VTy->getElementCount().getFixedValue(); in scalarize() 63 Value *Result = PoisonValue::get(VTy); in scalarize()
|
| H A D | ReplaceWithVeclib.cpp | 108 auto *VTy = dyn_cast<VectorType>(RetTy); in replaceWithCallToVeclib() local 109 ElementCount EC(VTy ? VTy->getElementCount() : ElementCount::getFixed(0)); in replaceWithCallToVeclib()
|
| H A D | ComplexDeinterleavingPass.cpp | 997 VectorType *VTy = cast<VectorType>(V->getType()); in identifyDotProduct() local 998 Type *ExpectedOperandTy = VectorType::getSubdividedVectorType(VTy, 2); in identifyDotProduct() 1008 if (Phi->getType() != VTy && RealUser->getType() != VTy) in identifyDotProduct() 1088 auto *VTy = cast<VectorType>(Real->getType()); in identifyNode() local 1089 auto *NewVTy = VectorType::getDoubleElementsVectorType(VTy); in identifyNode() 2011 VectorType *VTy; in identifySplat() local 2018 VTy = cast<VectorType>(Const->getType()); in identifySplat() 2021 VTy = Shuf->getType(); in identifySplat() 2030 if (!VTy->isScalableTy() && VTy->getElementCount().getKnownMinValue() == 1) in identifySplat() 2209 auto *VTy = cast<VectorType>(Node->Real->getType()); in replaceNode() local [all …]
|
| /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 | Intrinsics.cpp | 97 } else if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in getMangledTypeStr() local 98 ElementCount EC = VTy->getElementCount(); in getMangledTypeStr() 102 getMangledTypeStr(VTy->getElementType(), HasUnnamedType); in getMangledTypeStr() 545 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local 546 return VectorType::getExtendedElementVectorType(VTy); in DecodeFixedType() 552 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local 553 return VectorType::getTruncatedElementVectorType(VTy); in DecodeFixedType() 562 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType() local 563 assert(VTy && "Expected an argument of Vector Type"); in DecodeFixedType() 565 return VectorType::getSubdividedVectorType(VTy, SubDivs); in DecodeFixedType() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 287 Type *pickVectorType(VectorType *VTy = nullptr) { in pickVectorType() 291 if (VTy) in pickVectorType() 292 return VectorType::get(Ty, VTy->getElementCount()); in pickVectorType() 531 Type *VTy = V->getType(); in Act() local 535 if (VTy->isVectorTy()) in Act() 536 DestTy = pickVectorType(cast<VectorType>(VTy)); in Act() 539 if (VTy == DestTy) return; in Act() 542 if (VTy->isPointerTy()) { in Act() 549 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act() 559 if (VTy->isIntOrIntVectorTy() && DestTy->isIntOrIntVectorTy()) { in Act() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 172 Type *VTy = I->getType(); in SimplifyDemandedUseBits() local 174 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits() 228 return Constant::getIntegerValue(VTy, Known.One); in SimplifyDemandedUseBits() 259 return Constant::getIntegerValue(VTy, Known.One); in SimplifyDemandedUseBits() 305 return Constant::getIntegerValue(VTy, Known.One); in SimplifyDemandedUseBits() 332 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits() 345 I->setOperand(1, ConstantInt::getAllOnesValue(VTy)); in SimplifyDemandedUseBits() 365 Constant *AndC = ConstantInt::get(VTy, NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits() 369 Constant *XorC = ConstantInt::get(VTy, NewMask & XorRHS->getValue()); in SimplifyDemandedUseBits() 433 if (C->ult(VTy->getScalarSizeInBits()) && in SimplifyDemandedUseBits() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/ |
| H A D | ARM.cpp | 514 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); in EmitNeonRShiftImm() local 517 int EltSize = VTy->getScalarSizeInBits(); in EmitNeonRShiftImm() 526 return llvm::ConstantAggregateZero::get(VTy); in EmitNeonRShiftImm() 531 Shift = ConstantInt::get(VTy->getElementType(), ShiftAmt); in EmitNeonRShiftImm() 1761 llvm::FixedVectorType *VTy = in EmitCommonNeonBuiltinExpr() local 1763 llvm::Type *Ty = VTy; in EmitCommonNeonBuiltinExpr() 1781 auto NumElements = VTy->getElementCount(); in EmitCommonNeonBuiltinExpr() 1787 Ops[0] = Builder.CreateBitCast(Ops[0], VTy); in EmitCommonNeonBuiltinExpr() 1793 if (VTy->getElementType()->isFloatingPointTy() && in EmitCommonNeonBuiltinExpr() 1799 if (VTy->getElementType()->isFloatingPointTy()) in EmitCommonNeonBuiltinExpr() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | VFABIDemangling.cpp | |
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULateCodeGenPrepare.cpp | 109 FixedVectorType *VTy = dyn_cast<FixedVectorType>(ITy); in shouldReplace() local 110 if (!VTy) in shouldReplace() 115 Type *EltTy = VTy->getElementType(); in shouldReplace() 201 FixedVectorType *VTy = cast<FixedVectorType>(OriginalType); in calculateConvertType() local 203 TypeSize OriginalSize = DL.getTypeSizeInBits(VTy); in calculateConvertType() 217 FixedVectorType *VTy = cast<FixedVectorType>(V->getType()); in convertToOptType() local 220 TypeSize OriginalSize = DL.getTypeSizeInBits(VTy); in convertToOptType() 231 uint64_t ExpandedVecElementCount = NewSize / VTy->getScalarSizeInBits(); in convertToOptType() 234 uint64_t OriginalElementCount = VTy->getElementCount().getFixedValue(); in convertToOptType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/ |
| H A D | SeedCollector.cpp | 82 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getKey() local 83 Ty = VTy->getElementType(); in getKey() 152 if (auto *VTy = dyn_cast<FixedVectorType>(Ty)) in isValidMemSeed() local 153 return VectorType::isValidElementType(VTy->getElementType()); in isValidMemSeed()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenTypes.cpp | 525 auto *VTy = llvm::VectorType::get(EltTy, Info.EC); in ConvertType() local 530 return VTy; in ConvertType() 532 return llvm::StructType::get(VTy, VTy); in ConvertType() 534 return llvm::StructType::get(VTy, VTy, VTy); in ConvertType() 536 return llvm::StructType::get(VTy, VTy, VTy, VTy); in ConvertType()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 92 getBroadcastShuffleOverhead(FixedVectorType *VTy, in getBroadcastShuffleOverhead() argument 97 Cost += thisT()->getVectorInstrCost(Instruction::ExtractElement, VTy, in getBroadcastShuffleOverhead() 100 for (int i = 0, e = VTy->getNumElements(); i < e; ++i) { in getBroadcastShuffleOverhead() 101 Cost += thisT()->getVectorInstrCost(Instruction::InsertElement, VTy, in getBroadcastShuffleOverhead() 110 getPermuteShuffleOverhead(FixedVectorType *VTy, in getPermuteShuffleOverhead() argument 120 for (int i = 0, e = VTy->getNumElements(); i < e; ++i) { in getPermuteShuffleOverhead() 121 Cost += thisT()->getVectorInstrCost(Instruction::InsertElement, VTy, in getPermuteShuffleOverhead() 123 Cost += thisT()->getVectorInstrCost(Instruction::ExtractElement, VTy, in getPermuteShuffleOverhead() 131 InstructionCost getExtractSubvectorOverhead(VectorType *VTy, in getExtractSubvectorOverhead() argument 135 assert(VTy && SubVTy && in getExtractSubvectorOverhead() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaSPIRV.cpp | 193 auto *VTy = ArgTyA->getAs<VectorType>(); in CheckSPIRVBuiltinFunctionCall() local 194 if (VTy == nullptr) { in CheckSPIRVBuiltinFunctionCall() 202 QualType RetTy = VTy->getElementType(); in CheckSPIRVBuiltinFunctionCall()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 2051 auto *VTy = VectorType::getWithSizeAndScalar(cast<VectorType>(Ty), InTy); in convertValue() local 2052 return IRB.CreateBitCast(IRB.CreateInsertVector(VTy, in convertValue() 2053 PoisonValue::get(VTy), In, in convertValue() 2061 auto *VTy = VectorType::getWithSizeAndScalar(cast<VectorType>(InTy), Ty); in convertValue() local 2062 return IRB.CreateExtractVector(Ty, IRB.CreateBitCast(In, VTy), in convertValue() 2189 static bool checkVectorTypeForPromotion(Partition &P, VectorType *VTy, in checkVectorTypeForPromotion() argument 2192 DL.getTypeSizeInBits(VTy->getElementType()).getFixedValue(); in checkVectorTypeForPromotion() 2198 assert((DL.getTypeSizeInBits(VTy).getFixedValue() % 8) == 0 && in checkVectorTypeForPromotion() 2203 if (!isVectorPromotionViableForSlice(P, S, VTy, ElementSize, DL, VScale)) in checkVectorTypeForPromotion() 2207 if (!isVectorPromotionViableForSlice(P, *S, VTy, ElementSize, DL, VScale)) in checkVectorTypeForPromotion() [all …]
|