|
MLIR 22.0.0git
|
A mutable affine map. Its affine expressions are however unique. More...
#include "mlir/IR/AffineMap.h"
Public Member Functions | |
| MutableAffineMap ()=default | |
| MutableAffineMap (AffineMap map) | |
| ArrayRef< AffineExpr > | getResults () const |
| AffineExpr | getResult (unsigned idx) const |
| void | setResult (unsigned idx, AffineExpr result) |
| unsigned | getNumResults () const |
| unsigned | getNumDims () const |
| void | setNumDims (unsigned d) |
| unsigned | getNumSymbols () const |
| void | setNumSymbols (unsigned d) |
| MLIRContext * | getContext () const |
| bool | isMultipleOf (unsigned idx, int64_t factor) const |
| Returns true if the idx'th result expression is a multiple of factor. | |
| void | reset (AffineMap map) |
| Resets this MutableAffineMap with 'map'. | |
| void | simplify () |
| Simplify the (result) expressions in this map using analysis (used by. | |
| AffineMap | getAffineMap () const |
| Get the AffineMap corresponding to this MutableAffineMap. | |
A mutable affine map. Its affine expressions are however unique.
Definition at line 430 of file AffineMap.h.
|
default |
| MutableAffineMap::MutableAffineMap | ( | AffineMap | map | ) |
Definition at line 959 of file AffineMap.cpp.
References getContext(), getNumDims(), getNumSymbols(), and getResults().
| AffineMap MutableAffineMap::getAffineMap | ( | ) | const |
Get the AffineMap corresponding to this MutableAffineMap.
Note that an AffineMap will be uniqued and stored in context, while a mutable one isn't.
Definition at line 985 of file AffineMap.cpp.
References mlir::AffineMap::get().
|
inline |
Definition at line 443 of file AffineMap.h.
Referenced by MutableAffineMap().
|
inline |
Definition at line 439 of file AffineMap.h.
Referenced by MutableAffineMap().
|
inline |
Definition at line 438 of file AffineMap.h.
Referenced by simplify().
|
inline |
Definition at line 441 of file AffineMap.h.
Referenced by MutableAffineMap().
|
inline |
Definition at line 436 of file AffineMap.h.
Referenced by simplify().
|
inline |
Definition at line 435 of file AffineMap.h.
Referenced by MutableAffineMap().
Returns true if the idx'th result expression is a multiple of factor.
Definition at line 971 of file AffineMap.cpp.
Resets this MutableAffineMap with 'map'.
Definition at line 963 of file AffineMap.cpp.
References mlir::AffineMap::getContext(), mlir::AffineMap::getNumDims(), mlir::AffineMap::getNumSymbols(), and mlir::AffineMap::getResults().
Definition at line 440 of file AffineMap.h.
Definition at line 442 of file AffineMap.h.
|
inline |
Definition at line 437 of file AffineMap.h.
References result.
| void MutableAffineMap::simplify | ( | ) |
Simplify the (result) expressions in this map using analysis (used by.
Definition at line 977 of file AffineMap.cpp.
References getNumResults(), getResult(), and mlir::simplifyAffineExpr().