Home
last modified time | relevance | path

Searched refs:VectorTy (Results 1 – 22 of 22) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DBlotMapVector.h28 using VectorTy = std::vector<std::pair<KeyT, ValueT>>; variable
29 VectorTy Vector;
40 for (typename VectorTy::const_iterator I = Vector.begin(), E = Vector.end(); in ~BlotMapVector()
47 using iterator = typename VectorTy::iterator;
48 using const_iterator = typename VectorTy::const_iterator;
H A DObjCARC.h73 template<class PHINodeTy, class VectorTy>
74 void getEquivalentPHIs(PHINodeTy &PN, VectorTy &PHIList) { in getEquivalentPHIs()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp449 Instruction *Inst, const DataLayout &DL, FixedVectorType *VectorTy, in promoteAllocaUserToVector() argument
467 Builder.CreateLoad(VectorTy, PoisonValue::get(Builder.getPtrTy()), in promoteAllocaUserToVector()
488 Type *VecEltTy = VectorTy->getElementType(); in promoteAllocaUserToVector()
565 else if (VectorTy->isPtrOrPtrVectorTy()) in promoteAllocaUserToVector()
566 Val = CreateTempPtrIntCast(Val, VectorTy); in promoteAllocaUserToVector()
567 return Builder.CreateBitOrPointerCast(Val, VectorTy); in promoteAllocaUserToVector()
576 const unsigned NumVecElts = VectorTy->getNumElements(); in promoteAllocaUserToVector()
613 for (unsigned Idx = 0; Idx < VectorTy->getNumElements(); ++Idx) { in promoteAllocaUserToVector()
642 return Builder.CreateVectorSplat(VectorTy->getElementCount(), Elt); in promoteAllocaUserToVector()
649 DL.getTypeAllocSize(VectorTy))); in promoteAllocaUserToVector()
[all …]
H A DAMDGPULegalizerInfo.cpp595 const LLT VectorTy = getBufferRsrcRegisterType(PointerTy); in castBufferRsrcFromV4I32() local
601 Register VectorReg = MRI.createGenericVirtualRegister(VectorTy); in castBufferRsrcFromV4I32()
609 return VectorTy; in castBufferRsrcFromV4I32()
611 Register BitcastReg = MRI.createGenericVirtualRegister(VectorTy); in castBufferRsrcFromV4I32()
617 return VectorTy; in castBufferRsrcFromV4I32()
629 const LLT VectorTy = getBufferRsrcRegisterType(PointerTy); in castBufferRsrcToV4I32() local
638 return B.buildBuildVector(VectorTy, PointerParts).getReg(0); in castBufferRsrcToV4I32()
641 return B.buildBitcast(VectorTy, Scalar).getReg(0); in castBufferRsrcToV4I32()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelperVectorOps.cpp41 LLT VectorTy = MRI.getType(Vector); in matchExtractVectorElement() local
80 if (IndexC && VectorTy.isFixedVector() && in matchExtractVectorElement()
81 IndexC->uge(VectorTy.getNumElements()) && in matchExtractVectorElement()
180 LLT VectorTy = MRI.getType(Vector); in matchExtractVectorElementWithBuildVector() local
183 EVT Ty(getMVTForLLT(VectorTy)); in matchExtractVectorElementWithBuildVector()
241 LLT VectorTy = MRI.getType(Vector); in matchExtractVectorElementWithBuildVectorTrunc() local
244 EVT Ty(getMVTForLLT(VectorTy)); in matchExtractVectorElementWithBuildVectorTrunc()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DMemoryFlags.h168 using VectorTy = SmallVector<ElemT, 4>;
175 using iterator = typename VectorTy::iterator;
201 VectorTy Elems;
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp306 FixedVectorType *VectorTy = dyn_cast<FixedVectorType>(Ty); in lowerFunnelShifts() local
307 Type *IntTy = VectorTy ? VectorTy->getElementType() : Ty; in lowerFunnelShifts()
311 VectorTy in lowerFunnelShifts()
312 ? IRB.CreateVectorSplat(VectorTy->getNumElements(), BitWidthConstant) in lowerFunnelShifts()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp1566 getReductionPatternCost(Instruction *I, ElementCount VF, Type *VectorTy,
4474 Type *VectorTy = ToVectorTy(ScalarTy, VF); in willGenerateVectors() local
4475 unsigned NumLegalParts = TTI.getNumberOfParts(VectorTy); in willGenerateVectors()
5624 auto *VectorTy = cast<VectorType>(ToVectorTy(ValTy, VF)); in getConsecutiveMemOpCost() local
5635 Cost += TTI.getMaskedMemoryOpCost(I->getOpcode(), VectorTy, Alignment, AS, in getConsecutiveMemOpCost()
5639 Cost += TTI.getMemoryOpCost(I->getOpcode(), VectorTy, Alignment, AS, in getConsecutiveMemOpCost()
5645 Cost += TTI.getShuffleCost(TargetTransformInfo::SK_Reverse, VectorTy, in getConsecutiveMemOpCost()
5656 auto *VectorTy = cast<VectorType>(ToVectorTy(ValTy, VF)); in getUniformMemOpCost() local
5664 TTI.getShuffleCost(TargetTransformInfo::SK_Broadcast, VectorTy); in getUniformMemOpCost()
5674 : TTI.getVectorInstrCost(Instruction::ExtractElement, VectorTy, in getUniformMemOpCost()
[all …]
H A DSLPVectorizer.cpp10278 if (auto *VectorTy = dyn_cast<FixedVectorType>(ScalarTy)) in getSpillCost() local
10279 ScalarTy = VectorTy->getElementType(); in getSpillCost()
17770 FixedVectorType *VectorTy = getWidenedType(ScalarTy, ReduxWidth); in getReductionCost() local
17815 TTI->getArithmeticReductionCost(RdxOpcode, VectorTy, FMF, CostKind); in getReductionCost()
17831 VectorCost = TTI->getMinMaxReductionCost(Id, VectorTy, FMF, CostKind); in getReductionCost()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp161 auto *VectorTy = llvm::FixedVectorType::get(ArrayTy->getElementType(), in CreateMemTemp() local
164 Result = Address(Result.getPointer(), VectorTy, Result.getAlignment(), in CreateMemTemp()
2072 auto *VectorTy = llvm::FixedVectorType::get(ArrayTy->getElementType(), in MaybeConvertMatrixAddress() local
2075 return Addr.withElementType(VectorTy); in MaybeConvertMatrixAddress()
2077 auto *VectorTy = dyn_cast<llvm::VectorType>(Addr.getElementType()); in MaybeConvertMatrixAddress() local
2078 if (VectorTy && !IsVector) { in MaybeConvertMatrixAddress()
2080 VectorTy->getElementType(), in MaybeConvertMatrixAddress()
2081 cast<llvm::FixedVectorType>(VectorTy)->getNumElements()); in MaybeConvertMatrixAddress()
H A DCGBuiltin.cpp10104 auto *VectorTy = getSVEVectorForElementType(MemEltTy); in EmitSVEPrefetchLoad() local
10105 auto *MemoryTy = llvm::ScalableVectorType::get(MemEltTy, VectorTy); in EmitSVEPrefetchLoad()
10131 auto VectorTy = cast<llvm::ScalableVectorType>(ReturnTy); in EmitSVEMaskedLoad() local
10144 MemoryTy = llvm::ScalableVectorType::get(MemEltTy, VectorTy); in EmitSVEMaskedLoad()
10156 Function *F = CGM.getIntrinsic(IntrinsicID, IsQuadLoad ? VectorTy : MemoryTy); in EmitSVEMaskedLoad()
10165 return IsZExtReturn ? Builder.CreateZExt(Load, VectorTy) in EmitSVEMaskedLoad()
10166 : Builder.CreateSExt(Load, VectorTy); in EmitSVEMaskedLoad()
10178 auto VectorTy = cast<llvm::ScalableVectorType>(Ops.back()->getType()); in EmitSVEMaskedStore() local
10179 auto MemoryTy = llvm::ScalableVectorType::get(MemEltTy, VectorTy); in EmitSVEMaskedStore()
10208 CGM.getIntrinsic(IntrinsicID, IsQuadStore ? VectorTy : MemoryTy); in EmitSVEMaskedStore()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprMember.cpp1736 QualType VectorTy = S.Context.getExtVectorType(BaseType, 1); in LookupMemberExpr() local
1737 BaseExpr = S.ImpCastExprToType(BaseExpr.get(), VectorTy, CK_VectorSplat, in LookupMemberExpr()
H A DSemaExpr.cpp7575 bool Sema::CheckVectorCast(SourceRange R, QualType VectorTy, QualType Ty, in CheckVectorCast() argument
7577 assert(VectorTy->isVectorType() && "Not a vector type!"); in CheckVectorCast()
7580 if (!areLaxCompatibleVectorTypes(Ty, VectorTy)) in CheckVectorCast()
7585 << VectorTy << Ty << R; in CheckVectorCast()
7589 << VectorTy << Ty << R; in CheckVectorCast()
7595 ExprResult Sema::prepareVectorSplat(QualType VectorTy, Expr *SplattedExpr) { in prepareVectorSplat() argument
7596 QualType DestElemTy = VectorTy->castAs<VectorType>()->getElementType(); in prepareVectorSplat()
7605 if (VectorTy->isExtVectorType() && SplattedExpr->getType()->isBooleanType()) { in prepareVectorSplat()
8205 QualType VectorTy = S.Context.getExtVectorType(ResTy, NumElements); in OpenCLConvertScalarsToVectors() local
8222 LHS = S.ImpCastExprToType(LHS.get(), VectorTy, CK_VectorSplat); in OpenCLConvertScalarsToVectors()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.h686 bool canCombineStoreAndExtract(Type *VectorTy, Value *Idx,
H A DARMISelLowering.cpp21468 bool ARMTargetLowering::canCombineStoreAndExtract(Type *VectorTy, Value *Idx, in canCombineStoreAndExtract() argument
21478 if (VectorTy->isFPOrFPVectorTy()) in canCombineStoreAndExtract()
21486 assert(VectorTy->isVectorTy() && "VectorTy is not a vector type"); in canCombineStoreAndExtract()
21487 unsigned BitWidth = VectorTy->getPrimitiveSizeInBits().getFixedValue(); in canCombineStoreAndExtract()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h806 shallExtractConstSplatVectorElementToStore(Type *VectorTy,
H A DPPCISelLowering.cpp1651 Type *VectorTy, unsigned ElemSizeInBits, unsigned &Index) const { in shallExtractConstSplatVectorElementToStore() argument
1655 if (auto *VTy = dyn_cast<VectorType>(VectorTy)) { in shallExtractConstSplatVectorElementToStore()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp2040 VectorType *VectorTy = cast<VectorType>(InputVal->getType()); in LowerTranspose() local
2052 FixedVectorType::get(VectorTy->getElementType(), NewNumElts)); in LowerTranspose()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h935 virtual bool canCombineStoreAndExtract(Type *VectorTy, Value *Idx, in canCombineStoreAndExtract() argument
945 Type *VectorTy, unsigned ElemSizeInBits, unsigned &Index) const { in shallExtractConstSplatVectorElementToStore() argument
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h1668 unsigned LLVMGetVectorSize(LLVMTypeRef VectorTy);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp916 unsigned LLVMGetVectorSize(LLVMTypeRef VectorTy) { in LLVMGetVectorSize() argument
917 return unwrap<VectorType>(VectorTy)->getElementCount().getKnownMinValue(); in LLVMGetVectorSize()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h7485 bool CheckVectorCast(SourceRange R, QualType VectorTy, QualType Ty,
7490 ExprResult prepareVectorSplat(QualType VectorTy, Expr *SplattedExpr);