/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DerivedTypes.h | 470 static VectorType *getInteger(VectorType *VTy) { argument 471 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); 473 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); 474 return VectorType::get(EltTy, VTy->getElementCount()); 479 static VectorType *getExtendedElementVectorType(VectorType *VTy) { argument 480 assert(VTy->isIntOrIntVectorTy() && "VTy expected to be a vector of ints."); 481 auto *EltTy = cast<IntegerType>(VTy->getElementType()); 482 return VectorType::get(EltTy->getExtendedType(), VTy->getElementCount()); 488 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { argument 513 getSubdividedVectorType(VectorType *VTy, int NumSubdivs) argument 523 getHalfElementsVectorType(VectorType *VTy) argument 532 getDoubleElementsVectorType(VectorType *VTy) argument 569 getInteger(FixedVectorType *VTy) argument 573 getExtendedElementVectorType(FixedVectorType *VTy) argument 577 getTruncatedElementVectorType(FixedVectorType *VTy) argument 582 getSubdividedVectorType(FixedVectorType *VTy, int NumSubdivs) argument 588 getHalfElementsVectorType(FixedVectorType *VTy) argument 592 getDoubleElementsVectorType(FixedVectorType *VTy) argument 615 getInteger(ScalableVectorType *VTy) argument 620 getExtendedElementVectorType(ScalableVectorType *VTy) argument 626 getTruncatedElementVectorType(ScalableVectorType *VTy) argument 631 getSubdividedVectorType(ScalableVectorType *VTy, int NumSubdivs) argument 638 getHalfElementsVectorType(ScalableVectorType *VTy) argument 643 getDoubleElementsVectorType(ScalableVectorType *VTy) argument [all...] |
H A D | GetElementPtrTypeIterator.h | 81 } else if (auto *VTy = dyn_cast<VectorType>(Ty)) { 82 CurTy = VTy->getElementType(); 83 if (isa<ScalableVectorType>(VTy)) 86 NumElements = VTy->getNumElements();
|
H A D | GlobalIndirectSymbol.h | 30 GlobalIndirectSymbol(Type *Ty, ValueTy VTy, unsigned AddressSpace,
|
H A D | GlobalObject.h | 46 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, argument 49 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace),
|
H A D | DataLayout.h | 687 VectorType *VTy = cast<VectorType>(Ty); local 688 auto EltCnt = VTy->getElementCount(); 690 getTypeSizeInBits(VTy->getElementType()).getFixedSize();
|
H A D | GlobalValue.h | 76 GlobalValue(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, argument 78 : Constant(PointerType::get(Ty, AddressSpace), VTy, Ops, NumOps),
|
H A D | Value.h | 75 Type *VTy; member in class:llvm::Value 244 Type *getType() const { return VTy; } 698 VTy = Ty;
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | LowLevelType.cpp | 21 if (auto VTy = dyn_cast<VectorType>(&Ty)) { 22 auto NumElements = cast<FixedVectorType>(VTy)->getNumElements(); 23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL);
|
H A D | InterleavedLoadCombinePass.cpp | 638 VectorInfo(const VectorInfo &c) : VTy(c.VTy) { 676 FixedVectorType *const VTy; member in struct:__anon3485::VectorInfo 678 VectorInfo(FixedVectorType *VTy) argument 679 : BB(nullptr), PV(nullptr), LIs(), Is(), SVI(nullptr), VTy(VTy) { 680 EI = new ElementInfo[VTy->getNumElements()]; 685 unsigned getDimension() const { return VTy->getNumElements(); } 695 unsigned Size = DL.getTypeAllocSize(VTy->getElementType()); 738 FixedVectorType *VTy [all...] |
H A D | ValueTypes.cpp | 144 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) 145 return VTy->getPrimitiveSizeInBits(); 496 VectorType *VTy = cast<VectorType>(Ty); local 498 getVT(VTy->getElementType(), /*HandleUnknown=*/ false), 499 VTy->getElementCount()); 515 VectorType *VTy = cast<VectorType>(Ty); local 517 getEVT(VTy->getElementType(), /*HandleUnknown=*/ false), 518 VTy->getElementCount());
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyTargetTransformInfo.cpp | 56 if (auto *VTy = dyn_cast<VectorType>(Ty)) { 67 cast<FixedVectorType>(VTy)->getNumElements() * 69 getArithmeticInstrCost(Opcode, VTy->getElementType(), CostKind) +
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | VFABIDemangling.cpp | 285 if (auto *VTy = dyn_cast<VectorType>(Ty)) 286 VecTys.push_back(VTy); 295 [&EC](VectorType *VTy) { return (EC == VTy->getElementCount()); }); 310 if (auto *VTy = dyn_cast<VectorType>(Ty)) 311 return VTy->getElementCount();
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 163 if (auto *VTy = dyn_cast<VectorType>(this->getType())) { 164 unsigned NumElts = VTy->getNumElements(); 213 if (auto *VTy = dyn_cast<VectorType>(this->getType())) { 214 unsigned NumElts = VTy->getNumElements(); 230 auto *VTy = dyn_cast<VectorType>(getType()); 231 if (!VTy) 233 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { 244 auto *VTy = dyn_cast<FixedVectorType>(getType()); 245 if (!VTy) 247 for (unsigned i = 0, e = VTy 397 VectorType *VTy = cast<VectorType>(Ty); local 717 auto *VTy = dyn_cast<FixedVectorType>(Ty); local 1306 Type *VTy = VectorType::get(V->getType(), EC); local [all...] |
H A D | Function.cpp | 675 } else if (VectorType* VTy = dyn_cast<VectorType>(Ty)) { 676 ElementCount EC = VTy->getElementCount(); 679 Result += "v" + utostr(EC.Min) + getMangledTypeStr(VTy->getElementType()); 1054 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) 1055 return VectorType::getExtendedElementVectorType(VTy); 1061 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) 1062 return VectorType::getTruncatedElementVectorType(VTy); 1071 VectorType *VTy = dyn_cast<VectorType>(Ty); local 1072 assert(VTy && "Expected an argument of Vector Type"); 1074 return VectorType::getSubdividedVectorType(VTy, SubDiv 1092 VectorType *VTy = dyn_cast<VectorType>(Ty); local 1106 VectorType *VTy = dyn_cast<VectorType>(Ty); local [all...] |
H A D | Value.cpp | 54 : VTy(checkType(ty)), UseList(nullptr), SubclassID(scid), 63 assert((VTy->isFirstClassType() || VTy->isVoidTy() || VTy->isStructTy()) && 67 assert((VTy->isFirstClassType() || VTy->isVoidTy()) && 91 dbgs() << "While deleting: " << *VTy << " %" << getName() << "\n"; 826 LLVMContext &Value::getContext() const { return VTy->getContext(); }
|
H A D | Type.cpp | 127 const VectorType *VTy = cast<VectorType>(this); local 128 ElementCount EC = VTy->getElementCount(); 129 TypeSize ETS = VTy->getElementType()->getPrimitiveSizeInBits(); 143 if (auto *VTy = dyn_cast<VectorType>(this)) 144 return VTy->getElementType()->getFPMantissaWidth(); 160 if (auto *VTy = dyn_cast<VectorType>(this)) 161 return VTy->getElementType()->isSized(Visited);
|
H A D | Globals.cpp | 423 GlobalIndirectSymbol::GlobalIndirectSymbol(Type *Ty, ValueTy VTy, argument 426 : GlobalValue(Ty, VTy, &Op<0>(), 1, Linkage, Name, AddressSpace) {
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | BasicTTIImpl.h | 86 unsigned getBroadcastShuffleOverhead(FixedVectorType *VTy) { argument 90 Cost += thisT()->getVectorInstrCost(Instruction::ExtractElement, VTy, 0); 92 for (int i = 0, e = VTy->getNumElements(); i < e; ++i) { 93 Cost += thisT()->getVectorInstrCost(Instruction::InsertElement, VTy, i); 100 unsigned getPermuteShuffleOverhead(FixedVectorType *VTy) { argument 109 for (int i = 0, e = VTy->getNumElements(); i < e; ++i) { 110 Cost += thisT()->getVectorInstrCost(Instruction::InsertElement, VTy, i); 111 Cost += thisT()->getVectorInstrCost(Instruction::ExtractElement, VTy, i); 118 unsigned getExtractSubvectorOverhead(FixedVectorType *VTy, int Index, argument 120 assert(VTy 141 getInsertSubvectorOverhead(FixedVectorType *VTy, int Index, FixedVectorType *SubVTy) argument [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 544 Type *VTy = V->getType(); variable 548 if (VTy->isVectorTy()) { 549 VectorType *VecTy = cast<VectorType>(VTy); 554 if (VTy == DestTy) return; 557 if (VTy->isPointerTy()) { 564 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); 574 if (VTy->isIntOrIntVectorTy() && DestTy->isIntOrIntVectorTy()) { 588 if (VTy->isFPOrFPVectorTy() && DestTy->isIntOrIntVectorTy()) { 596 if (VTy->isIntOrIntVectorTy() && DestTy->isFPOrFPVectorTy()) { 604 if (VTy [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 127 Type *VTy = V->getType(); local 129 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && 140 return UndefValue::get(VTy); 184 return Constant::getIntegerValue(VTy, Known.One); 213 return Constant::getIntegerValue(VTy, Known.One); 240 return Constant::getIntegerValue(VTy, Known.One); 265 Constant *AndC = Constant::getIntegerValue(VTy, 428 CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy, I->getName()); 455 return Builder.CreateSExt(AndNot, VTy); 1538 VectorType *VTy = dyn_cast<VectorType>(I->getOperand(0)->getType()); local [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGBuiltin.cpp | 4661 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); 4664 int EltSize = VTy->getScalarSizeInBits(); 4673 return llvm::ConstantAggregateZero::get(VTy); 4678 Shift = ConstantInt::get(VTy->getElementType(), ShiftAmt); 5614 llvm::VectorType *VTy = GetNeonType(this, Type, HasLegalHalfType, false, 5616 llvm::Type *Ty = VTy; 5634 auto NumElements = VTy->getElementCount(); 5640 Ops[0] = Builder.CreateBitCast(Ops[0], VTy); 5646 if (VTy->getElementType()->isFloatingPointTy() && 5652 if (VTy [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 368 auto *VTy = cast<FixedVectorType>(Ty); local 369 unsigned WideBits = getScalarSizeInBits(Ty) * VTy->getNumElements(); 476 auto *VTy = cast<FixedVectorType>(Ty); local 477 unsigned VF = VTy->getNumElements(); 490 return VF * DivMulSeqCost + getScalarizationOverhead(VTy, Args); 513 unsigned Cost = (VF * ScalarCost) + getScalarizationOverhead(VTy, Args); 530 unsigned Cost = (VF * LIBCALL_COST) + getScalarizationOverhead(VTy, Args);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | TruncInstCombine.cpp | 292 if (auto *VTy = dyn_cast<VectorType>(V->getType())) { 294 return FixedVectorType::get(Ty, VTy->getNumElements());
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonTargetTransformInfo.cpp | 63 if (auto *VTy = dyn_cast<FixedVectorType>(Ty)) 64 return VTy->getNumElements();
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | SROA.cpp | 1876 if (auto *VTy = dyn_cast<VectorType>(Ty)) { 1880 if (DL.getTypeSizeInBits(VTy).getFixedSize() != 1886 CandidateTys.push_back(VTy); 1888 CommonEltTy = VTy->getElementType(); 1889 else if (CommonEltTy != VTy->getElementType()) 1914 [](VectorType *VTy) { 1915 return !VTy->getElementType()->isIntegerTy(); 1945 for (VectorType *VTy : CandidateTys) { 1946 assert(VTy->getElementType() == CommonEltTy && 1948 assert(VTy [all...] |