[Mlir-commits] [mlir] Fix linkage enum attr order to mirror one defined in llvm::GlobalValue (PR #118484)

Henrich Lauko llvmlistbot at llvm.org
Tue Dec 3 05:15:34 PST 2024


xlauko wrote:

@Dinistro I'm refactoring the linkage code in preparation for future MLIR-link work. This change doesn't introduce any functional differences but aligns the implementation more closely with LLVM's representation. Previously, the code generated a lookup table to map MLIR enums to LLVM enums due to the lack of one-to-one correspondence. With this refactoring, the generated code now casts directly from one enum to another. (see example: https://godbolt.org/z/WMovbq95q)

https://github.com/llvm/llvm-project/pull/118484


More information about the Mlir-commits mailing list