This is a cleanup/rewrite of the parseSysAlias function. This was not using the tablegen instruction descriptions, but was “manually” matching the mnemonics and recreating the operands whereas all this information is already in tablegen, so all this code has been replaced with calls to lookupXYZByName tablegen calls.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Much better! The error messages are already being tested, and you haven't changed a bit, so they should be fine.
LGTM, thanks!
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp | ||
---|---|---|
2337 ↗ | (On Diff #90140) | If the target parser was already connected to table-gen, this wouldn't be necessary. :( |
2421 ↗ | (On Diff #90140) | Its a shame these are completely different namespaces. The code could have been so much simpler. :) |
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp | ||
---|---|---|
2421 ↗ | (On Diff #90140) | Thanks for reviewing! I agree and I am also not entirely happy yet as there is still a bit of code repetition going on here. But this is (almost infinitely) better than it was, and I will see if I can address this in a next cleanup. Cheers. |