MLIR
20.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 430 of file AffineMap.h.
|
default |
MutableAffineMap::MutableAffineMap | ( | AffineMap | map | ) |
Definition at line 964 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 990 of file AffineMap.cpp.
References mlir::AffineMap::get().
Referenced by mlir::affine::AffineValueMap::getAffineMap().
|
inline |
Definition at line 443 of file AffineMap.h.
|
inline |
Definition at line 439 of file AffineMap.h.
|
inline |
Definition at line 438 of file AffineMap.h.
Referenced by simplify().
|
inline |
Definition at line 441 of file AffineMap.h.
|
inline |
Definition at line 436 of file AffineMap.h.
Referenced by simplify().
|
inline |
Definition at line 435 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 976 of file AffineMap.cpp.
Referenced by mlir::affine::AffineValueMap::isMultipleOf().
void MutableAffineMap::reset | ( | AffineMap | map | ) |
Resets this MutableAffineMap with 'map'.
Definition at line 968 of file AffineMap.cpp.
References mlir::AffineMap::getContext(), mlir::AffineMap::getNumDims(), mlir::AffineMap::getNumSymbols(), and mlir::AffineMap::getResults().
Referenced by mlir::affine::AffineValueMap::composeSimplifyAndCanonicalize().
|
inline |
Definition at line 440 of file AffineMap.h.
|
inline |
Definition at line 442 of file AffineMap.h.
|
inline |
Definition at line 437 of file AffineMap.h.
void MutableAffineMap::simplify | ( | ) |
Simplify the (result) expressions in this map using analysis (used by.
Definition at line 982 of file AffineMap.cpp.
References getNumResults(), getResult(), and mlir::simplifyAffineExpr().