CIRCT  19.0.0git
HWPasses.h
Go to the documentation of this file.
1 //===- Passes.h - HW pass entry points --------------------------*- 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 header file defines prototypes that expose pass constructors.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef CIRCT_DIALECT_HW_HWPASSES_H
14 #define CIRCT_DIALECT_HW_HWPASSES_H
15 
16 #include "mlir/Pass/Pass.h"
17 #include "mlir/Pass/PassRegistry.h"
18 #include <memory>
19 #include <optional>
20 
21 namespace circt {
22 namespace hw {
23 
24 std::unique_ptr<mlir::Pass> createPrintInstanceGraphPass();
25 std::unique_ptr<mlir::Pass> createHWSpecializePass();
26 std::unique_ptr<mlir::Pass> createPrintHWModuleGraphPass();
27 std::unique_ptr<mlir::Pass> createFlattenIOPass(bool recursiveFlag = true,
28  bool flattenExternFlag = false,
29  char joinChar = '.');
30 std::unique_ptr<mlir::Pass> createVerifyInnerRefNamespacePass();
31 std::unique_ptr<mlir::Pass> createFlattenModulesPass();
32 std::unique_ptr<mlir::Pass> createFooWiresPass();
33 
34 /// Generate the code for registering passes.
35 #define GEN_PASS_REGISTRATION
36 #include "circt/Dialect/HW/Passes.h.inc"
37 
38 } // namespace hw
39 } // namespace circt
40 
41 #endif // CIRCT_DIALECT_HW_HWPASSES_H
std::unique_ptr< mlir::Pass > createFlattenModulesPass()
std::unique_ptr< mlir::Pass > createFooWiresPass()
Definition: FooWires.cpp:36
std::unique_ptr< mlir::Pass > createPrintHWModuleGraphPass()
std::unique_ptr< mlir::Pass > createVerifyInnerRefNamespacePass()
std::unique_ptr< mlir::Pass > createPrintInstanceGraphPass()
std::unique_ptr< mlir::Pass > createFlattenIOPass(bool recursiveFlag=true, bool flattenExternFlag=false, char joinChar='.')
Definition: FlattenIO.cpp:521
std::unique_ptr< mlir::Pass > createHWSpecializePass()
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition: DebugAnalysis.h:21
Definition: hw.py:1