[PATCH] D128235: [RISCV] Add support for the Zawrs extension

Palmer Dabbelt via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 17:38:01 PDT 2022


palmer-dabbelt created this revision.
palmer-dabbelt added reviewers: reames, asb.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
palmer-dabbelt requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, pcwang-thead, eopXD, MaskRay.
Herald added projects: clang, LLVM.

This extension contains a single instruction, wrs, which waits for the
current reservation set to be modified by a remote agent.

Signed-off-by: Palmer Dabbelt <palmer at rivosinc.com>

---

This is still some sort of very early draft and I'm not sure what the
rules are in LLVM land for merging that sort of code.  It's a fast track
extension so it should be done soon, but it's been drifting around a bit
as part of that process so this might not be sane right now.  I'm really
just doing this to check the box on LLVM support, which is just
assembler support due to the nature of the WRS instruction.

I also haven't gotten clang-format working yet, but I'm hoping something
in the CI will help with that.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128235

Files:
  clang/lib/Basic/Targets/RISCV.cpp
  llvm/lib/Support/RISCVISAInfo.cpp
  llvm/lib/Target/RISCV/RISCV.td
  llvm/lib/Target/RISCV/RISCVInstrInfo.td
  llvm/lib/Target/RISCV/RISCVInstrInfoZawrs.td
  llvm/lib/Target/RISCV/RISCVSubtarget.h
  llvm/test/MC/RISCV/zawrs-invalid.s
  llvm/test/MC/RISCV/zawrs-valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128235.438509.patch
Type: text/x-patch
Size: 5199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220621/3ed3a0a3/attachment.bin>


More information about the llvm-commits mailing list