MLIR  21.0.0git
Passes.h
Go to the documentation of this file.
1 //===-- Passes.h - AMDGPU transformation pass declarations --*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file declares the transformation passes for the TOSA Dialect in MLIR.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_DIALECT_AMDGPU_TRANSFORMS_PASSES_H_
14 #define MLIR_DIALECT_AMDGPU_TRANSFORMS_PASSES_H_
15 
17 #include "mlir/Pass/Pass.h"
18 
19 namespace mlir {
20 class ConversionTarget;
21 namespace amdgpu {
22 
23 #define GEN_PASS_DECL_AMDGPUEMULATEATOMICSPASS
24 #define GEN_PASS_DECL_AMDGPURESOLVESTRIDEDMETADATAPASS
25 #define GEN_PASS_DECL_AMDGPUTRANSFERREADTOLOADPASS
26 #define GEN_PASS_REGISTRATION
27 #include "mlir/Dialect/AMDGPU/Transforms/Passes.h.inc"
28 
29 void populateAmdgpuEmulateAtomicsPatterns(ConversionTarget &target,
30  RewritePatternSet &patterns,
31  Chipset chipset);
32 
34 
35 void populateAmdgpuTransferReadToLoadPatterns(RewritePatternSet &patterns);
36 
37 } // namespace amdgpu
38 } // namespace mlir
39 
40 #endif // MLIR_DIALECT_AMDGPU_TRANSFORMS_PASSES_H_
void populateAmdgpuEmulateAtomicsPatterns(ConversionTarget &target, RewritePatternSet &patterns, Chipset chipset)
void populateAmdgpuResolveStridedMetadataPatterns(RewritePatternSet &patterns)
void populateAmdgpuTransferReadToLoadPatterns(RewritePatternSet &patterns)
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns