Home
last modified time | relevance | path

Searched refs:ceilDiv (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project-15.0.7/mlir/unittests/Support/
H A DMathExtrasTest.cpp16 EXPECT_THAT(ceilDiv(14, 3), Eq(5)); in TEST()
17 EXPECT_THAT(ceilDiv(14, -3), Eq(-4)); in TEST()
18 EXPECT_THAT(ceilDiv(-14, -3), Eq(5)); in TEST()
19 EXPECT_THAT(ceilDiv(-14, 3), Eq(-4)); in TEST()
20 EXPECT_THAT(ceilDiv(0, 3), Eq(0)); in TEST()
21 EXPECT_THAT(ceilDiv(0, -3), Eq(0)); in TEST()
/llvm-project-15.0.7/mlir/unittests/Analysis/Presburger/
H A DMPIntTest.cpp141 EXPECT_EQ(ceilDiv(min, -one), -min); in TYPED_TEST()
169 EXPECT_EQ(ceilDiv(3 * y, three), y); in TYPED_TEST()
171 EXPECT_EQ(ceilDiv(3 * y - 1, three), y); in TYPED_TEST()
173 EXPECT_EQ(ceilDiv(3 * y - 2, three), y); in TYPED_TEST()
180 EXPECT_EQ(ceilDiv(3 * y, y), 3); in TYPED_TEST()
182 EXPECT_EQ(ceilDiv(3 * y - 1, y), 3); in TYPED_TEST()
184 EXPECT_EQ(ceilDiv(3 * y - 2, y), 3); in TYPED_TEST()
/llvm-project-15.0.7/mlir/include/mlir/Analysis/Presburger/
H A DSlowMPInt.h67 friend SlowMPInt ceilDiv(const SlowMPInt &lhs, const SlowMPInt &rhs);
95 SlowMPInt ceilDiv(const SlowMPInt &lhs, const SlowMPInt &rhs);
H A DMPInt.h33 using ::mlir::ceilDiv;
207 friend MPInt ceilDiv(const MPInt &lhs, const MPInt &rhs);
373 LLVM_ATTRIBUTE_ALWAYS_INLINE MPInt ceilDiv(const MPInt &lhs, const MPInt &rhs) { in ceilDiv() function
377 return MPInt(ceilDiv(lhs.getSmall(), rhs.getSmall())); in ceilDiv()
379 return MPInt(ceilDiv(detail::SlowMPInt(lhs), detail::SlowMPInt(rhs))); in ceilDiv()
H A DFraction.h65 inline int64_t ceil(Fraction f) { return ceilDiv(f.num, f.den); } in ceil()
/llvm-project-15.0.7/mlir/include/mlir/Support/
H A DMathExtras.h23 inline int64_t ceilDiv(int64_t lhs, int64_t rhs) { in ceilDiv() function
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Analysis/
H A DLoopAnalysis.cpp47 *tripCountMap = AffineMap::getConstantMap(ceilDiv(loopSpan, step), context); in getTripCountMapAndOperands()
73 tripCountValueMap.getResult(i).ceilDiv(step)); in getTripCountMapAndOperands()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DAffineExpr.h166 AffineExpr ceilDiv(uint64_t v) const;
167 AffineExpr ceilDiv(AffineExpr other) const;
/llvm-project-15.0.7/mlir/lib/IR/
H A DAffineExpr.cpp54 return lhs.ceilDiv(rhs); in getAffineBinaryOpExpr()
787 ceilDiv(lhsConst.getValue(), rhsConst.getValue()), lhs.getContext()); in simplifyCeilDiv()
808 AffineExpr AffineExpr::ceilDiv(uint64_t v) const { in ceilDiv() function in AffineExpr
809 return ceilDiv(getAffineConstantExpr(v, getContext())); in ceilDiv()
811 AffineExpr AffineExpr::ceilDiv(AffineExpr other) const { in ceilDiv() function in AffineExpr
1301 AffineExpr divExpr = isCeil ? a.ceilDiv(b) : a.floorDiv(b); in visitDivExpr()
1337 AffineExpr divExpr = isCeil ? a.ceilDiv(b) : a.floorDiv(b); in visitDivExpr()
H A DAffineMap.cpp58 expr, [](int64_t lhs, int64_t rhs) { return ceilDiv(lhs, rhs); }); in constantFoldImpl()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DHoistPadding.cpp365 (ub - lb).ceilDiv(step), ValueRange{forOp.getLowerBound(), ubVal, in getPackedTensorSizes()
393 return b.createOrFold<AffineApplyOp>(loc, (iv - lb).ceilDiv(step), in buildLoopIterationCount()
H A DTiling.cpp286 b, loc, M.ceilDiv(N), in tileToForeachThreadOpImpl()
356 AffineExpr divExpr = s0.ceilDiv(s1); in tileToForeachThreadOpUsingTileSizes()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Utils/
H A DVectorUtils.cpp60 sliceDimCounts[r] = ceilDiv(shape[r], sizes[r]); in computeStrides()
/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DMemRefBuilder.cpp348 builder, loc, indexType, ceilDiv(typeConverter.getPointerBitwidth(), 8)); in computeSizes()
351 ceilDiv(typeConverter.getIndexTypeBitwidth(), 8)); in computeSizes()
/llvm-project-15.0.7/mlir/lib/Analysis/Presburger/
H A DSlowMPInt.cpp201 SlowMPInt detail::ceilDiv(const SlowMPInt &lhs, const SlowMPInt &rhs) { in ceilDiv() function in detail
H A DIntegerRelation.cpp1476 int64_t diff = ceilDiv(atIneq(ubPos, getNumCols() - 1) + in getConstantBoundOnDimSize()
1564 isLower ? mlir::ceilDiv(-atIneq(r, getNumCols() - 1), atIneq(r, 0)) in computeConstantLowerOrUpperBound()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Utils/
H A DUtils.cpp343 mlir::ceilDiv(ubCstOp.value() - lbCstOp.value(), stepCstOp.value()); in promoteIfSingleIteration()
446 int64_t tripCount = mlir::ceilDiv(ubCst - lbCst, stepCst); in loopUnrollByFactor()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DAffineParser.cpp131 return lhs.ceilDiv(rhs); in getAffineBinaryOpExpr()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/
H A DLoopPipelining.cpp101 int64_t numIteration = ceilDiv(ub - lb, step); in initializeLoopInfo()
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToGPU/
H A DSCFToGPU.cpp495 .ceilDiv(rewriter.getAffineSymbolExpr(1)))); in processParallelLoop()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Utils/
H A DUtils.cpp517 AffineExpr ubExpr = ranges.getResult(i).ceilDiv(step); in normalizeAffineParallel()
615 (origUbExprs[i] - origLbExprs[0]).ceilDiv(origLoopStep)); in normalizeAffineFor()
H A DLoopUtils.cpp704 (origUpperBoundExpr - origLowerBoundExpr).ceilDiv(tileParameter)); in setInterTileBoundsParametric()
727 (origUpperBoundExpr - origLowerBoundExpr).ceilDiv(tileParameter)); in setInterTileBoundsParametric()
/llvm-project-15.0.7/mlir/lib/Bindings/Python/
H A DIRModule.h960 PyAffineExpr ceilDiv(const PyAffineExpr &other) const;
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorUnrollDistribute.cpp65 sliceDimCounts[r] = ceilDiv(originalShape[r], targetShape[r]); in DecomposeShapeIterator()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Linalg/TransformOps/
H A DLinalgTransformOps.td671 dynamically via `ceilDiv(dimSize[i], num_threads[i])`.

12