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 | ||
---|---|---|
1–2 | 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. | |
13 | HasDSP is not an encoding predicate, it belongs in InsnPredicates. | |
lib/Target/Mips/MipsSEISelLowering.cpp | ||
935–936 | !hasDSPR3() is redundant here. The predicates are cumulative so you have have DSPR3 without also having DSPR2. | |
948–949 | !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.