[PATCH] D53233: [RISCV] Add codegen support for 64-bit atomic load/store and atomicrmw

Alex Bradbury via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 12 17:38:55 PDT 2018


asb created this revision.
asb added reviewers: jyknight, sabuasal, apazos.
Herald added subscribers: jocewei, PkmX, jfb, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, mgrang, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, simoncook, johnrusso, rbar.

I don't add support for cmpxchg, as https://reviews.llvm.org/D48131 is awaiting review and I'd rather not add it to the dependency chain.

New variants of the masked atomics intrinsics are introduced to support part-word atomicrmw are defined with i64 arguments and return values (as i64 is the only legal type for RV64).


https://reviews.llvm.org/D53233

Files:
  include/llvm/IR/IntrinsicsRISCV.td
  lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
  lib/Target/RISCV/RISCVISelLowering.cpp
  lib/Target/RISCV/RISCVInstrInfoA.td
  test/CodeGen/RISCV/atomic-load-store.ll
  test/CodeGen/RISCV/atomic-rmw.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53233.169527.patch
Type: text/x-patch
Size: 334882 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181013/750762e1/attachment-0001.bin>


More information about the llvm-commits mailing list