MLIR 22.0.0git
FoldMemRefsOps.cpp File Reference
#include "mlir/Dialect/AMDGPU/Transforms/Passes.h"
#include "mlir/Dialect/AMDGPU/IR/AMDGPUDialect.h"
#include "mlir/Dialect/Affine/ViewLikeInterfaceUtils.h"
#include "mlir/Dialect/MemRef/IR/MemRef.h"
#include "mlir/Dialect/MemRef/Utils/MemRefUtils.h"
#include "mlir/Transforms/WalkPatternRewriteDriver.h"
#include "llvm/ADT/TypeSwitch.h"
#include "mlir/Dialect/AMDGPU/Transforms/Passes.h.inc"

Go to the source code of this file.

Classes

class  mlir::amdgpu::impl::AmdgpuFoldMemRefOpsPassBase< DerivedT >
struct  mlir::amdgpu::AmdgpuFoldMemRefOpsPass
struct  mlir::amdgpu::FoldMemRefOpsIntoGatherToLDSOp

Namespaces

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

Macros

#define GEN_PASS_DEF_AMDGPUFOLDMEMREFOPSPASS

Functions

std::unique_ptr<::mlir::Passmlir::amdgpu::impl::createAmdgpuFoldMemRefOpsPass ()
std::unique_ptr<::mlir::Passmlir::amdgpu::createAmdgpuFoldMemRefOpsPass ()
static LogicalResult mlir::amdgpu::foldMemrefViewOp (PatternRewriter &rewriter, Location loc, Value view, mlir::OperandRange indices, SmallVectorImpl< Value > &resolvedIndices, Value &memrefBase, StringRef role)
void mlir::amdgpu::populateAmdgpuFoldMemRefOpsPatterns (RewritePatternSet &patterns, PatternBenefit benefit=1)

Macro Definition Documentation

◆ GEN_PASS_DEF_AMDGPUFOLDMEMREFOPSPASS

#define GEN_PASS_DEF_AMDGPUFOLDMEMREFOPSPASS

Definition at line 19 of file FoldMemRefsOps.cpp.