Replace MlirDialectRegistrationHooks with MlirDialectHandle, which under-the-hood is an opaque pointer to MlirDialectRegistrationHooks. Then we expose the functionality previously directly on MlirDialectRegistrationHooks, as functions which take the opaque MlirDialectHandle struct. This makes the actual structure of the registration hooks an implementation detail, and happens to avoid this issue: https://llvm.discourse.group/t/strange-swift-issues-with-dialect-registration-hooks/2759/3 Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D96229
20 lines
302 B
CMake
20 lines
302 B
CMake
# Main API shared library.
|
|
add_mlir_public_c_api_library(MLIRCAPIIR
|
|
AffineExpr.cpp
|
|
AffineMap.cpp
|
|
BuiltinAttributes.cpp
|
|
BuiltinTypes.cpp
|
|
Diagnostics.cpp
|
|
DialectHandle.cpp
|
|
IntegerSet.cpp
|
|
IR.cpp
|
|
Pass.cpp
|
|
Support.cpp
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRIR
|
|
MLIRParser
|
|
MLIRSupport
|
|
MLIRPass
|
|
)
|