Searched refs:ElementCount (Results 1 - 25 of 106) sorted by relevance

12345

/openbsd-current/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationPlanner.h190 ElementCount Width;
200 ElementCount MinProfitableTripCount;
202 VectorizationFactor(ElementCount Width, InstructionCost Cost,
208 return {ElementCount::getFixed(1), 0, 0};
226 ElementCount FixedVF;
227 ElementCount ScalableVF;
230 : FixedVF(ElementCount::getFixed(0)),
231 ScalableVF(ElementCount::getScalable(0)) {}
232 FixedScalableVFPair(const ElementCount &Max) : FixedScalableVFPair() {
235 FixedScalableVFPair(const ElementCount
[all...]
H A DVPlanTransforms.h76 static void optimizeForVFAndUF(VPlan &Plan, ElementCount BestVF,
H A DLoopVectorize.cpp451 OptimizationRemarkEmitter *ORE, ElementCount VecWidth,
452 ElementCount MinProfitableTripCount,
675 ElementCount VF;
677 ElementCount MinProfitableTripCount;
758 ElementCount::getFixed(1),
759 ElementCount::getFixed(1), UnrollFactor, LVL, CM,
770 ElementCount MainLoopVF = ElementCount::getFixed(0);
772 ElementCount EpilogueVF = ElementCount
1445 isLegalGatherOrScatter(Value *V, ElementCount VF = ElementCount::getFixed(1)) argument
[all...]
H A DLoopVectorizationLegality.cpp148 getWidth() == ElementCount::getFixed(1) && getInterleave() == 1;
232 if (getWidth() == ElementCount::getFixed(1))
244 ElementCount EC = getWidth();
641 ElementCount WidestFixedVF, WidestScalableVF;
643 for (ElementCount VF = ElementCount::getFixed(2);
644 ElementCount::isKnownLE(VF, WidestFixedVF); VF *= 2)
646 for (ElementCount VF = ElementCount::getScalable(1);
647 ElementCount
[all...]
/openbsd-current/gnu/llvm/llvm/include/llvm/IR/
H A DVectorBuilder.h47 ElementCount StaticVectorLength;
65 StaticVectorLength(ElementCount::getFixed(0)) {}
82 StaticVectorLength = ElementCount::getFixed(NewFixedVL);
85 // TODO: setStaticVL(ElementCount) for scalable types.
H A DIntrinsics.h149 ElementCount Vector_Width;
205 Result.Vector_Width = ElementCount::get(Width, IsScalable);
/openbsd-current/gnu/llvm/llvm/include/llvm/Support/
H A DLowLevelTypeImpl.h44 ElementCount::getFixed(0), SizeInBits,
52 ElementCount::getFixed(0), SizeInBits, AddressSpace};
56 static constexpr LLT vector(ElementCount EC, unsigned ScalarSizeInBits) {
63 static constexpr LLT vector(ElementCount EC, LLT ScalarTy) {
78 return vector(ElementCount::getFixed(NumElements), ScalarSizeInBits);
84 return vector(ElementCount::getFixed(NumElements), ScalarTy);
91 return vector(ElementCount::getScalable(MinNumElements), ScalarSizeInBits);
97 return vector(ElementCount::getScalable(MinNumElements), ScalarTy);
100 static constexpr LLT scalarOrVector(ElementCount EC, LLT ScalarTy) {
104 static constexpr LLT scalarOrVector(ElementCount E
[all...]
H A DTypeSize.h90 // Base class for ElementCount and TypeSize below.
276 // - ElementCount::getFixed(1) : A scalar value.
277 // - ElementCount::getFixed(2) : A vector type holding 2 values.
278 // - ElementCount::getScalable(4) : A scalable vector type holding 4 values.
279 class ElementCount class in namespace:llvm
280 : public details::FixedOrScalableQuantity<ElementCount, unsigned> {
281 constexpr ElementCount(ScalarTy MinVal, bool Scalable) function in class:llvm::ElementCount
284 constexpr ElementCount( function in class:llvm::ElementCount
285 const FixedOrScalableQuantity<ElementCount, unsigned> &V)
289 constexpr ElementCount() function in class:llvm::ElementCount
[all...]
/openbsd-current/gnu/llvm/llvm/lib/Transforms/Utils/
H A DInjectTLIMappings.cpp42 static void addVariantDeclaration(CallInst &CI, const ElementCount &VF,
92 auto AddVariantDecl = [&](const ElementCount &VF) {
109 ElementCount WidestFixedVF, WidestScalableVF;
112 for (ElementCount VF = ElementCount::getFixed(2);
113 ElementCount::isKnownLE(VF, WidestFixedVF); VF *= 2)
/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DReturnPointerRangeChecker.cpp63 DefinedOrUnknownSVal ElementCount = getDynamicElementCount(
68 if (Idx == ElementCount)
72 std::tie(StInBound, StOutBound) = state->assumeInBoundDual(Idx, ElementCount);
92 const auto ConcreteElementCount = ElementCount.getAs<nonloc::ConcreteInt>();
H A DArrayBoundChecker.cpp58 DefinedOrUnknownSVal ElementCount = getDynamicElementCount( local
62 std::tie(StInBound, StOutBound) = state->assumeInBoundDual(Idx, ElementCount);
H A DUndefResultChecker.cpp54 DefinedOrUnknownSVal ElementCount = getDynamicElementCount( local
57 std::tie(StInBound, StOutBound) = state->assumeInBoundDual(Idx, ElementCount);
/openbsd-current/gnu/llvm/llvm/include/llvm/Analysis/
H A DTensorSpec.h76 size_t getElementCount() const { return ElementCount; }
80 size_t getTotalTensorBufferSize() const { return ElementCount * ElementSize; }
102 size_t ElementCount = 0; member in class:llvm::final
H A DTargetLibraryInfo.h33 ElementCount VectorizationFactor;
163 bool isFunctionVectorizable(StringRef F, const ElementCount &VF) const {
173 StringRef getVectorizedFunction(StringRef F, const ElementCount &VF) const;
220 void getWidestVF(StringRef ScalarF, ElementCount &FixedVF,
221 ElementCount &Scalable) const;
343 bool isFunctionVectorizable(StringRef F, const ElementCount &VF) const {
349 StringRef getVectorizedFunction(StringRef F, const ElementCount &VF) const {
525 void getWidestVF(StringRef ScalarF, ElementCount &FixedVF,
526 ElementCount &ScalableVF) const {
H A DVectorUtils.h83 ElementCount VF; // Vectorization factor.
100 return VFShape::get(CI, ElementCount::getFixed(1),
108 static VFShape get(const CallInst &CI, ElementCount EC, bool HasGlobalPred) {
188 unsigned numArgs, ElementCount VF);
300 inline Type *ToVectorTy(Type *Scalar, ElementCount EC) {
307 return ToVectorTy(Scalar, ElementCount::getFixed(VF));
/openbsd-current/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DLegalizeMutations.cpp51 ElementCount NewEltCount =
52 NewTy.isVector() ? NewTy.getElementCount() : ElementCount::getFixed(1);
61 ElementCount NewEltCount = NewEltTy.isVector() ? NewEltTy.getElementCount()
62 : ElementCount::getFixed(1);
H A DLegalizerInfo.cpp132 const ElementCount OldElts = OldTy.isVector() ?
133 OldTy.getElementCount() : ElementCount::getFixed(1);
137 if (ElementCount::isKnownGE(NewTy.getElementCount(), OldElts))
141 if (ElementCount::isKnownLE(NewTy.getElementCount(), OldElts))
/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DDynamicExtent.cpp53 SVal ElementCount = local
56 return ElementCount.castAs<DefinedOrUnknownSVal>();
/openbsd-current/gnu/llvm/llvm/lib/CodeGen/
H A DReplaceWithVeclib.cpp106 ElementCount VF = ElementCount::getFixed(0);
123 ElementCount NumElements = VectorArgTy->getElementCount();
/openbsd-current/gnu/llvm/llvm/include/llvm/CodeGen/
H A DValueTypes.h83 static EVT getVectorVT(LLVMContext &Context, EVT VT, ElementCount EC) {
321 // Given a (possibly scalable) vector type, return the ElementCount
322 ElementCount getVectorElementCount() const {
446 ElementCount NElts = getVectorElementCount();
448 NElts = ElementCount::get(NewMinCount, NElts.isScalable());
498 ElementCount EC);
515 ElementCount getExtendedVectorElementCount() const LLVM_READONLY;
/openbsd-current/gnu/llvm/llvm/lib/Support/
H A DLowLevelType.cpp28 ElementCount::getFixed(0), VT.getSizeInBits(), /*AddressSpace=*/0);
/openbsd-current/gnu/llvm/llvm/lib/Analysis/
H A DVFABIDemangling.cpp291 const ElementCount EC = VecTys[0]->getElementCount();
300 // elements, i.e. same ElementCount.Min.
301 ElementCount getECFromSignature(FunctionType *Signature) {
311 return ElementCount::getFixed(/*Min=*/1);
433 // terms of VectorizationFactor or ElementCount. In particular, we
442 const ElementCount EC = getECFromSignature(F->getFunctionType());
454 const VFShape Shape({ElementCount::get(VF, IsScalable), Parameters});
H A DTensorSpec.cpp63 ElementCount(std::accumulate(Shape.begin(), Shape.end(), 1,
/openbsd-current/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DWarnMissedTransforms.cpp51 std::optional<ElementCount> VectorizeWidth =
/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIChecker.cpp164 DefinedOrUnknownSVal ElementCount = getDynamicElementCount( local
168 ElementCount.castAs<nonloc::ConcreteInt>().getValue();

Completed in 398 milliseconds

12345