[PATCH] D47587: [RISCV] Codegen support for atomic operations on RV32I

JF Bastien via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 31 12:42:37 PDT 2018


jfb added a comment.

Looks fine in general, though I know ~nothing of RISCV.



================
Comment at: lib/Target/RISCV/RISCVISelLowering.cpp:145
 
+  setMaxAtomicSizeInBitsSupported(0);
+
----------------
Will you always want libcalls, or is it just a temporary thing. Seems you want a comment to explain.


================
Comment at: test/CodeGen/RISCV/atomic-fence.ll:27
+; RV32I-NEXT:    fence rw, rw
+; RV32I-NEXT:    ret
+  fence acq_rel
----------------
You should comment about fence.tso here as well.


https://reviews.llvm.org/D47587





More information about the llvm-commits mailing list