[PATCH] D155517: [RISC-V] Add proposed mapping for Ztso

Patrick O'Neill via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 14:27:19 PDT 2023


patrick-rivos created this revision.
patrick-rivos added reviewers: reames, asb, craig.topper, kito-cheng, jrtc27, frasercrmck.
patrick-rivos added a project: LLVM.
Herald added subscribers: luke, VincentWu, vkmr, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
patrick-rivos requested review of this revision.
Herald added subscribers: llvm-commits, wangpc, MaskRay.

Currently LLVM emits Ztso code for fences, loads, and stores (behind an experimental flag) [1]. This patch updates the mapping and implements support for LR/SC and AMO ops. This updated mapping is compatible with the RVWMO ABI present in the psABI. Additional context can be found in the psABI pull request [2].

[1] https://reviews.llvm.org/D143076
[2] https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/391


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155517

Files:
  llvm/lib/Target/RISCV/RISCVExpandAtomicPseudoInsts.cpp
  llvm/lib/Target/RISCV/RISCVFeatures.td
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfo.h
  llvm/lib/Target/RISCV/RISCVInstrInfoA.td
  llvm/test/CodeGen/RISCV/atomic-cmpxchg.ll
  llvm/test/CodeGen/RISCV/atomic-load-store.ll
  llvm/test/CodeGen/RISCV/atomic-rmw.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155517.541231.patch
Type: text/x-patch
Size: 399166 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230717/302688ee/attachment-0001.bin>


More information about the llvm-commits mailing list