Home
last modified time | relevance | path

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

123

/openbsd/gnu/llvm/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.h713 VectorType *VTy = cast<VectorType>(Ty); in getTypeSizeInBits() local
714 auto EltCnt = VTy->getElementCount(); in getTypeSizeInBits()
716 getTypeSizeInBits(VTy->getElementType()).getFixedValue(); in getTypeSizeInBits()
H A DGlobalValue.h76 GlobalValue(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, in GlobalValue() argument
78 : Constant(PointerType::get(Ty, AddressSpace), VTy, Ops, NumOps), in GlobalValue()
/openbsd/gnu/llvm/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()
584 VectorType *VTy = cast<VectorType>(Ty); in getVT() local
586 getVT(VTy->getElementType(), /*HandleUnknown=*/ false), in getVT()
587 VTy->getElementCount()); in getVT()
603 VectorType *VTy = cast<VectorType>(Ty); in getEVT() local
605 getEVT(VTy->getElementType(), /*HandleUnknown=*/ false), in getEVT()
606 VTy->getElementCount()); in getEVT()
/openbsd/gnu/llvm/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()
395 if (C->ult(VTy->getScalarSizeInBits()) && in SimplifyDemandedUseBits()
400 Value *Trunc = Builder.CreateTrunc(X, VTy); in SimplifyDemandedUseBits()
422 if (auto *DstVTy = dyn_cast<VectorType>(VTy)) { in SimplifyDemandedUseBits()
488 return Builder.CreateSExt(AndNot, VTy); in SimplifyDemandedUseBits()
505 return Builder.CreateSExt(Or, VTy); in SimplifyDemandedUseBits()
594 Constant *One = ConstantInt::get(VTy, 1); in SimplifyDemandedUseBits()
661 return UndefValue::get(VTy); in SimplifyDemandedUseBits()
[all …]
/openbsd/gnu/llvm/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp295 Type *pickVectorType(VectorType *VTy = nullptr) { in pickVectorType()
303 if (VTy) in pickVectorType()
304 return VectorType::get(Ty, VTy->getElementCount()); in pickVectorType()
548 Type *VTy = V->getType(); in Act() local
552 if (VTy->isVectorTy()) in Act()
553 DestTy = pickVectorType(cast<VectorType>(VTy)); in Act()
556 if (VTy == DestTy) return; in Act()
559 if (VTy->isPointerTy()) { in Act()
606 if (VTy->isFPOrFPVectorTy() && DestTy->isFPOrFPVectorTy()) { in Act()
633 if (auto *VTy = dyn_cast<VectorType>(Val0->getType())) in Act() local
[all …]
/openbsd/gnu/llvm/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()
413 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue() local
765 if (!VTy) in replaceUndefsWith()
768 unsigned NumElts = VTy->getNumElements(); in replaceUndefsWith()
789 if (!VTy) in mergeUndefsWith()
792 Type *EltTy = VTy->getElementType(); in mergeUndefsWith()
793 unsigned NumElts = VTy->getNumElements(); in mergeUndefsWith()
856 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getTrue() local
864 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getFalse() local
[all …]
H A DFunction.cpp934 ElementCount EC = VTy->getElementCount(); in getMangledTypeStr()
1404 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local
1411 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local
1421 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType() local
1432 if (auto *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType() local
1442 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType() local
1443 if (!VTy) in DecodeFixedType()
1445 Type *EltTy = VTy->getElementType(); in DecodeFixedType()
1451 return VTy->getElementType(); in DecodeFixedType()
1456 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType() local
[all …]
H A DValue.cpp53 : VTy(checkType(ty)), UseList(nullptr), SubclassID(scid), HasValueHandle(0), in Value()
65 assert((VTy->isFirstClassType() || VTy->isVoidTy() || VTy->isStructTy()) && in Value()
69 assert((VTy->isFirstClassType() || VTy->isVoidTy()) && in Value()
97 dbgs() << "While deleting: " << *VTy << " %" << getName() << "\n"; in ~Value()
994 LLVMContext &Value::getContext() const { return VTy->getContext(); } in getContext()
H A DType.cpp178 const VectorType *VTy = cast<VectorType>(this); in getPrimitiveSizeInBits() local
179 ElementCount EC = VTy->getElementCount(); in getPrimitiveSizeInBits()
180 TypeSize ETS = VTy->getElementType()->getPrimitiveSizeInBits(); in getPrimitiveSizeInBits()
194 if (auto *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth() local
195 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth()
211 if (auto *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType() local
212 return VTy->getElementType()->isSized(Visited); in isSizedDerivedType()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DVFABIDemangling.cpp284 if (auto *VTy = dyn_cast<VectorType>(Ty)) in verifyAllVectorsHaveSameWidth() local
285 VecTys.push_back(VTy); in verifyAllVectorsHaveSameWidth()
292 return llvm::all_of(llvm::drop_begin(VecTys), [&EC](VectorType *VTy) { in verifyAllVectorsHaveSameWidth() argument
293 return (EC == VTy->getElementCount()); in verifyAllVectorsHaveSameWidth()
308 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getECFromSignature() local
309 return VTy->getElementCount(); in getECFromSignature()
/openbsd/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp63 if (auto *VTy = dyn_cast<VectorType>(Ty)) { in getArithmeticInstrCost() local
73 cast<FixedVectorType>(VTy)->getNumElements() * in getArithmeticInstrCost()
75 getArithmeticInstrCost(Opcode, VTy->getElementType(), CostKind) + in getArithmeticInstrCost()
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h97 for (int i = 0, e = VTy->getNumElements(); i < e; ++i) { in getBroadcastShuffleOverhead()
131 assert(VTy && SubVTy && in getExtractSubvectorOverhead()
134 assert((!isa<FixedVectorType>(VTy) || in getExtractSubvectorOverhead()
159 assert(VTy && SubVTy && in getInsertSubvectorOverhead()
162 assert((!isa<FixedVectorType>(VTy) || in getInsertSubvectorOverhead()
912 if (auto *VTy = dyn_cast<FixedVectorType>(Ty)) { variable
920 VTy->getNumElements() * Cost;
1746 if (auto *VTy = dyn_cast<VectorType>(Ty)) { in getTypeBasedIntrinsicInstrCost() local
2323 auto *VTy = cast<FixedVectorType>(Ty); in getOrderedReductionCost() local
2327 Opcode, VTy->getElementType(), CostKind); in getOrderedReductionCost()
[all …]
/openbsd/gnu/llvm/clang/lib/CodeGen/
H A DCGBuiltin.cpp6817 llvm::FixedVectorType *VTy = in EmitCommonNeonBuiltinExpr() local
6819 llvm::Type *Ty = VTy; in EmitCommonNeonBuiltinExpr()
7054 llvm::Type *Tys[2] = { VTy->getTruncatedElementVectorType(VTy), Ty}; in EmitCommonNeonBuiltinExpr()
8270 llvm::FixedVectorType *VTy = in EmitARMBuiltinExpr() local
8273 llvm::Type *Ty = VTy; in EmitARMBuiltinExpr()
8785 Value *V = PoisonValue::get(VTy); in vectorWrapScalar16()
11071 llvm::Type *Ty = VTy; in EmitAArch64BuiltinExpr()
11119 : VTy; in EmitAArch64BuiltinExpr()
11133 if (VTy && VTy->getElementType() == DoubleTy) { in EmitAArch64BuiltinExpr()
11136 llvm::FixedVectorType *VTy = in EmitAArch64BuiltinExpr() local
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h247 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment);
248 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter() argument
249 return forceScalarizeMaskedGather(VTy, Alignment); in forceScalarizeMaskedScatter()
/openbsd/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp370 auto *VTy = cast<FixedVectorType>(AccessTy); in instrumentMaskedLoadOrStore() local
371 uint64_t ElemTypeSize = DL.getTypeStoreSizeInBits(VTy->getScalarType()); in instrumentMaskedLoadOrStore()
372 unsigned Num = VTy->getNumElements(); in instrumentMaskedLoadOrStore()
395 IRB.CreateGEP(VTy, Addr, {Zero, ConstantInt::get(IntptrTy, Idx)}); in instrumentMaskedLoadOrStore()
/openbsd/gnu/llvm/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h193 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedGather() argument
201 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter() argument
202 return forceScalarizeMaskedGather(VTy, Alignment); in forceScalarizeMaskedScatter()
/openbsd/gnu/llvm/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()
520 auto *VTy = cast<FixedVectorType>(Ty); in getArithmeticInstrCost() local
521 unsigned VF = VTy->getNumElements(); in getArithmeticInstrCost()
536 getScalarizationOverhead(VTy, Args, Tys, CostKind); in getArithmeticInstrCost()
563 getScalarizationOverhead(VTy, Args, Tys, CostKind); in getArithmeticInstrCost()
582 getScalarizationOverhead(VTy, Args, Tys, CostKind); in getArithmeticInstrCost()
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2147 CandidateTys.push_back(VTy); in isVectorPromotionViable()
2148 Type *EltTy = VTy->getElementType(); in isVectorPromotionViable()
2158 CommonVecPtrTy = VTy; in isVectorPromotionViable()
2159 else if (CommonVecPtrTy != VTy) in isVectorPromotionViable()
2192 for (VectorType *&VTy : CandidateTys) { in isVectorPromotionViable()
2194 VTy = cast<VectorType>(VTy->getWithNewType(IntegerType::getIntNTy( in isVectorPromotionViable()
2195 VTy->getContext(), VTy->getScalarSizeInBits()))); in isVectorPromotionViable()
2220 for (VectorType *VTy : CandidateTys) { in isVectorPromotionViable()
2223 assert(VTy == CandidateTys[0] && in isVectorPromotionViable()
2237 for (VectorType *VTy : CandidateTys) in isVectorPromotionViable()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h231 bool forceScalarizeMaskedGather(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedGather() argument
236 bool forceScalarizeMaskedScatter(VectorType *VTy, Align Alignment) { in forceScalarizeMaskedScatter() argument
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp66 Type *VTy = V.getType(); in canSafelyConvertTo16Bit() local
67 if (VTy->isHalfTy() || VTy->isIntegerTy(16)) { in canSafelyConvertTo16Bit()
104 Type *VTy = V.getType(); in convertTo16Bit() local
107 if (VTy->isIntegerTy()) in convertTo16Bit()
109 if (VTy->isFloatingPointTy()) in convertTo16Bit()

123