MLIR  16.0.0git
SCFToControlFlow.h
Go to the documentation of this file.
1 //===- ConvertSCFToControlFlow.h - Pass entrypoint --------------*- 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 #ifndef MLIR_CONVERSION_SCFTOCONTROLFLOW_SCFTOCONTROLFLOW_H_
10 #define MLIR_CONVERSION_SCFTOCONTROLFLOW_SCFTOCONTROLFLOW_H_
11 
12 #include <memory>
13 
14 namespace mlir {
15 class Pass;
16 class RewritePatternSet;
17 
18 /// Collect a set of patterns to convert SCF operations to CFG branch-based
19 /// operations within the ControlFlow dialect.
20 void populateSCFToControlFlowConversionPatterns(RewritePatternSet &patterns);
21 
22 /// Creates a pass to convert SCF operations to CFG branch-based operation in
23 /// the ControlFlow dialect.
24 std::unique_ptr<Pass> createConvertSCFToCFPass();
25 
26 } // namespace mlir
27 
28 #endif // MLIR_CONVERSION_SCFTOCONTROLFLOW_SCFTOCONTROLFLOW_H_
Include the generated interface declarations.
std::unique_ptr< Pass > createConvertSCFToCFPass()
Creates a pass to convert SCF operations to CFG branch-based operation in the ControlFlow dialect...
void populateSCFToControlFlowConversionPatterns(RewritePatternSet &patterns)
Collect a set of patterns to convert SCF operations to CFG branch-based operations within the Control...