/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DerivedTypes.h | 468 static VectorType *getInteger(VectorType *VTy) { argument 469 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); 471 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); 472 return VectorType::get(EltTy, VTy->getElementCount()); 477 static VectorType *getExtendedElementVectorType(VectorType *VTy) { argument 478 assert(VTy->isIntOrIntVectorTy() && "VTy expected to be a vector of ints."); 479 auto *EltTy = cast<IntegerType>(VTy->getElementType()); 480 return VectorType::get(EltTy->getExtendedType(), VTy->getElementCount()); 486 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { argument 511 getSubdividedVectorType(VectorType *VTy, int NumSubdivs) argument 521 getHalfElementsVectorType(VectorType *VTy) argument 530 getDoubleElementsVectorType(VectorType *VTy) argument [all...] |
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 | 657 VectorType *VTy = cast<VectorType>(Ty); local 658 auto EltCnt = VTy->getElementCount(); 660 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 | 77 Type *VTy; member in class:llvm::Value 246 Type *getType() const { return VTy; } 664 VTy = Ty;
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | LowLevelType.cpp | 21 if (auto VTy = dyn_cast<VectorType>(&Ty)) { 22 auto NumElements = VTy->getNumElements(); 23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL);
|
H A D | InterleavedLoadCombinePass.cpp | 638 VectorInfo(const VectorInfo &c) : VTy(c.VTy) { 676 VectorType *const VTy; member in struct:__anon1731::VectorInfo 678 VectorInfo(VectorType *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 VectorType *VTy [all...] |
H A D | ValueTypes.cpp | 109 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) 110 return VTy->getPrimitiveSizeInBits(); 342 VectorType *VTy = cast<VectorType>(Ty); local 344 getVT(VTy->getElementType(), /*HandleUnknown=*/ false), 345 VTy->getElementCount()); 360 VectorType *VTy = cast<VectorType>(Ty); local 362 getEVT(VTy->getElementType(), /*HandleUnknown=*/ false), 363 VTy->getElementCount());
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyTargetTransformInfo.cpp | 55 if (auto *VTy = dyn_cast<VectorType>(Ty)) { 65 Cost = VTy->getNumElements() * 67 getArithmeticInstrCost(Opcode, VTy->getElementType()) +
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | Function.cpp | 634 } else if (VectorType* VTy = dyn_cast<VectorType>(Ty)) { 635 if (VTy->isScalable()) 637 Result += "v" + utostr(VTy->getVectorNumElements()) + 638 getMangledTypeStr(VTy->getVectorElementType()); 1000 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) 1001 return VectorType::getExtendedElementVectorType(VTy); 1007 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) 1008 return VectorType::getTruncatedElementVectorType(VTy); 1017 VectorType *VTy = dyn_cast<VectorType>(Ty); local 1018 assert(VTy 1038 VectorType *VTy = dyn_cast<VectorType>(Ty); local 1052 VectorType *VTy = dyn_cast<VectorType>(Ty); local 1343 VectorType *VTy = dyn_cast<VectorType>(Ty); local [all...] |
H A D | Type.cpp | 127 const VectorType *VTy = cast<VectorType>(this); local 128 return TypeSize(VTy->getBitWidth(), VTy->isScalable()); 139 if (auto *VTy = dyn_cast<VectorType>(this)) 140 return VTy->getElementType()->getFPMantissaWidth(); 155 if (auto *VTy = dyn_cast<VectorType>(this)) 156 return VTy->getElementType()->isSized(Visited); 512 if (auto *VTy = dyn_cast<VectorType>(ElemTy)) 513 return !VTy->isScalable(); 600 if (auto *VTy [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()) && 87 dbgs() << "While deleting: " << *VTy << " %" << getName() << "\n"; 744 LLVMContext &Value::getContext() const { return VTy->getContext(); }
|
H A D | Constants.cpp | 366 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) 367 C = ConstantVector::getSplat(VTy->getNumElements(), C); 383 VectorType *VTy = cast<VectorType>(Ty); local 384 return ConstantVector::getSplat(VTy->getNumElements(), 385 getAllOnesValue(VTy->getElementType())); 677 if (auto *VTy = dyn_cast<VectorType>(Ty)) 678 return ConstantVector::getSplat(VTy->getNumElements(), TrueC); 685 if (auto *VTy = dyn_cast<VectorType>(Ty)) 686 return ConstantVector::getSplat(VTy->getNumElements(), FalseC); 708 if (VectorType *VTy [all...] |
H A D | Globals.cpp | 427 GlobalIndirectSymbol::GlobalIndirectSymbol(Type *Ty, ValueTy VTy, argument 430 : GlobalValue(Ty, VTy, &Op<0>(), 1, Linkage, Name, AddressSpace) {
|
H A D | ConstantFold.cpp | 981 } else if (VectorType *VTy = dyn_cast<VectorType>(C->getType())) { 984 Type *Ty = IntegerType::get(VTy->getContext(), 32); 985 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { 1332 } else if (VectorType *VTy = dyn_cast<VectorType>(C1->getType())) { 1335 Type *Ty = IntegerType::get(VTy->getContext(), 32); 1336 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { 1343 return UndefValue::get(VTy);
|
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 542 Type *VTy = V->getType(); variable 546 if (VTy->isVectorTy()) { 547 VectorType *VecTy = cast<VectorType>(VTy); 552 if (VTy == DestTy) return; 555 if (VTy->isPointerTy()) { 562 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); 572 if (VTy->isIntOrIntVectorTy() && DestTy->isIntOrIntVectorTy()) { 586 if (VTy->isFPOrFPVectorTy() && DestTy->isIntOrIntVectorTy()) { 594 if (VTy->isIntOrIntVectorTy() && DestTy->isFPOrFPVectorTy()) { 602 if (VTy [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGBuiltin.cpp | 4510 llvm::VectorType *VTy = cast<llvm::VectorType>(Ty); 4513 int EltSize = VTy->getScalarSizeInBits(); 4522 return llvm::ConstantAggregateZero::get(VTy); 4527 Shift = ConstantInt::get(VTy->getElementType(), ShiftAmt); 5405 llvm::VectorType *VTy = GetNeonType(this, Type, HasLegalHalfType); 5406 llvm::Type *Ty = VTy; 5423 if (VTy->getElementType()->isFloatingPointTy() && 5429 if (VTy->getElementType()->isFloatingPointTy()) 5434 llvm::VectorType::getExtendedElementVectorType(VTy); 5447 return Builder.CreateTrunc(Ops[0], VTy, "vaddh [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 124 Type *VTy = V->getType(); local 126 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && 137 return UndefValue::get(VTy); 184 return Constant::getIntegerValue(VTy, IKnownOne); 218 return Constant::getIntegerValue(VTy, IKnownOne); 252 return Constant::getIntegerValue(VTy, IKnownOne); 277 Constant *AndC = Constant::getIntegerValue(VTy, 445 CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy, I->getName()); 767 return ConstantInt::getNullValue(VTy); 1454 VectorType *VTy = dyn_cast<VectorType>(I->getOperand(0)->getType()); local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | TruncInstCombine.cpp | 279 if (auto *VTy = dyn_cast<VectorType>(V->getType())) 280 return VectorType::get(Ty, VTy->getNumElements());
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 108 if (auto *VTy = dyn_cast<VectorType>(C->getType())) { 111 unsigned NumSrcElts = VTy->getNumElements(); 112 Type *SrcEltTy = VTy->getElementType(); 2393 VectorType *VTy, 2398 SmallVector<Constant *, 4> Result(VTy->getNumElements()); 2400 Type *Ty = VTy->getElementType(); 2407 Constant *VecData = ConstantFoldLoadFromConstPtr(SrcPtr, VTy, DL); 2410 for (unsigned I = 0, E = VTy->getNumElements(); I != E; ++I) { 2436 if (NewElements.size() != VTy->getNumElements()) 2441 for (unsigned I = 0, E = VTy 2391 ConstantFoldVectorCall(StringRef Name, Intrinsic::ID IntrinsicID, VectorType *VTy, ArrayRef<Constant *> Operands, const DataLayout &DL, const TargetLibraryInfo *TLI, const CallBase *Call) argument [all...] |
H A D | VectorUtils.cpp | 264 VectorType *VTy = cast<VectorType>(V->getType()); local 265 unsigned Width = VTy->getNumElements(); 267 return UndefValue::get(VTy->getElementType()); 292 return UndefValue::get(VTy->getElementType());
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | SROA.cpp | 1889 if (auto *VTy = dyn_cast<VectorType>(Ty)) { 1893 if (DL.getTypeSizeInBits(VTy) != DL.getTypeSizeInBits(V)) { 1898 CandidateTys.push_back(VTy); 1900 CommonEltTy = VTy->getElementType(); 1901 else if (CommonEltTy != VTy->getElementType()) 1926 [](VectorType *VTy) { 1927 return !VTy->getElementType()->isIntegerTy(); 1955 for (VectorType *VTy : CandidateTys) { 1956 assert(VTy->getElementType() == CommonEltTy && 1958 assert(VTy [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 629 auto* VTy = cast<VectorType>(C->getType()); local 630 Type *ElemTy = VTy->getElementType(); 631 unsigned int elemNum = VTy->getNumElements(); 928 auto* VTy = cast<VectorType>(C->getType()); local 929 elemNum = VTy->getNumElements(); 930 ElemTy = VTy->getElementType();
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LowerMemIntrinsics.cpp | 18 if (VectorType *VTy = dyn_cast<VectorType>(Type)) { 19 return VTy->getBitWidth() / 8;
|