[PATCH] D117789: [RISCV] Add support for Zihintpause extention

Shao-Ce SUN via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 20 07:58:31 PST 2022


achieveartificialintelligence created this revision.
achieveartificialintelligence added a reviewer: asb.
Herald added subscribers: VincentWu, luke957, vkmr, frasercrmck, jdoerfert, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
achieveartificialintelligence requested review of this revision.
Herald added subscribers: llvm-commits, eopXD, MaskRay.
Herald added a project: LLVM.

Add support for the 'pause' hint instruction as an alias for
'fence w, 0'. To do this allow the 'fence' operands pred and succ
to be set to 0 (the empty set). This will also allow future hints
to be encoded as 'fence 0, <x>' and 'fence <x>, 0'.

This patch revised from @mundaym's D93019 <https://reviews.llvm.org/D93019>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117789

Files:
  llvm/lib/Support/RISCVISAInfo.cpp
  llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp
  llvm/lib/Target/RISCV/RISCV.td
  llvm/lib/Target/RISCV/RISCVInstrInfo.td
  llvm/lib/Target/RISCV/RISCVSubtarget.h
  llvm/test/CodeGen/RISCV/attributes.ll
  llvm/test/MC/Disassembler/RISCV/unknown-fence-field.txt
  llvm/test/MC/RISCV/rv32i-invalid.s
  llvm/test/MC/RISCV/rv32zihintpause-valid.s
  llvm/test/MC/RISCV/rvzihintpause-aliases-valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117789.401642.patch
Type: text/x-patch
Size: 13152 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220120/ce85cc76/attachment.bin>


More information about the llvm-commits mailing list