MLIR 22.0.0git
FoldMemRefAliasOps.cpp File Reference

Go to the source code of this file.

Classes

class  mlir::affine::impl::AffineFoldMemRefAliasOpsBase< DerivedT >

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::affine
namespace  mlir::affine::impl

Macros

#define GEN_PASS_DEF_AFFINEFOLDMEMREFALIASOPS

Functions

std::unique_ptr<::mlir::Passmlir::affine::impl::createAffineFoldMemRefAliasOps ()
std::unique_ptr<::mlir::Passmlir::affine::createAffineFoldMemRefAliasOps ()
static void expandToUnderlyingIndices (AffineMap affineMap, ValueRange indices, Location loc, PatternRewriter &rewriter, SmallVectorImpl< Value > &result)
 Given an AffineMap and a list of indices, apply the map to get the underlying indices (expanding the affine map).

Macro Definition Documentation

◆ GEN_PASS_DEF_AFFINEFOLDMEMREFALIASOPS

#define GEN_PASS_DEF_AFFINEFOLDMEMREFALIASOPS

Definition at line 26 of file FoldMemRefAliasOps.cpp.

Function Documentation

◆ expandToUnderlyingIndices()

void expandToUnderlyingIndices ( AffineMap affineMap,
ValueRange indices,
Location loc,
PatternRewriter & rewriter,
SmallVectorImpl< Value > & result )
static

Given an AffineMap and a list of indices, apply the map to get the underlying indices (expanding the affine map).

Definition at line 40 of file FoldMemRefAliasOps.cpp.

References mlir::AffineMap::getNumResults(), mlir::AffineMap::getSubMap(), mlir::getValueOrCreateConstantIndexOp(), indices, mlir::affine::makeComposedFoldedAffineApply(), and result.