Home
last modified time | relevance | path

Searched refs:AffineConstantExpr (Results 1 – 24 of 24) sorted by relevance

/external/llvm-project/mlir/lib/IR/
DAffineExpr.cpp34 void visitConstantExpr(AffineConstantExpr expr) { callback(expr); } in walk()
176 (op.getLHS().template isa<AffineConstantExpr>() || in isPureAffine()
177 op.getRHS().template isa<AffineConstantExpr>()); in isPureAffine()
184 op.getRHS().template isa<AffineConstantExpr>(); in isPureAffine()
199 return std::abs(this->cast<AffineConstantExpr>().getValue()); in getLargestKnownDivisor()
228 return cast<AffineConstantExpr>().getValue() % factor == 0; in isMultipleOf()
293 if (expr.cast<AffineConstantExpr>().getValue()) in isDivisibleBySymbol()
354 if (expr.cast<AffineConstantExpr>().getValue() != 0) in symbolicDivide()
468 AffineConstantExpr::AffineConstantExpr(AffineExpr::ImplType *ptr) in AffineConstantExpr() function in AffineConstantExpr
470 int64_t AffineConstantExpr::getValue() const { in getValue()
[all …]
DAffineMap.cpp59 return expr.cast<AffineConstantExpr>().getValue(); in constantFoldImpl()
196 return getNumResults() == 1 && getResult(0).isa<AffineConstantExpr>(); in isSingleConstant()
201 return getResult(0).cast<AffineConstantExpr>().getValue(); in getSingleConstantResult()
347 res.push_back(e.cast<AffineConstantExpr>().getValue()); in compose()
DBuiltinTypes.cpp637 if (auto cst = offsetExpr.dyn_cast<AffineConstantExpr>()) in getStridesAndOffset()
642 if (auto c = e.dyn_cast<AffineConstantExpr>()) in getStridesAndOffset()
DAsmPrinter.cpp2005 os << expr.cast<AffineConstantExpr>().getValue(); in printAffineExprInternal()
2034 auto rhsConst = rhsExpr.dyn_cast<AffineConstantExpr>(); in printAffineExprInternal()
2063 if (auto rrhs = rrhsExpr.dyn_cast<AffineConstantExpr>()) { in printAffineExprInternal()
2097 if (auto rhsConst = rhsExpr.dyn_cast<AffineConstantExpr>()) { in printAffineExprInternal()
/external/llvm-project/mlir/include/mlir/IR/
DAffineExprVisitor.h104 expr.cast<AffineConstantExpr>()); in walkPostOrder()
141 expr.cast<AffineConstantExpr>()); in visit()
178 void visitConstantExpr(AffineConstantExpr expr) {} in visitConstantExpr()
280 void visitConstantExpr(AffineConstantExpr expr);
DAffineExpr.h211 class AffineConstantExpr : public AffineExpr {
214 /* implicit */ AffineConstantExpr(AffineExpr::ImplType *ptr = nullptr);
255 if (std::is_same<U, AffineConstantExpr>::value) in isa()
/external/llvm-project/mlir/lib/Dialect/SCF/Transforms/
DLoopSpecialization.cpp39 if (auto constantIndex = expr.dyn_cast<AffineConstantExpr>()) in specializeParallelLoopForUnrolling()
74 if (auto constantIndex = expr.dyn_cast<AffineConstantExpr>()) in specializeForLoopForUnrolling()
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DTransforms.cpp364 auto c1 = bin.getLHS().dyn_cast<AffineConstantExpr>(); in substWithMin()
365 auto c2 = bin.getRHS().dyn_cast<AffineConstantExpr>(); in substWithMin()
485 if (auto cst = e.dyn_cast<AffineConstantExpr>()) in matchAndRewrite()
504 if (auto cst = e.dyn_cast<AffineConstantExpr>()) { in matchAndRewrite()
DPromotion.cpp55 if (auto cst = e.dyn_cast<AffineConstantExpr>()) in extractSmallestConstantBoundingSize()
DTiling.cpp104 assert(expr.getRHS().cast<AffineConstantExpr>().getValue() > 0 && in visitAffineBinaryOpExpr()
DLoops.cpp607 if (auto val = expr.dyn_cast<AffineConstantExpr>()) { in matchAndRewrite()
/external/llvm-project/mlir/lib/Analysis/
DLoopAnalysis.cpp98 if (auto constExpr = resultExpr.dyn_cast<AffineConstantExpr>()) { in getConstantTripCount()
127 if (auto constExpr = resultExpr.dyn_cast<AffineConstantExpr>()) { in getLargestDivisorOfTripCount()
/external/llvm-project/mlir/lib/Conversion/AffineToStandard/
DAffineToStandard.cpp74 auto rhsConst = expr.getRHS().dyn_cast<AffineConstantExpr>(); in visitModExpr()
111 auto rhsConst = expr.getRHS().dyn_cast<AffineConstantExpr>(); in visitFloorDivExpr()
152 auto rhsConst = expr.getRHS().dyn_cast<AffineConstantExpr>(); in visitCeilDivExpr()
182 Value visitConstantExpr(AffineConstantExpr expr) { in visitConstantExpr()
/external/llvm-project/mlir/lib/CAPI/IR/
DAffineExpr.cpp88 return unwrap(affineExpr).cast<AffineConstantExpr>().getValue(); in mlirAffineConstantExprGetValue()
/external/tensorflow/tensorflow/compiler/mlir/xla/experimental/conv_emitter/
Dconv_emitter_transforms.cc111 CHECK_EQ(0, length.cast<mlir::AffineConstantExpr>().getValue() % size); in TileLoop()
/external/llvm-project/mlir/lib/Dialect/Affine/Transforms/
DAffineLoopNormalize.cpp31 std::get<1>(tuple).template dyn_cast<AffineConstantExpr>(); in normalizeAffineParallel()
/external/llvm-project/mlir/lib/Dialect/SDBM/
DSDBMExpr.cpp95 if (auto cst = storage->matched.dyn_cast<AffineConstantExpr>()) in getMatchedConstantValue()
507 SDBMExpr visitConstantExpr(AffineConstantExpr expr) { in tryConvertAffineExpr()
/external/llvm-project/mlir/lib/Transforms/Utils/
DLoopFusionUtils.cpp496 auto cExpr = loopSpanExpr.dyn_cast<AffineConstantExpr>(); in getConstDifference()
DLoopUtils.cpp2407 if (auto caf = offset.dyn_cast<AffineConstantExpr>()) { in generateCopy()
/external/llvm-project/mlir/lib/Conversion/SCFToGPU/
DSCFToGPU.cpp304 if (auto constExpr = result.dyn_cast<AffineConstantExpr>()) { in deriveStaticUpperBound()
/external/llvm-project/mlir/lib/Conversion/VectorToSCF/
DVectorToSCF.cpp492 assert((dim || expr.cast<AffineConstantExpr>().getValue() == 0) && in emitWithBoundsChecks()
/external/llvm-project/mlir/lib/Dialect/Linalg/IR/
DLinalgOps.cpp769 if (auto o = offset.dyn_cast<AffineConstantExpr>()) in computeReshapeCollapsedType()
774 if (auto cst = stride.dyn_cast_or_null<AffineConstantExpr>()) in computeReshapeCollapsedType()
/external/llvm-project/mlir/lib/Dialect/Affine/IR/
DAffineOps.cpp1486 if (auto constExpr = expr.dyn_cast<AffineConstantExpr>()) { in printBound()
2606 auto cst = expr.dyn_cast<AffineConstantExpr>(); in getConstantRanges()
2824 auto constExpr = result.dyn_cast<AffineConstantExpr>(); in parseAffineParallelOp()
/external/llvm-project/mlir/lib/Dialect/Vector/
DVectorOps.cpp354 [](AffineExpr e) { return e.isa<AffineConstantExpr>(); }) && in verifyOutputShape()
359 return e.cast<AffineConstantExpr>().getValue(); in verifyOutputShape()
1870 auto zero = expr.dyn_cast<AffineConstantExpr>(); in verifyPermutationMap()