Go to the source code of this file.
|
| namespace | mlir |
| | Include the generated interface declarations.
|
| namespace | mlir::memref |
|
| static bool | hasTrivialReassociationSuffix (ArrayRef< ReassociationIndices > reassocs, int64_t n) |
| | Deterimine if the last N indices of reassocitaion are trivial - that is, check if they all contain exactly one dimension to collape/expand into.
|
| static bool | hasTrailingUnitStrides (memref::SubViewOp subview, int64_t n) |
| template<typename LoadOrStoreOpTy> |
| static Value | getMemRefOperand (LoadOrStoreOpTy op) |
| | Helpers to access the memref operand for each op.
|
| static Value | getMemRefOperand (vector::TransferReadOp op) |
| static Value | getMemRefOperand (nvgpu::LdMatrixOp op) |
| static Value | getMemRefOperand (vector::LoadOp op) |
| static Value | getMemRefOperand (vector::StoreOp op) |
| static Value | getMemRefOperand (vector::MaskedLoadOp op) |
| static Value | getMemRefOperand (vector::MaskedStoreOp op) |
| static Value | getMemRefOperand (vector::TransferWriteOp op) |
| static Value | getMemRefOperand (gpu::SubgroupMmaLoadMatrixOp op) |
| static Value | getMemRefOperand (gpu::SubgroupMmaStoreMatrixOp op) |
| template<typename XferOp> |
| static LogicalResult | preconditionsFoldSubViewOpImpl (RewriterBase &rewriter, XferOp xferOp, memref::SubViewOp subviewOp) |
| static LogicalResult | preconditionsFoldSubViewOp (RewriterBase &rewriter, Operation *op, memref::SubViewOp subviewOp) |
| static LogicalResult | preconditionsFoldSubViewOp (RewriterBase &rewriter, vector::TransferReadOp readOp, memref::SubViewOp subviewOp) |
| static LogicalResult | preconditionsFoldSubViewOp (RewriterBase &rewriter, vector::TransferWriteOp writeOp, memref::SubViewOp subviewOp) |
◆ DBGS
◆ DEBUG_TYPE
| #define DEBUG_TYPE "fold-memref-alias-ops" |
◆ GEN_PASS_DEF_FOLDMEMREFALIASOPSPASS
| #define GEN_PASS_DEF_FOLDMEMREFALIASOPSPASS |
◆ getMemRefOperand() [1/10]
| Value getMemRefOperand |
( |
gpu::SubgroupMmaLoadMatrixOp | op | ) |
|
|
static |
◆ getMemRefOperand() [2/10]
| Value getMemRefOperand |
( |
gpu::SubgroupMmaStoreMatrixOp | op | ) |
|
|
static |
◆ getMemRefOperand() [3/10]
template<typename LoadOrStoreOpTy>
| Value getMemRefOperand |
( |
LoadOrStoreOpTy | op | ) |
|
|
static |
◆ getMemRefOperand() [4/10]
| Value getMemRefOperand |
( |
nvgpu::LdMatrixOp | op | ) |
|
|
static |
◆ getMemRefOperand() [5/10]
| Value getMemRefOperand |
( |
vector::LoadOp | op | ) |
|
|
static |
◆ getMemRefOperand() [6/10]
| Value getMemRefOperand |
( |
vector::MaskedLoadOp | op | ) |
|
|
static |
◆ getMemRefOperand() [7/10]
| Value getMemRefOperand |
( |
vector::MaskedStoreOp | op | ) |
|
|
static |
◆ getMemRefOperand() [8/10]
| Value getMemRefOperand |
( |
vector::StoreOp | op | ) |
|
|
static |
◆ getMemRefOperand() [9/10]
| Value getMemRefOperand |
( |
vector::TransferReadOp | op | ) |
|
|
static |
◆ getMemRefOperand() [10/10]
| Value getMemRefOperand |
( |
vector::TransferWriteOp | op | ) |
|
|
static |
◆ hasTrailingUnitStrides()
| bool hasTrailingUnitStrides |
( |
memref::SubViewOp | subview, |
|
|
int64_t | n ) |
|
static |
◆ hasTrivialReassociationSuffix()
Deterimine if the last N indices of reassocitaion are trivial - that is, check if they all contain exactly one dimension to collape/expand into.
Definition at line 53 of file FoldMemRefAliasOps.cpp.
References indices.
◆ preconditionsFoldSubViewOp() [1/3]
| LogicalResult preconditionsFoldSubViewOp |
( |
RewriterBase & | rewriter, |
|
|
Operation * | op, |
|
|
memref::SubViewOp | subviewOp ) |
|
static |
◆ preconditionsFoldSubViewOp() [2/3]
| LogicalResult preconditionsFoldSubViewOp |
( |
RewriterBase & | rewriter, |
|
|
vector::TransferReadOp | readOp, |
|
|
memref::SubViewOp | subviewOp ) |
|
static |
◆ preconditionsFoldSubViewOp() [3/3]
| LogicalResult preconditionsFoldSubViewOp |
( |
RewriterBase & | rewriter, |
|
|
vector::TransferWriteOp | writeOp, |
|
|
memref::SubViewOp | subviewOp ) |
|
static |
◆ preconditionsFoldSubViewOpImpl()
template<typename XferOp>
| LogicalResult preconditionsFoldSubViewOpImpl |
( |
RewriterBase & | rewriter, |
|
|
XferOp | xferOp, |
|
|
memref::SubViewOp | subviewOp ) |
|
static |