[mlir][llvm] Reintroduce string based attribute setting.
authorTobias Gysi <tobias.gysi@nextsilicon.com>
Mon, 13 Feb 2023 21:05:01 +0000 (22:05 +0100)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Tue, 14 Feb 2023 07:09:58 +0000 (08:09 +0100)
commitbfea837676038ef3e312563b15811b524cbfb6aa
tree0fdc7bcd9ea525588a27c324c2ef05db0bcef048
parentcb90bb986611bab58dbe05cefb0903e0a07f3cca
[mlir][llvm] Reintroduce string based attribute setting.

Reintroduce string based attribute setting in the
translation from LLVM dialect to LLVM IR. The TypeSwitch
based implementation introduced in
https://reviews.llvm.org/D143654  does not work for
intrinsics that set the requiresAccessGroup or
requiresAliasScope flag.

Reviewed By: hgreving

Differential Revision: https://reviews.llvm.org/D143936
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp