/
Passes.h
35 lines (27 loc) · 1.14 KB
/
Passes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//===- Passes.h - NVGPU pass entry points -----------------------*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// This header file defines prototypes that expose pass constructors.
//
//===----------------------------------------------------------------------===//
#ifndef MLIR_DIALECT_NVGPU_PASSES_H_
#define MLIR_DIALECT_NVGPU_PASSES_H_
#include "mlir/Pass/Pass.h"
namespace mlir {
namespace nvgpu {
/// Create a pass to optimize shared memory reads and writes.
std::unique_ptr<Pass> createOptimizeSharedMemoryPass();
} // namespace nvgpu
//===----------------------------------------------------------------------===//
// Registration
//===----------------------------------------------------------------------===//
/// Generate the code for registering passes.
#define GEN_PASS_REGISTRATION
#include "mlir/Dialect/NVGPU/Passes.h.inc"
} // namespace mlir
#endif // MLIR_DIALECT_NVGPU_PASSES_H_