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/IR/PatternMatch.h"
18 #include "mlir/Pass/Pass.h"
19 
20 namespace mlir {
21 class ConversionTarget;
22 namespace amdgpu {
23 
24 #define GEN_PASS_DECL_AMDGPUEMULATEATOMICSPASS
25 #define GEN_PASS_DECL_AMDGPURESOLVESTRIDEDMETADATAPASS
26 #define GEN_PASS_DECL_AMDGPUTRANSFERREADTOLOADPASS
27 #define GEN_PASS_REGISTRATION
28 #include "mlir/Dialect/AMDGPU/Transforms/Passes.h.inc"
29 
30 void populateAmdgpuEmulateAtomicsPatterns(ConversionTarget &target,
31  RewritePatternSet &patterns,
32  Chipset chipset,
33  PatternBenefit benefit = 1);
34 
36  PatternBenefit benefit = 1);
37 
39  PatternBenefit benefit = 1);
40 
41 } // namespace amdgpu
42 } // namespace mlir
43 
44 #endif // MLIR_DIALECT_AMDGPU_TRANSFORMS_PASSES_H_
void populateAmdgpuTransferReadToLoadPatterns(RewritePatternSet &patterns, PatternBenefit benefit=1)
void populateAmdgpuEmulateAtomicsPatterns(ConversionTarget &target, RewritePatternSet &patterns, Chipset chipset, PatternBenefit benefit=1)
void populateAmdgpuResolveStridedMetadataPatterns(RewritePatternSet &patterns, PatternBenefit benefit=1)
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns