[lld] [llvm] Reapply "[RISCV] Support RISCV Atomics ABI attributes (#84597)" (PR #90266)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 29 11:53:07 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 {
----------------
MaskRay wrote:

scoped enum (`enum class`) is better than namespace+unscoped enum

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


More information about the llvm-commits mailing list