[PATCH] D142865: [RISCV] Use custom operand parsing for FenceArg.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 29 22:00:18 PST 2023


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

Rather than parsing a symbol and checking its name, look for an
identifier during parsing.

I've also handled the 0 immediate during parsing, though we could
let that go through the normal immediate parsing if we need to support
expressions that evaluate to 0. We don't have tests for that currently.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142865

Files:
  llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfo.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142865.493199.patch
Type: text/x-patch
Size: 7592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230130/56f5a6aa/attachment.bin>


More information about the llvm-commits mailing list