Reland "[mlir][LLVM] Add all LLVM parameter attributes"
authorChristian Ulmann <christian.ulmann@nextsilicon.com>
Tue, 31 Jan 2023 07:54:52 +0000 (08:54 +0100)
committerChristian Ulmann <christian.ulmann@nextsilicon.com>
Tue, 31 Jan 2023 08:11:02 +0000 (09:11 +0100)
commit5212058405ba9ed1292920f075c2ae06f67cc5f7
treec4c21d39c26d1529ac68853574bc56ae343f588a
parent199f368e35f6c63bbc3386c608d3773517f2985b
Reland "[mlir][LLVM] Add all LLVM parameter attributes"

This change was reverted because it introduced a linking issue due to
duplicated symbols. Making sure that the detail helper only has a static
header implementation fixes this issue.

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D142635
mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Target/LLVMIR/AttrKindDetail.h [new file with mode: 0644]
mlir/lib/Target/LLVMIR/ModuleImport.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Dialect/LLVMIR/parameter-attrs-invalid.mlir
mlir/test/Target/LLVMIR/Import/function-attributes.ll
mlir/test/Target/LLVMIR/llvmir.mlir