|
MLIR 22.0.0git
|
A variable that can be added to the constraint set as a "column". More...
#include "mlir/Interfaces/ValueBoundsOpInterface.h"
Public Member Functions | |
| Variable (OpFoldResult ofr) | |
| Construct a variable for an index-typed attribute or SSA value. | |
| Variable (Value indexValue) | |
| Construct a variable for an index-typed SSA value. | |
| Variable (Value shapedValue, int64_t dim) | |
| Construct a variable for a dimension of a shaped value. | |
| Variable (OpFoldResult ofr, std::optional< int64_t > dim) | |
| Construct a variable for an index-typed attribute/SSA value or for a dimension of a shaped value. | |
| Variable (AffineMap map, ArrayRef< Variable > mapOperands) | |
| Construct a variable for a map and its operands. | |
| Variable (AffineMap map, ValueRange mapOperands) | |
| MLIRContext * | getContext () const |
| AffineMap | getMap () const |
| Returns the affine map. | |
| ValueDimList & | getOperands () |
| Returns the map operands. | |
| const ValueDimList & | getOperands () const |
Friends | |
| class | ValueBoundsConstraintSet |
A variable that can be added to the constraint set as a "column".
The value bounds infrastructure can compute bounds for variables and compare two variables.
Internally, a variable is represented as an affine map and operands.
Definition at line 120 of file ValueBoundsOpInterface.h.
| ValueBoundsConstraintSet::Variable::Variable | ( | OpFoldResult | ofr | ) |
Construct a variable for an index-typed attribute or SSA value.
Definition at line 78 of file ValueBoundsOpInterface.cpp.
References Variable().
Referenced by Variable(), Variable(), Variable(), and Variable().
| ValueBoundsConstraintSet::Variable::Variable | ( | Value | indexValue | ) |
Construct a variable for an index-typed SSA value.
Definition at line 81 of file ValueBoundsOpInterface.cpp.
References Variable().
Construct a variable for a dimension of a shaped value.
Definition at line 84 of file ValueBoundsOpInterface.cpp.
References Variable().
| ValueBoundsConstraintSet::Variable::Variable | ( | OpFoldResult | ofr, |
| std::optional< int64_t > | dim ) |
Construct a variable for an index-typed attribute/SSA value or for a dimension of a shaped value.
A non-null dimension must be provided if and only if ofr is a shaped value.
Definition at line 87 of file ValueBoundsOpInterface.cpp.
References b, mlir::AffineMap::get(), mlir::getConstantIntValue(), mlir::OpFoldResult::getContext(), mlir::Value::getType(), and mlir::Type::isIndex().
Construct a variable for a map and its operands.
Definition at line 109 of file ValueBoundsOpInterface.cpp.
References b, mlir::AffineMap::replace(), and mlir::AffineMap::replaceDimsAndSymbols().
| ValueBoundsConstraintSet::Variable::Variable | ( | AffineMap | map, |
| ValueRange | mapOperands ) |
Definition at line 150 of file ValueBoundsOpInterface.cpp.
References Variable().
|
inline |
Definition at line 140 of file ValueBoundsOpInterface.h.
Referenced by mlir::ValueBoundsConstraintSet::computeBound(), and mlir::ValueBoundsConstraintSet::computeConstantBound().
|
inline |
Returns the affine map.
Definition at line 143 of file ValueBoundsOpInterface.h.
|
inline |
Returns the map operands.
Definition at line 146 of file ValueBoundsOpInterface.h.
|
inline |
Definition at line 147 of file ValueBoundsOpInterface.h.
|
friend |
Definition at line 150 of file ValueBoundsOpInterface.h.
References ValueBoundsConstraintSet.
Referenced by ValueBoundsConstraintSet.