-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CAPI] disambiguate mlirRegisterConversionPasses
- Loading branch information
1 parent
bf9f0dc
commit e9e8397
Showing
10 changed files
with
56 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//===-- circt-c/Transform.h - C API for dialect transforms --------*- C -*-===// | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef CIRCT_C_TRANSFORMS_H | ||
#define CIRCT_C_TRANSFORMS_H | ||
|
||
#include "mlir-c/Support.h" | ||
|
||
#include "circt/Transforms/Transforms.capi.h.inc" | ||
|
||
#endif // CIRCT_C_TRANSFORMS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
set(LLVM_TARGET_DEFINITIONS Passes.td) | ||
mlir_tablegen(Passes.h.inc -gen-pass-decls -name Conversion) | ||
mlir_tablegen(Conversion.capi.h.inc -gen-pass-capi-header --prefix Conversion) | ||
mlir_tablegen(Conversion.capi.cpp.inc -gen-pass-capi-impl --prefix Conversion) | ||
mlir_tablegen(Passes.h.inc -gen-pass-decls -name CIRCTConversion) | ||
mlir_tablegen(Conversion.capi.h.inc -gen-pass-capi-header --prefix CIRCTConversion) | ||
mlir_tablegen(Conversion.capi.cpp.inc -gen-pass-capi-impl --prefix CIRCTConversion) | ||
add_public_tablegen_target(CIRCTConversionPassIncGen) | ||
|
||
add_circt_doc(Passes CIRCTConversionPasses -gen-pass-doc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
set(LLVM_TARGET_DEFINITIONS Passes.td) | ||
mlir_tablegen(Passes.h.inc -gen-pass-decls -name Transforms) | ||
mlir_tablegen(Transforms.capi.h.inc -gen-pass-capi-header --prefix Transforms) | ||
mlir_tablegen(Transforms.capi.cpp.inc -gen-pass-capi-impl --prefix Transforms) | ||
mlir_tablegen(Passes.h.inc -gen-pass-decls -name CIRCTTransforms) | ||
mlir_tablegen(Transforms.capi.h.inc -gen-pass-capi-header --prefix CIRCTTransforms) | ||
mlir_tablegen(Transforms.capi.cpp.inc -gen-pass-capi-impl --prefix CIRCTTransforms) | ||
add_public_tablegen_target(CIRCTTransformsPassIncGen) | ||
|
||
add_mlir_doc(Passes CIRCTGeneralPasses ./ -gen-pass-doc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
add_circt_public_c_api_library(CIRCTCAPITransforms | ||
Transforms.cpp | ||
|
||
LINK_LIBS PUBLIC | ||
CIRCTTransforms | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//===- Transforms.cpp - C API for Transforms Passes -----------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include "circt-c/Transforms.h" | ||
#include "circt/Transforms/Passes.h" | ||
#include "mlir/CAPI/Pass.h" | ||
#include "mlir/Pass/Pass.h" | ||
|
||
using namespace circt; | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "circt/Transforms/Transforms.capi.cpp.inc" | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |