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

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 8 23:24:52 PST 2024


================
@@ -1084,10 +1084,86 @@ static void mergeArch(RISCVISAInfo::OrderedExtensionMap &mergedExts,
   }
 }
 
+static void mergeAtomic(DenseMap<unsigned, unsigned> &intAttr,
+                        const InputSectionBase *oldSection,
+                        const InputSectionBase *newSection, unsigned int oldTag,
+                        unsigned int newTag) {
+  using RISCVAttrs::RISCVAtomicAbiTag::AtomicABI;
+  llvm::errs() << "oldTag=" << oldTag << ", newTag=" << newTag << "\n";
----------------
petrhosek wrote:

Leftover debug print?

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


More information about the llvm-commits mailing list