Home
last modified time | relevance | path

Searched refs:SDBMConstantExpr (Results 1 – 5 of 5) sorted by relevance

/external/llvm-project/mlir/lib/Dialect/SDBM/
DSDBMExpr.cpp186 void visitConstant(SDBMConstantExpr expr) { prn << expr.getValue(); } in print()
209 SDBMExpr visitConstant(SDBMConstantExpr expr) { in visitConstant()
210 return SDBMConstantExpr::get(expr.getDialect(), -expr.getValue()); in visitConstant()
223 auto cst = visitConstant(sum.getRHS()).cast<SDBMConstantExpr>(); in visitDiff()
236 SDBMSumExpr SDBMSumExpr::get(SDBMTermExpr lhs, SDBMConstantExpr rhs) { in get()
243 rhs = SDBMConstantExpr::get(rhs.getDialect(), in get()
256 SDBMConstantExpr SDBMSumExpr::getRHS() const { in getRHS()
292 AffineExpr visitConstant(SDBMConstantExpr expr) { in getAsAffineExpr()
316 SDBMConstantExpr::get(dialect, constant)); in addConstantAndSink()
325 SDBMConstantExpr::get(dialect, negated ? -constant : constant))); in addConstantAndSink()
[all …]
DSDBMExprDetail.h36 using KeyTy = std::tuple<unsigned, SDBMDirectExpr, SDBMConstantExpr>;
54 SDBMConstantExpr rhs;
DSDBM.cpp142 SDBMBuilderResult visitConstant(SDBMConstantExpr expr) { in visitConstant()
416 SDBMConstantExpr::get(expr.getDialect(), -selfDifference.getValue()); in convertDBMDiagonalElement()
442 SDBMConstantExpr::get(dialect, -difference.getValue())); in getSDBMExpressions()
/external/llvm-project/mlir/include/mlir/Dialect/SDBM/
DSDBMExpr.h37 class SDBMConstantExpr; variable
155 class SDBMConstantExpr : public SDBMExpr {
163 static SDBMConstantExpr get(SDBMDialect *dialect, int64_t value);
239 static SDBMSumExpr get(SDBMTermExpr lhs, SDBMConstantExpr rhs);
247 SDBMConstantExpr getRHS() const;
283 static SDBMStripeExpr get(SDBMDirectExpr var, SDBMConstantExpr stripeFactor);
286 SDBMConstantExpr getStripeFactor() const;
371 return derived->visitConstant(expr.cast<SDBMConstantExpr>()); in visit()
393 void visitConstant(SDBMConstantExpr) {} in visitConstant() argument
472 return lhs + SDBMConstantExpr::get(lhs.getDialect(), rhs);
[all …]
/external/llvm-project/mlir/unittests/SDBM/
DSDBMTest.cpp54 auto constant = SDBMConstantExpr::get(dialect(), 2) + 42; in TEST()
55 auto constantExpr = constant.dyn_cast<SDBMConstantExpr>(); in TEST()
92 ((dim(0) - dim(1)) + (dim(1) - dim(0))).dyn_cast<SDBMConstantExpr>(); in TEST()
119 auto constant = SDBMConstantExpr::get(dialect(), 10) - 3; in TEST()
120 auto constantExpr = constant.dyn_cast<SDBMConstantExpr>(); in TEST()
130 constantExpr = zero.dyn_cast<SDBMConstantExpr>(); in TEST()
145 auto cstOnly = ((dim(0) + 42) - dim(0)).dyn_cast<SDBMConstantExpr>(); in TEST()
160 cstOnly = (-symb(1) + symb(1)).dyn_cast<SDBMConstantExpr>(); in TEST()
216 auto expr = SDBMConstantExpr::get(dialect(), 42); in TEST()
220 auto expr2 = SDBMConstantExpr::get(dialect(), 42); in TEST()
[all …]