MLIR
18.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. More... | |
void | reset (AffineMap map) |
Resets this MutableAffineMap with 'map'. More... | |
void | simplify () |
Simplify the (result) expressions in this map using analysis (used by. More... | |
AffineMap | getAffineMap () const |
Get the AffineMap corresponding to this MutableAffineMap. More... | |
A mutable affine map. Its affine expressions are however unique.
Definition at line 403 of file AffineMap.h.
|
default |
MutableAffineMap::MutableAffineMap | ( | AffineMap | map | ) |
Definition at line 922 of file AffineMap.cpp.
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 949 of file AffineMap.cpp.
References mlir::AffineMap::get().
Referenced by mlir::affine::AffineValueMap::getAffineMap().
|
inline |
Definition at line 416 of file AffineMap.h.
|
inline |
Definition at line 412 of file AffineMap.h.
|
inline |
Definition at line 411 of file AffineMap.h.
Referenced by simplify().
|
inline |
Definition at line 414 of file AffineMap.h.
|
inline |
Definition at line 409 of file AffineMap.h.
Referenced by simplify().
|
inline |
Definition at line 408 of file AffineMap.h.
bool MutableAffineMap::isMultipleOf | ( | unsigned | idx, |
int64_t | factor | ||
) | const |
Returns true if the idx'th result expression is a multiple of factor.
Definition at line 935 of file AffineMap.cpp.
Referenced by mlir::affine::AffineValueMap::isMultipleOf().
void MutableAffineMap::reset | ( | AffineMap | map | ) |
Resets this MutableAffineMap with 'map'.
Definition at line 927 of file AffineMap.cpp.
References mlir::AffineMap::getContext(), mlir::AffineMap::getNumDims(), mlir::AffineMap::getNumSymbols(), and mlir::AffineMap::getResults().
|
inline |
Definition at line 413 of file AffineMap.h.
|
inline |
Definition at line 415 of file AffineMap.h.
|
inline |
Definition at line 410 of file AffineMap.h.
void MutableAffineMap::simplify | ( | ) |
Simplify the (result) expressions in this map using analysis (used by.
Definition at line 941 of file AffineMap.cpp.
References getNumResults(), getResult(), and mlir::simplifyAffineExpr().