[lld] [llvm] Reapply "[RISCV] Support RISCV Atomics ABI attributes (#84597)" (PR #90266)
Paul Kirth via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 1 10:10:01 PDT 2024
================
@@ -32,8 +32,21 @@ enum AttrType : unsigned {
PRIV_SPEC = 8,
PRIV_SPEC_MINOR = 10,
PRIV_SPEC_REVISION = 12,
+ ATOMIC_ABI = 14,
};
+namespace RISCVAtomicAbiTag {
----------------
ilovepi wrote:
I've followed your advice here, but this seems to require quite a lot of `static_casting` when what we actually want is a typed alias for an integer which is precisely what a standard enum type is. I've also had to introduce what I'd say are useless cases to the switch for unreachable types we've already checked.
https://github.com/llvm/llvm-project/pull/90266
More information about the llvm-commits
mailing list