Skip to content

Commit

Permalink
Use correct macros for C API (#615)
Browse files Browse the repository at this point in the history
* capi

* reformat
  • Loading branch information
makslevental authored Sep 5, 2023
1 parent e348104 commit e5c43ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
4 changes: 2 additions & 2 deletions include/aie-c/Registration.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ extern "C" {
/** Registers all AIE dialects with a context.
* This is needed before creating IR for these Dialects.
*/
void aieRegisterAllDialects(MlirContext context);
MLIR_CAPI_EXPORTED void aieRegisterAllDialects(MlirContext context);

/** Registers all AIE passes for symbolic access with the global registry. */
void aieRegisterAllPasses();
MLIR_CAPI_EXPORTED void aieRegisterAllPasses();

#ifdef __cplusplus
}
Expand Down
27 changes: 9 additions & 18 deletions lib/CAPI/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
# Copyright (C) 2022, Advanced Micro Devices, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

add_mlir_library(AIECAPI
Dialects.cpp
Registration.cpp

DEPENDS

ENABLE_AGGREGATION
LINK_COMPONENTS
Core

LINK_LIBS PUBLIC
AIE
ADF
MLIRAIEVec
#AIEInitAll
MLIRIR
MLIRSupport
)
add_mlir_public_c_api_library(
AIECAPI
Dialects.cpp
Registration.cpp

LINK_LIBS PUBLIC
AIE
ADF
MLIRAIEVec)

0 comments on commit e5c43ec

Please sign in to comment.