Home
last modified time | relevance | path

Searched refs:VTy (Results 1 – 25 of 75) sorted by relevance

123

/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDerivedTypes.h440 static VectorType *getInteger(VectorType *VTy) { in getInteger() argument
461 switch(VTy->getElementType()->getTypeID()) { in getTruncatedElementVectorType()
485 VTy = VectorType::getDoubleElementsVectorType(VTy); in getSubdividedVectorType()
486 VTy = VectorType::getTruncatedElementVectorType(VTy); in getSubdividedVectorType()
488 return VTy; in getSubdividedVectorType()
494 auto EltCnt = VTy->getElementCount(); in getHalfElementsVectorType()
497 return VectorType::get(VTy->getElementType(), in getHalfElementsVectorType()
504 auto EltCnt = VTy->getElementCount(); in getDoubleElementsVectorType()
710 if (auto *VTy = dyn_cast<VectorType>(this)) in getExtendedType() local
712 const_cast<VectorType *>(VTy)); in getExtendedType()
[all …]
H A DGlobalObject.h43 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps,
46 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace) { in GlobalValue() argument
H A DGetElementPtrTypeIterator.h82 else if (auto *VTy = dyn_cast<VectorType>(Ty)) variable
83 CurTy = VTy->getElementType();
H A DDataLayout.h710 VectorType *VTy = cast<VectorType>(Ty); in getTypeSizeInBits() local
711 auto EltCnt = VTy->getElementCount(); in getTypeSizeInBits()
713 getTypeSizeInBits(VTy->getElementType()).getFixedSize(); in getTypeSizeInBits()
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DLowLevelTypeTest.cpp68 EXPECT_EQ(VTy, VSTy); in TEST()
75 ASSERT_TRUE(VTy.isValid()); in TEST()
76 ASSERT_TRUE(VTy.isVector()); in TEST()
78 ASSERT_FALSE(VTy.isScalar()); in TEST()
79 ASSERT_FALSE(VTy.isPointer()); in TEST()
91 EXPECT_TRUE(VTy == VTy); in TEST()
92 EXPECT_FALSE(VTy != VTy); in TEST()
96 EXPECT_NE(VTy, STy); in TEST()
266 ASSERT_TRUE(VTy.isValid()); in TEST()
280 EXPECT_TRUE(VTy == VTy); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp637 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()
683 unsigned getDimension() const { return VTy->getNumElements(); } in getDimension()
693 unsigned Size = DL.getTypeAllocSize(VTy->getElementType()); in isInterleaved()
737 if (!VTy) in computeFromBCI()
741 if (Result.VTy->getNumElements() % VTy->getNumElements()) in computeFromBCI()
744 unsigned Factor = Result.VTy->getNumElements() / VTy->getNumElements(); in computeFromBCI()
751 VectorInfo Old(VTy); in computeFromBCI()
[all …]
H A DLowLevelType.cpp21 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 DValueTypes.cpp146 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits() local
147 return VTy->getPrimitiveSizeInBits(); in getExtendedSizeInBits()
562 VectorType *VTy = cast<VectorType>(Ty); in getVT() local
564 getVT(VTy->getElementType(), /*HandleUnknown=*/ false), in getVT()
565 VTy->getElementCount()); in getVT()
581 VectorType *VTy = cast<VectorType>(Ty); in getEVT() local
583 getEVT(VTy->getElementType(), /*HandleUnknown=*/ false), in getEVT()
584 VTy->getElementCount()); in getEVT()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp115 Type *VTy = V->getType(); in SimplifyDemandedUseBits() local
117 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits()
128 return UndefValue::get(VTy); in SimplifyDemandedUseBits()
133 if (isa<ScalableVectorType>(VTy)) in SimplifyDemandedUseBits()
390 if (C->ult(VTy->getScalarSizeInBits()) && in SimplifyDemandedUseBits()
395 Value *Trunc = Builder.CreateTrunc(X, VTy); in SimplifyDemandedUseBits()
481 return Builder.CreateSExt(AndNot, VTy); in SimplifyDemandedUseBits()
498 return Builder.CreateSExt(Or, VTy); in SimplifyDemandedUseBits()
545 Constant *One = ConstantInt::get(VTy, 1); in SimplifyDemandedUseBits()
612 return UndefValue::get(VTy); in SimplifyDemandedUseBits()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp291 if (!isa<Constant>(Y) || !VTy || VTy != Y->getType()) in isElementWiseEqual()
301 Type *IntTy = VectorType::getInteger(VTy); in isElementWiseEqual()
405 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue() local
757 if (!VTy) in replaceUndefsWith()
760 unsigned NumElts = VTy->getNumElements(); in replaceUndefsWith()
781 if (!VTy) in mergeUndefsWith()
784 Type *EltTy = VTy->getElementType(); in mergeUndefsWith()
785 unsigned NumElts = VTy->getNumElements(); in mergeUndefsWith()
848 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getTrue() local
856 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getFalse() local
[all …]
H A DFunction.cpp850 ElementCount EC = VTy->getElementCount(); in getMangledTypeStr()
1311 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local
1318 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local
1328 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType() local
1339 if (auto *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local
1349 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType() local
1350 if (!VTy) in DecodeFixedType()
1352 Type *EltTy = VTy->getElementType(); in DecodeFixedType()
1358 return VTy->getElementType(); in DecodeFixedType()
1363 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType() local
[all …]
H A DValue.cpp50 : VTy(checkType(ty)), UseList(nullptr), SubclassID(scid), HasValueHandle(0), in Value()
62 assert((VTy->isFirstClassType() || VTy->isVoidTy() || VTy->isStructTy()) && in Value()
66 assert((VTy->isFirstClassType() || VTy->isVoidTy()) && in Value()
94 dbgs() << "While deleting: " << *VTy << " %" << getName() << "\n"; in ~Value()
991 LLVMContext &Value::getContext() const { return VTy->getContext(); } in getContext()
H A DType.cpp179 const VectorType *VTy = cast<VectorType>(this); in getPrimitiveSizeInBits() local
180 ElementCount EC = VTy->getElementCount(); in getPrimitiveSizeInBits()
181 TypeSize ETS = VTy->getElementType()->getPrimitiveSizeInBits(); in getPrimitiveSizeInBits()
195 if (auto *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth() local
196 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth()
212 if (auto *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType() local
213 return VTy->getElementType()->isSized(Visited); in isSizedDerivedType()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DVFABIDemangling.cpp283 if (auto *VTy = dyn_cast<VectorType>(Ty)) in verifyAllVectorsHaveSameWidth() local
284 VecTys.push_back(VTy); in verifyAllVectorsHaveSameWidth()
291 return llvm::all_of(llvm::drop_begin(VecTys), [&EC](VectorType *VTy) { in verifyAllVectorsHaveSameWidth() argument
292 return (EC == VTy->getElementCount()); in verifyAllVectorsHaveSameWidth()
308 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getECFromSignature() local
309 return VTy->getElementCount(); in getECFromSignature()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp64 if (auto *VTy = dyn_cast<VectorType>(Ty)) { in getArithmeticInstrCost() local
75 cast<FixedVectorType>(VTy)->getNumElements() * in getArithmeticInstrCost()
77 getArithmeticInstrCost(Opcode, VTy->getElementType(), CostKind) + in getArithmeticInstrCost()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h121 assert(VTy && SubVTy && in getExtractSubvectorOverhead()
124 assert((!isa<FixedVectorType>(VTy) || in getExtractSubvectorOverhead()
146 assert(VTy && SubVTy && in getInsertSubvectorOverhead()
149 assert((!isa<FixedVectorType>(VTy) || in getInsertSubvectorOverhead()
851 if (auto *VTy = dyn_cast<FixedVectorType>(Ty)) { variable
858 return getScalarizationOverhead(VTy, Args, Tys) +
859 VTy->getNumElements() * Cost;
1664 if (auto *VTy = dyn_cast<VectorType>(Ty)) { in getTypeBasedIntrinsicInstrCost() local
2234 auto *VTy = cast<FixedVectorType>(Ty); in getOrderedReductionCost() local
2238 Opcode, VTy->getElementType(), CostKind); in getOrderedReductionCost()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp544 Type *VTy = V->getType(); in Act() local
548 if (VTy->isVectorTy()) { in Act()
549 auto *VecTy = cast<FixedVectorType>(VTy); in Act()
554 if (VTy == DestTy) return; in Act()
557 if (VTy->isPointerTy()) { in Act()
564 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
574 if (VTy->isIntOrIntVectorTy() && DestTy->isIntOrIntVectorTy()) { in Act()
588 if (VTy->isFPOrFPVectorTy() && DestTy->isIntOrIntVectorTy()) { in Act()
596 if (VTy->isIntOrIntVectorTy() && DestTy->isFPOrFPVectorTy()) { in Act()
604 if (VTy->isFPOrFPVectorTy() && DestTy->isFPOrFPVectorTy()) { in Act()
/llvm-project-15.0.7/openmp/libomptarget/DeviceRTL/include/
H A DState.h273 template <typename VTy, typename Ty2> friend struct ValueRAII;
300 template <typename VTy, typename Ty2> friend struct ValueRAII;
303 template <typename VTy, typename Ty> struct ValueRAII {
304 ValueRAII(VTy &V, Ty NewValue, Ty OldValue, bool Active, IdentTy *Ident,
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGBuiltin.cpp6566 llvm::FixedVectorType *VTy = in EmitCommonNeonBuiltinExpr() local
6568 llvm::Type *Ty = VTy; in EmitCommonNeonBuiltinExpr()
6795 llvm::Type *Tys[2] = { VTy->getTruncatedElementVectorType(VTy), Ty}; in EmitCommonNeonBuiltinExpr()
8001 llvm::FixedVectorType *VTy = in EmitARMBuiltinExpr() local
8004 llvm::Type *Ty = VTy; in EmitARMBuiltinExpr()
8521 Value *V = UndefValue::get(VTy); in vectorWrapScalar16()
8891 llvm::VectorType::get(VTy->getElementType(), VTy->getElementCount() * N); in EmitSVEStructStore()
10763 llvm::Type *Ty = VTy; in EmitAArch64BuiltinExpr()
10811 : VTy; in EmitAArch64BuiltinExpr()
10825 if (VTy && VTy->getElementType() == DoubleTy) { in EmitAArch64BuiltinExpr()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h236 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment);
237 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter() argument
238 return forceScalarizeMaskedGather(VTy, Alignment); in forceScalarizeMaskedScatter()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h192 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedGather() argument
200 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter() argument
201 return forceScalarizeMaskedGather(VTy, Alignment); in forceScalarizeMaskedScatter()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp414 auto *VTy = cast<FixedVectorType>(Ty); in getNumVectorRegs() local
415 unsigned WideBits = getScalarSizeInBits(Ty) * VTy->getNumElements(); in getNumVectorRegs()
522 auto *VTy = cast<FixedVectorType>(Ty); in getArithmeticInstrCost() local
523 unsigned VF = VTy->getNumElements(); in getArithmeticInstrCost()
537 return VF * DivMulSeqCost + getScalarizationOverhead(VTy, Args, Tys); in getArithmeticInstrCost()
563 (VF * ScalarCost) + getScalarizationOverhead(VTy, Args, Tys); in getArithmeticInstrCost()
582 (VF * LIBCALL_COST) + getScalarizationOverhead(VTy, Args, Tys); in getArithmeticInstrCost()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h174 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedGather() argument
179 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter() argument
H A DRISCVTargetTransformInfo.cpp239 auto &VTy = *cast<VectorType>(DataTy); in getGatherScatterOpCost() local
240 InstructionCost MemOpCost = getMemoryOpCost(Opcode, VTy.getElementType(), in getGatherScatterOpCost()
242 unsigned NumLoads = getMaxVLFor(&VTy); in getGatherScatterOpCost()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp428 auto *VTy = cast<FixedVectorType>(AccessTy); in instrumentMaskedLoadOrStore() local
429 uint64_t ElemTypeSize = DL.getTypeStoreSizeInBits(VTy->getScalarType()); in instrumentMaskedLoadOrStore()
430 unsigned Num = VTy->getNumElements(); in instrumentMaskedLoadOrStore()
453 IRB.CreateGEP(VTy, Addr, {Zero, ConstantInt::get(IntptrTy, Idx)}); in instrumentMaskedLoadOrStore()

123