[PATCH] D142833: [RISCV] Move FRM parsing in the assembler to a custom operand parser.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 28 23:45:07 PST 2023
craig.topper created this revision.
craig.topper added reviewers: asb, luismarques, jrtc27, reames, frasercrmck.
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, kito-cheng, 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.
Previously we parsed it as a symbol, and then accessed the name.
This works, but seems like an unusual way to do it.
This adds a custom parser that looks for an Identifier token containing
one of the valid FRM strings.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142833
Files:
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/RISCVInstrInfoF.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142833.493071.patch
Type: text/x-patch
Size: 5588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230129/bac833a3/attachment.bin>
More information about the llvm-commits
mailing list