CIRCT  19.0.0git
SCFToCalyx.h
Go to the documentation of this file.
1 //===- SCFToCalyx.h - SCF to Calyx pass entry point -------------*- 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 the SCFToCalyx pass
10 // constructor.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef CIRCT_CONVERSION_SCFTOCALYX_SCFTOCALYX_H
15 #define CIRCT_CONVERSION_SCFTOCALYX_SCFTOCALYX_H
16 
17 #include "circt/Support/LLVM.h"
18 #include "mlir/Dialect/SCF/IR/SCF.h"
19 #include <memory>
20 
21 namespace circt {
22 
23 namespace scfToCalyx {
24 // If this attribute is set as a FuncOp argument or result attribute, it will be
25 // used as the Calyx port name.
26 static constexpr std::string_view sPortNameAttr = "calyx.port_name";
27 
28 } // namespace scfToCalyx
29 
30 /// Create an SCF to Calyx conversion pass.
31 std::unique_ptr<OperationPass<ModuleOp>> createSCFToCalyxPass();
32 
33 } // namespace circt
34 
35 #endif // CIRCT_CONVERSION_SCFTOCALYX_SCFTOCALYX_H
static constexpr std::string_view sPortNameAttr
Definition: SCFToCalyx.h:26
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition: DebugAnalysis.h:21
std::unique_ptr< OperationPass< ModuleOp > > createSCFToCalyxPass()
Create an SCF to Calyx conversion pass.