[PATCH] D142865: [RISCV] Use custom operand parsing for FenceArg.
Luís Marques via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 30 01:19:15 PST 2023
luismarques added inline comments.
================
Comment at: llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp:1854-1865
+ case 'i':
+ Imm |= RISCVFenceField::I;
+ break;
+ case 'o':
+ Imm |= RISCVFenceField::O;
+ break;
+ case 'r':
----------------
In a follow-up patch, we should reject repeated letters, like `iiorrrrrw`. Binutils seems to reject that, which IMO is the right decision.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142865/new/
https://reviews.llvm.org/D142865
More information about the llvm-commits
mailing list