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.
Paths
| Differential D142833
[RISCV] Move FRM parsing in the assembler to a custom operand parser. ClosedPublic Authored by craig.topper on Jan 28 2023, 11:45 PM.
Details Summary Previously we parsed it as a symbol, and then accessed the name. This adds a custom parser that looks for an Identifier token containing
Diff Detail
Event TimelineComment Actions LGTM.
This revision is now accepted and ready to land.Jan 29 2023, 11:36 AM
This revision was landed with ongoing or failed builds.Jan 29 2023, 12:25 PM Closed by commit rG2a45aa8dc2b9: [RISCV] Move FRM parsing in the assembler to a custom operand parser. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 493129 llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/RISCVInstrInfoF.td
|
I suppose you kept this because it was easier to initialize it (vs asserting on access), rather than it actually being needed for a rounding mode operand?