This commit introduces the LLVM's visibility attribute and adds it to
both globals and functions.
Furthermore, this commit ensures that "thread_local" is printed in the
correct place and adds a test for that.
Paths
| Differential D145790
[mlir][llvm] Add visibility attribute ClosedPublic Authored by Dinistro on Mar 10 2023, 6:52 AM.
Details Summary This commit introduces the LLVM's visibility attribute and adds it to Furthermore, this commit ensures that "thread_local" is printed in the
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 10 2023, 7:13 AM Closed by commit rG6628767e477f: [mlir][llvm] Add visibility attribute (authored by Dinistro). · Explain WhyMar 12 2023, 1:48 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 504141 mlir/include/mlir/Dialect/LLVMIR/LLVMEnums.td
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Target/LLVMIR/ModuleImport.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Dialect/LLVMIR/func.mlir
mlir/test/Dialect/LLVMIR/global.mlir
mlir/test/Target/LLVMIR/Import/function-attributes.ll
mlir/test/Target/LLVMIR/Import/global-variables.ll
mlir/test/Target/LLVMIR/llvmir.mlir
|
I would move this out of the if condition.