[PATCH] D115825: Re-apply "Only define LLVM_EXTERNAL_VISIBILITY when building libLLVM dylib"
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 15 13:01:58 PST 2021
mehdi_amini added inline comments.
================
Comment at: mlir/include/mlir/Support/TypeID.h:118
/// available within LLVM.
-struct LLVM_EXTERNAL_VISIBILITY TypeIDExported {
+struct MLIR_CAPI_EXPORTED TypeIDExported {
template <typename T>
----------------
benlangmuir wrote:
> I'm not sure if matching the CAPI visibility is precisely what you want here, but it seems like a strict improvement over matching the LLVM visibility, which should be mostly orthogonal from what you do here.
Not really: if you look into `mlir/tools/mlir-shlib/CMakeLists.txt` we're creating libMLIR.dylib hand-in-hand with libLLVM.dylib ; this is what this mechanism is covering here.
(I need to go back to the original revision, I haven't followed exactly what the change is so far)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115825/new/
https://reviews.llvm.org/D115825
More information about the llvm-commits
mailing list