[PATCH] D51217: [RISCV] atomic_store_nn have a different layout to regular store

Roger Ferrer Ibanez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 24 07:39:50 PDT 2018


rogfer01 added inline comments.


================
Comment at: lib/Target/RISCV/RISCVInstrInfoA.td:47
 
+multiclass AtomicStPat<PatFrag StoreOp, RVInst Inst, RegisterClass StTy> {
+  def : Pat<(StoreOp GPR:$rs1, StTy:$rs2), (Inst StTy:$rs2, GPR:$rs1, 0)>;
----------------
My tblgen-fu is not great but perhaps we can swap the operands before using the original StPat, without having to repeat them here.


https://reviews.llvm.org/D51217





More information about the llvm-commits mailing list