hanchenye-llvm-project/mlir/lib
Uday Bondhugula d18ae9e2c7 Constant folding for loop bounds.
- Fold the lower/upper bound of a loop to a constant whenever the result of the
  application of the bound's affine map on the operand list yields a constant.

- Update/complete 'for' stmt's API to set lower/upper bounds with operands.
  Resolve TODOs for ForStmt::set{Lower,Upper}Bound.

- Moved AffineExprConstantFolder into AffineMap.cpp and added
  AffineMap::constantFold to be used by both AffineApplyOp and
  ForStmt::constantFoldBound.

PiperOrigin-RevId: 215997346
2019-03-29 13:24:01 -07:00
..
Analysis [RFC][MLIR] Use AffineExprRef in place of AffineExpr* in IR 2019-03-29 13:23:05 -07:00
IR Constant folding for loop bounds. 2019-03-29 13:24:01 -07:00
Parser [RFC][MLIR] Use AffineExprRef in place of AffineExpr* in IR 2019-03-29 13:23:05 -07:00
Transforms Constant folding for loop bounds. 2019-03-29 13:24:01 -07:00