This switches the ARM AsmParser to use assembly operand diagnostics from
tablegen, rather than a switch statement on the ARMMatchResultTy. It
moves the existing diagnostic strings to tablegen, but adds no new ones,
so this is NFC except for one diagnostic string that had an off-by-1 error
in the hand-written switch statement.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/ARM/AsmParser/ARMAsmParser.cpp | ||
---|---|---|
10089 | Quick question: why is the switch still here if the only case is the default? |
lib/Target/ARM/AsmParser/ARMAsmParser.cpp | ||
---|---|---|
10089 | This will be used once we have operands that need diags that differ depending on subtarget features. Most of these on ARM are register classes, which we can't currently emit diagnostics for, but I have a prototype that allows that. |
lib/Target/ARM/AsmParser/ARMAsmParser.cpp | ||
---|---|---|
10089 | Right. Maybe we should just remove this for now, and add it back when you add the new code. |
Remove getCustomOperandDiag until it's actually needed.
This is dependent on D31530, so I'll commit it once that one is committed.
Quick question: why is the switch still here if the only case is the default?