mirror of https://github.com/llvm/circt.git
[RTG] Add CAPI and python bindings to register passes (#8632)
This commit is contained in:
parent
b281d7e250
commit
ae167116fa
|
@ -20,6 +20,7 @@ extern "C" {
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(RTG, rtg);
|
||||
MLIR_CAPI_EXPORTED void registerRTGPasses(void);
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Type API.
|
||||
|
|
|
@ -57,6 +57,7 @@ static void registerPasses() {
|
|||
registerFSMPasses();
|
||||
registerHWArithPasses();
|
||||
registerHWPasses();
|
||||
registerRTGPasses();
|
||||
registerHandshakePasses();
|
||||
registerKanagawaPasses();
|
||||
registerPipelinePasses();
|
||||
|
|
|
@ -157,6 +157,7 @@ add_circt_public_c_api_library(CIRCTCAPIRTG
|
|||
LINK_LIBS PUBLIC
|
||||
MLIRCAPIIR
|
||||
CIRCTRTGDialect
|
||||
CIRCTRTGTransforms
|
||||
)
|
||||
|
||||
if(CIRCT_INCLUDE_TESTS)
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "circt/Dialect/RTG/IR/RTGAttributes.h"
|
||||
#include "circt/Dialect/RTG/IR/RTGDialect.h"
|
||||
#include "circt/Dialect/RTG/IR/RTGTypes.h"
|
||||
#include "circt/Dialect/RTG/Transforms/RTGPasses.h"
|
||||
|
||||
#include "mlir/CAPI/Registration.h"
|
||||
|
||||
|
@ -22,6 +23,8 @@ using namespace circt::rtg;
|
|||
|
||||
MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(RTG, rtg, RTGDialect)
|
||||
|
||||
void registerRTGPasses() { circt::rtg::registerPasses(); }
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Type API.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue