Details
Diff Detail
Event Timeline
LGTM with a few nits.
I noticed you don't actually use DSPR3 yet but I expect will change in the next few patches.
lib/Target/Mips/MicroMipsDSPInstrFormats.td | ||
---|---|---|
2–3 | Unfortunately, this has to be a single line and we have to fit into 80 cols as well. The '-*- tablegen -*-' is used by editors to configure for the specified language. The 'Micromips DSP' part is probably the best bit to remove. | |
14 | HasDSP is not an encoding predicate, it belongs in InsnPredicates. | |
lib/Target/Mips/MipsSEISelLowering.cpp | ||
935–937 | !hasDSPR3() is redundant here. The predicates are cumulative so you have have DSPR3 without also having DSPR2. | |
948–950 | !hasDSPR3() is redundant here. The predicates are cumulative so you have have DSPR3 without also having DSPR2. |
Unfortunately, this has to be a single line and we have to fit into 80 cols as well. The '-*- tablegen -*-' is used by editors to configure for the specified language.
The 'Micromips DSP' part is probably the best bit to remove.