Home
last modified time | relevance | path

Searched refs:VectorTy (Results 1 – 24 of 24) 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.h74 template<class PHINodeTy, class VectorTy>
75 void getEquivalentPHIs(PHINodeTy &PN, VectorTy &PHIList) { in getEquivalentPHIs()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp496 Instruction *Inst, const DataLayout &DL, FixedVectorType *VectorTy, in promoteAllocaUserToVector() argument
514 Builder.CreateLoad(VectorTy, PoisonValue::get(Builder.getPtrTy()), in promoteAllocaUserToVector()
535 Type *VecEltTy = VectorTy->getElementType(); in promoteAllocaUserToVector()
612 else if (VectorTy->isPtrOrPtrVectorTy()) in promoteAllocaUserToVector()
613 Val = CreateTempPtrIntCast(Val, VectorTy); in promoteAllocaUserToVector()
614 return Builder.CreateBitOrPointerCast(Val, VectorTy); in promoteAllocaUserToVector()
623 const unsigned NumVecElts = VectorTy->getNumElements(); in promoteAllocaUserToVector()
660 for (unsigned Idx = 0; Idx < VectorTy->getNumElements(); ++Idx) { in promoteAllocaUserToVector()
662 Mask.push_back(SrcBegin < VectorTy->getNumElements() in promoteAllocaUserToVector()
691 return Builder.CreateVectorSplat(VectorTy->getElementCount(), Elt); in promoteAllocaUserToVector()
[all …]
H A DAMDGPULegalizerInfo.cpp608 const LLT VectorTy = getBufferRsrcRegisterType(PointerTy); in castBufferRsrcFromV4I32() local
614 Register VectorReg = MRI.createGenericVirtualRegister(VectorTy); in castBufferRsrcFromV4I32()
622 return VectorTy; in castBufferRsrcFromV4I32()
624 Register BitcastReg = MRI.createGenericVirtualRegister(VectorTy); in castBufferRsrcFromV4I32()
630 return VectorTy; in castBufferRsrcFromV4I32()
642 const LLT VectorTy = getBufferRsrcRegisterType(PointerTy); in castBufferRsrcToV4I32() local
651 return B.buildBuildVector(VectorTy, PointerParts).getReg(0); in castBufferRsrcToV4I32()
654 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()
166 LLT VectorTy = MRI.getType(Vector); in matchExtractVectorElementWithBuildVector() local
169 EVT Ty(getMVTForLLT(VectorTy)); in matchExtractVectorElementWithBuildVector()
220 LLT VectorTy = MRI.getType(Vector); in matchExtractVectorElementWithBuildVectorTrunc() local
223 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/Transforms/Vectorize/
H A DLoopVectorize.cpp1466 Type *VectorTy) const;
4183 auto WillGenerateTargetVectors = [&TTI, VF](Type *VectorTy) { in willGenerateVectors() argument
4184 unsigned NumLegalParts = TTI.getNumberOfParts(VectorTy); in willGenerateVectors()
5028 for (Type *VectorTy : getContainedTypes(WideTy)) { in computePredInstDiscount()
5030 cast<VectorType>(VectorTy), APInt::getAllOnes(VF.getFixedValue()), in computePredInstDiscount()
5050 for (Type *VectorTy : getContainedTypes(WideTy)) { in computePredInstDiscount()
5052 cast<VectorType>(VectorTy), in computePredInstDiscount()
5214 auto *VectorTy = cast<VectorType>(toVectorTy(ValTy, VF)); in getConsecutiveMemOpCost() local
5224 Cost += TTI.getMaskedMemoryOpCost(I->getOpcode(), VectorTy, Alignment, AS, in getConsecutiveMemOpCost()
5228 Cost += TTI.getMemoryOpCost(I->getOpcode(), VectorTy, Alignment, AS, in getConsecutiveMemOpCost()
[all …]
H A DVPlanRecipes.cpp947 Type *VectorTy = toVectorTy(Ctx.Types.inferScalarType(this), VF); in computeCost() local
950 cast<VectorType>(VectorTy), in computeCost()
951 cast<VectorType>(VectorTy), Mask, in computeCost()
1721 Type *VectorTy = toVectorTy(Ctx.Types.inferScalarType(this), VF); in computeCost() local
1739 IsLogicalOr ? Instruction::Or : Instruction::And, VectorTy, in computeCost()
1751 Instruction::Select, VectorTy, CondTy, Pred, Ctx.CostKind, in computeCost()
1947 Type *VectorTy = toVectorTy(Ctx.Types.inferScalarType(this), VF); in computeCost() local
1949 Opcode, VectorTy, Ctx.CostKind, in computeCost()
1982 Type *VectorTy = toVectorTy(Ctx.Types.inferScalarType(this), VF); in computeCost() local
1989 Opcode, VectorTy, Ctx.CostKind, in computeCost()
[all …]
H A DSLPVectorizer.cpp22961 FixedVectorType *VectorTy = R.getReductionType(); in getReductionCost() local
23020 VectorTy, in getReductionCost()
23029 Type *RedTy = VectorTy->getElementType(); in getReductionCost()
23033 VectorCost = TTI->getArithmeticReductionCost(RdxOpcode, VectorTy, in getReductionCost()
23042 Type *RedTy = VectorTy->getElementType(); in getReductionCost()
23053 Opcode, VectorTy, RVecTy, TTI::CastContextHint::None, CostKind); in getReductionCost()
23073 VectorCost = TTI->getMinMaxReductionCost(Id, VectorTy, FMF, CostKind); in getReductionCost()
23077 Type *RedTy = VectorTy->getElementType(); in getReductionCost()
23088 Opcode, VectorTy, RVecTy, TTI::CastContextHint::None, CostKind); in getReductionCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp299 FixedVectorType *VectorTy = dyn_cast<FixedVectorType>(Ty); in lowerFunnelShifts() local
300 Type *IntTy = VectorTy ? VectorTy->getElementType() : Ty; in lowerFunnelShifts()
304 VectorTy in lowerFunnelShifts()
305 ? IRB.CreateVectorSplat(VectorTy->getNumElements(), BitWidthConstant) in lowerFunnelShifts()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h340 for (auto [Idx, VectorTy] : enumerate(getContainedTypes(RetTy))) {
344 Instruction::Load, VectorTy,
345 thisT()->getDataLayout().getABITypeAlign(VectorTy), 0, CostKind);
2155 for (Type *VectorTy : getContainedTypes(RetTy)) { in getIntrinsicInstrCost()
2157 cast<VectorType>(VectorTy), in getIntrinsicInstrCost()
H A DTargetLowering.h965 virtual bool canCombineStoreAndExtract(Type *VectorTy, Value *Idx, in canCombineStoreAndExtract() argument
975 Type *VectorTy, unsigned ElemSizeInBits, unsigned &Index) const { in shallExtractConstSplatVectorElementToStore() argument
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprMember.cpp1671 QualType VectorTy = S.Context.getExtVectorType(BaseType, 1); in LookupMemberExpr() local
1672 BaseExpr = S.ImpCastExprToType(BaseExpr.get(), VectorTy, CK_VectorSplat, in LookupMemberExpr()
H A DSemaExpr.cpp7731 bool Sema::CheckVectorCast(SourceRange R, QualType VectorTy, QualType Ty, in CheckVectorCast() argument
7733 assert(VectorTy->isVectorType() && "Not a vector type!"); in CheckVectorCast()
7736 if (!areLaxCompatibleVectorTypes(Ty, VectorTy)) in CheckVectorCast()
7741 << VectorTy << Ty << R; in CheckVectorCast()
7745 << VectorTy << Ty << R; in CheckVectorCast()
7751 ExprResult Sema::prepareVectorSplat(QualType VectorTy, Expr *SplattedExpr) { in prepareVectorSplat() argument
7752 QualType DestElemTy = VectorTy->castAs<VectorType>()->getElementType(); in prepareVectorSplat()
7761 if (VectorTy->isExtVectorType() && SplattedExpr->getType()->isBooleanType()) { in prepareVectorSplat()
8371 QualType VectorTy = S.Context.getExtVectorType(ResTy, NumElements); in OpenCLConvertScalarsToVectors() local
8388 LHS = S.ImpCastExprToType(LHS.get(), VectorTy, CK_VectorSplat); in OpenCLConvertScalarsToVectors()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp180 auto *VectorTy = llvm::FixedVectorType::get(ArrayTy->getElementType(), in CreateMemTemp() local
183 Result = Address(Result.getPointer(), VectorTy, Result.getAlignment(), in CreateMemTemp()
2142 auto *VectorTy = llvm::FixedVectorType::get(ArrayTy->getElementType(), in MaybeConvertMatrixAddress() local
2145 return Addr.withElementType(VectorTy); in MaybeConvertMatrixAddress()
2147 auto *VectorTy = dyn_cast<llvm::VectorType>(Addr.getElementType()); in MaybeConvertMatrixAddress() local
2148 if (VectorTy && !IsVector) { in MaybeConvertMatrixAddress()
2150 VectorTy->getElementType(), in MaybeConvertMatrixAddress()
2151 cast<llvm::FixedVectorType>(VectorTy)->getNumElements()); in MaybeConvertMatrixAddress()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.h707 bool canCombineStoreAndExtract(Type *VectorTy, Value *Idx,
H A DARMISelLowering.cpp21398 bool ARMTargetLowering::canCombineStoreAndExtract(Type *VectorTy, Value *Idx, in canCombineStoreAndExtract() argument
21408 if (VectorTy->isFPOrFPVectorTy()) in canCombineStoreAndExtract()
21416 assert(VectorTy->isVectorTy() && "VectorTy is not a vector type"); in canCombineStoreAndExtract()
21417 unsigned BitWidth = VectorTy->getPrimitiveSizeInBits().getFixedValue(); in canCombineStoreAndExtract()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/
H A DARM.cpp4164 auto *VectorTy = getSVEVectorForElementType(MemEltTy); in EmitSVEPrefetchLoad() local
4165 auto *MemoryTy = llvm::ScalableVectorType::get(MemEltTy, VectorTy); in EmitSVEPrefetchLoad()
4199 auto VectorTy = cast<llvm::ScalableVectorType>(ReturnTy); in EmitSVEMaskedLoad() local
4212 MemoryTy = llvm::ScalableVectorType::get(MemEltTy, VectorTy); in EmitSVEMaskedLoad()
4224 Function *F = CGM.getIntrinsic(IntrinsicID, IsQuadLoad ? VectorTy : MemoryTy); in EmitSVEMaskedLoad()
4233 return IsZExtReturn ? Builder.CreateZExt(Load, VectorTy) in EmitSVEMaskedLoad()
4234 : Builder.CreateSExt(Load, VectorTy); in EmitSVEMaskedLoad()
4254 auto VectorTy = cast<llvm::ScalableVectorType>(Ops.back()->getType()); in EmitSVEMaskedStore() local
4255 auto MemoryTy = llvm::ScalableVectorType::get(MemEltTy, VectorTy); in EmitSVEMaskedStore()
4284 CGM.getIntrinsic(IntrinsicID, IsQuadStore ? VectorTy : MemoryTy); in EmitSVEMaskedStore()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h819 shallExtractConstSplatVectorElementToStore(Type *VectorTy,
H A DPPCISelLowering.cpp1649 Type *VectorTy, unsigned ElemSizeInBits, unsigned &Index) const { in shallExtractConstSplatVectorElementToStore() argument
1653 if (auto *VTy = dyn_cast<VectorType>(VectorTy)) { in shallExtractConstSplatVectorElementToStore()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp2224 FixedVectorType *VectorTy = cast<FixedVectorType>(InputVal->getType()); in LowerTranspose() local
2236 FixedVectorType::get(VectorTy->getElementType(), NewNumElts)); in LowerTranspose()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h1725 LLVM_C_ABI unsigned LLVMGetVectorSize(LLVMTypeRef VectorTy);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp915 unsigned LLVMGetVectorSize(LLVMTypeRef VectorTy) { in LLVMGetVectorSize() argument
916 return unwrap<VectorType>(VectorTy)->getElementCount().getKnownMinValue(); in LLVMGetVectorSize()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h7895 bool CheckVectorCast(SourceRange R, QualType VectorTy, QualType Ty,
7900 ExprResult prepareVectorSplat(QualType VectorTy, Expr *SplattedExpr);