Searched refs:VTy (Results 1 - 25 of 50) sorted by relevance

12

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h468 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 DGlobalIndirectSymbol.h30 GlobalIndirectSymbol(Type *Ty, ValueTy VTy, unsigned AddressSpace,
H A DGlobalObject.h46 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, argument
49 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace),
H A DDataLayout.h657 VectorType *VTy = cast<VectorType>(Ty); local
658 auto EltCnt = VTy->getElementCount();
660 getTypeSizeInBits(VTy->getElementType()).getFixedSize();
H A DGlobalValue.h76 GlobalValue(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, argument
78 : Constant(PointerType::get(Ty, AddressSpace), VTy, Ops, NumOps),
H A DValue.h77 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 DLowLevelType.cpp21 if (auto VTy = dyn_cast<VectorType>(&Ty)) {
22 auto NumElements = VTy->getNumElements();
23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL);
H A DInterleavedLoadCombinePass.cpp638 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 DValueTypes.cpp109 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 DWebAssemblyTargetTransformInfo.cpp55 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 DFunction.cpp634 } 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 DType.cpp127 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 DValue.cpp54 : 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 DConstants.cpp366 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 DGlobals.cpp427 GlobalIndirectSymbol::GlobalIndirectSymbol(Type *Ty, ValueTy VTy, argument
430 : GlobalValue(Ty, VTy, &Op<0>(), 1, Linkage, Name, AddressSpace) {
H A DConstantFold.cpp981 } 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 Dllvm-stress.cpp542 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 DCGBuiltin.cpp4510 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 DInstCombineSimplifyDemanded.cpp124 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 DTruncInstCombine.cpp279 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 DConstantFolding.cpp108 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 DVectorUtils.cpp264 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 DSROA.cpp1889 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 DExecutionEngine.cpp629 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 DLowerMemIntrinsics.cpp18 if (VectorType *VTy = dyn_cast<VectorType>(Type)) {
19 return VTy->getBitWidth() / 8;

Completed in 251 milliseconds

12