llvm/mlir/include/mlir/Dialect/NVGPU/Transforms/Passes.td

//===-- Passes.td - NvGpu pass definition file ------------*- tablegen -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef MLIR_DIALECT_NVGPU_PASSES_TD_
#define MLIR_DIALECT_NVGPU_PASSES_TD_

include "mlir/Pass/PassBase.td"

def OptimizeSharedMemory : Pass<"nvgpu-optimize-shared-memory"> {
  let summary = "Optimizes accesses to shard memory memrefs in order to reduce bank conflicts.";
  let constructor = "mlir::nvgpu::createOptimizeSharedMemoryPass()";
  let dependentDialects = [
    "memref::MemRefDialect", "vector::VectorDialect"
  ];
}

#endif // MLIR_DIALECT_NVGPU_PASSES_TD_