Setting visibility & static leads to warning about attribute being
ignored. Remove static as I believe this is desired to be exported.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Shouldn't we remove the MLIR_CAPI_EXPORTED instead?
(Also, from what I read online: "In C, inline functions are treated by default as having static linkage")
Comment Actions
I was expecting mlirTypeIDIsNull exported to be able to use it from generated library, but you are correct that inline has effect here similar to static wrt symbol exported, so inlining and not exporting SGTM
Comment Actions
I was expecting mlirTypeIDIsNull exported to be able to use it from generated library
You can use it from anywhere, it will just be with the user and not really part of the library ABI.
(so it only limits your ability to dlopen/dlsym find it)