Change process of parsing of optional operands. All optional operands use same parsing method - parseOptionalOperand().
No default values are added to OperandsVector.
Get rid of WORKAROUND_USE_DUMMY_OPERANDS_INSTEAD_MUTIPLE_DEFAULT_OPERANDS.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Please go ahead after minor fixing. Overall, good job, thanks!
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp | ||
---|---|---|
93 ↗ | (On Diff #58108) | There are many places like this, with comments which look useless. If you plan to get rid of those later, please put TODO or FIXME (or use #ifdef). Otherwise, remove. |
2664 ↗ | (On Diff #58108) | newline |
Comment Actions
I love to delete code.
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp | ||
---|---|---|
2250 ↗ | (On Diff #58209) | while this can be submitted for now I think this can be enhanced to determine optional parser by operand prefix. Most of them starts with identifier (except for bits that may have "no" before them) which can be used as a key to select optional operand parser. |