Skip to content

Commit

Permalink
[CAPI][Python][HW] Register HW Passes
Browse files Browse the repository at this point in the history
  • Loading branch information
yassinz committed Nov 10, 2024
1 parent aa3ef5f commit 0598af6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/circt-c/Dialect/HW.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ typedef struct HWModulePort HWModulePort;
//===----------------------------------------------------------------------===//

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(HW, hw);
MLIR_CAPI_EXPORTED void registerHWPasses(void);

//===----------------------------------------------------------------------===//
// Type API.
Expand Down
1 change: 1 addition & 0 deletions lib/Bindings/Python/CIRCTModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ static void registerPasses() {
registerSVPasses();
registerFSMPasses();
registerHWArithPasses();
registerHWPasses();
registerHandshakePasses();
mlirRegisterConversionPasses();
mlirRegisterTransformsPasses();
Expand Down
1 change: 1 addition & 0 deletions lib/CAPI/Dialect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ add_circt_public_c_api_library(CIRCTCAPIHW
LINK_LIBS PUBLIC
MLIRCAPIIR
CIRCTHW
CIRCTHWTransforms
)

add_circt_public_c_api_library(CIRCTCAPILLHD
Expand Down
2 changes: 2 additions & 0 deletions lib/CAPI/Dialect/HW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "circt/Dialect/HW/HWAttributes.h"
#include "circt/Dialect/HW/HWInstanceGraph.h"
#include "circt/Dialect/HW/HWOps.h"
#include "circt/Dialect/HW/HWPasses.h"
#include "circt/Dialect/HW/HWTypes.h"
#include "circt/Support/LLVM.h"
#include "mlir/CAPI/IR.h"
Expand All @@ -28,6 +29,7 @@ DEFINE_C_API_PTR_METHODS(HWInstanceGraphNode, igraph::InstanceGraphNode)
//===----------------------------------------------------------------------===//

MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(HW, hw, HWDialect)
void registerHWPasses() { registerPasses(); }

//===----------------------------------------------------------------------===//
// Type API.
Expand Down

0 comments on commit 0598af6

Please sign in to comment.