MLIR  19.0.0git
Passes.h
Go to the documentation of this file.
1 //===- Passes.h - OpenACC Passes Construction and Registration ------------===//
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 #ifndef MLIR_DIALECT_OPENACC_TRANSFORMS_PASSES_H
10 #define MLIR_DIALECT_OPENACC_TRANSFORMS_PASSES_H
11 
12 #include "mlir/Pass/Pass.h"
13 
14 #define GEN_PASS_DECL
15 #include "mlir/Dialect/OpenACC/Transforms/Passes.h.inc"
16 
17 namespace mlir {
18 
19 namespace func {
20 class FuncOp;
21 } // namespace func
22 
23 namespace acc {
24 
25 /// Create a pass to replace ssa values in region with device/host values.
26 std::unique_ptr<OperationPass<func::FuncOp>> createLegalizeDataInRegion();
27 
28 /// Generate the code for registering conversion passes.
29 #define GEN_PASS_REGISTRATION
30 #include "mlir/Dialect/OpenACC/Transforms/Passes.h.inc"
31 
32 } // namespace acc
33 } // namespace mlir
34 
35 #endif // MLIR_DIALECT_OPENACC_TRANSFORMS_PASSES_H
std::unique_ptr< OperationPass< func::FuncOp > > createLegalizeDataInRegion()
Create a pass to replace ssa values in region with device/host values.
Include the generated interface declarations.