| /llvm-project-15.0.7/mlir/unittests/Support/ |
| H A D | MathExtrasTest.cpp | 16 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 D | MPIntTest.cpp | 141 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 D | SlowMPInt.h | 67 friend SlowMPInt ceilDiv(const SlowMPInt &lhs, const SlowMPInt &rhs); 95 SlowMPInt ceilDiv(const SlowMPInt &lhs, const SlowMPInt &rhs);
|
| H A D | MPInt.h | 33 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 D | Fraction.h | 65 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 D | MathExtras.h | 23 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 D | LoopAnalysis.cpp | 47 *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 D | AffineExpr.h | 166 AffineExpr ceilDiv(uint64_t v) const; 167 AffineExpr ceilDiv(AffineExpr other) const;
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | AffineExpr.cpp | 54 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 D | AffineMap.cpp | 58 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 D | HoistPadding.cpp | 365 (ub - lb).ceilDiv(step), ValueRange{forOp.getLowerBound(), ubVal, in getPackedTensorSizes() 393 return b.createOrFold<AffineApplyOp>(loc, (iv - lb).ceilDiv(step), in buildLoopIterationCount()
|
| H A D | Tiling.cpp | 286 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 D | VectorUtils.cpp | 60 sliceDimCounts[r] = ceilDiv(shape[r], sizes[r]); in computeStrides()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/ |
| H A D | MemRefBuilder.cpp | 348 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 D | SlowMPInt.cpp | 201 SlowMPInt detail::ceilDiv(const SlowMPInt &lhs, const SlowMPInt &rhs) { in ceilDiv() function in detail
|
| H A D | IntegerRelation.cpp | 1476 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 D | Utils.cpp | 343 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 D | AffineParser.cpp | 131 return lhs.ceilDiv(rhs); in getAffineBinaryOpExpr()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/ |
| H A D | LoopPipelining.cpp | 101 int64_t numIteration = ceilDiv(ub - lb, step); in initializeLoopInfo()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SCFToGPU/ |
| H A D | SCFToGPU.cpp | 495 .ceilDiv(rewriter.getAffineSymbolExpr(1)))); in processParallelLoop()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Affine/Utils/ |
| H A D | Utils.cpp | 517 AffineExpr ubExpr = ranges.getResult(i).ceilDiv(step); in normalizeAffineParallel() 615 (origUbExprs[i] - origLbExprs[0]).ceilDiv(origLoopStep)); in normalizeAffineFor()
|
| H A D | LoopUtils.cpp | 704 (origUpperBoundExpr - origLowerBoundExpr).ceilDiv(tileParameter)); in setInterTileBoundsParametric() 727 (origUpperBoundExpr - origLowerBoundExpr).ceilDiv(tileParameter)); in setInterTileBoundsParametric()
|
| /llvm-project-15.0.7/mlir/lib/Bindings/Python/ |
| H A D | IRModule.h | 960 PyAffineExpr ceilDiv(const PyAffineExpr &other) const;
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/ |
| H A D | VectorUnrollDistribute.cpp | 65 sliceDimCounts[r] = ceilDiv(originalShape[r], targetShape[r]); in DecomposeShapeIterator()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Linalg/TransformOps/ |
| H A D | LinalgTransformOps.td | 671 dynamically via `ceilDiv(dimSize[i], num_threads[i])`.
|