[mlir][LLVM-IR] Added support for global variable attributes
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Wed, 13 Apr 2022 02:50:56 +0000 (08:20 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Wed, 13 Apr 2022 03:01:01 +0000 (08:31 +0530)
commitf0ba32d6667b2ea9a58c7dbd5f27984da9d335fc
tree002d5808beff16b501888550487400293f9bf229
parent36de2d639eca4cead62a6c6d288a501cee8bb6e7
[mlir][LLVM-IR] Added support for global variable attributes

This patch adds thread_local to llvm.mlir.global and adds translation for dso_local and addr_space to and from LLVM IR.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D123412
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Dialect/LLVMIR/global.mlir
mlir/test/Target/LLVMIR/import.ll
mlir/test/Target/LLVMIR/llvmir.mlir