[PATCH] D48131: [RISCV] Implement codegen for cmpxchg on RV32IA

Lewis Revill via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 13 05:04:00 PST 2018


lewis-revill added inline comments.


================
Comment at: lib/Target/RISCV/RISCVInstrInfoA.td:263
+
+def PseudoMaskedCmpXchg32
+    : Pseudo<(outs GPR:$res, GPR:$scratch),
----------------
Is there a reason why this isn't first defined as a class independent of width, like `PseudoCmpXchg` is (and the other pseudos in this file for that matter)? I'm just thinking of what might be used in the RV64IA implementation.


https://reviews.llvm.org/D48131





More information about the llvm-commits mailing list