This patch tidies up and organises properly ARM.td so that it is easier to understand and extend in the future.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Looks like a NFC to me. I left some inline comments, mostly potential indentation issues and some comments I think are worth keeping, unless I missed something and they are invalid now.
lib/Target/ARM/ARM.td | ||
---|---|---|
88 ↗ | (On Diff #106006) | Indent is off |
119 ↗ | (On Diff #106006) | Indent is now off, as in the line below |
141 ↗ | (On Diff #106006) | Indent is off |
191 ↗ | (On Diff #106006) | Indent is off now |
255 ↗ | (On Diff #106006) | Indent is off |
299 ↗ | (On Diff #106006) | Indent is off now I think |
615 ↗ | (On Diff #106006) | This is still true (it still uses CortexA8Model if I am not mistaken) and the fixme is still valid I think? Shouldn't we keep this fimex? |
659 ↗ | (On Diff #106006) | This is still true (it still uses CortexA9Model if I am not mistaken) and the fixme is still valid I think? Shouldn't we keep this fimex? |
669 ↗ | (On Diff #106006) | This is still true (it still uses CortexA9Model if I am not mistaken) and the fixme is still valid I think? Shouldn't we keep this fimex? |
681 ↗ | (On Diff #106006) | This is still true (it still uses CortexA9Model if I am not mistaken) and the fixme is still valid I think? Shouldn't we keep this fimex? |
723 ↗ | (On Diff #106006) | This is still true (it still uses CortexA8Model if I am not mistaken) and the fixme is still valid I think? |
728 ↗ | (On Diff #106006) | This is still true (it still uses CortexA8Model if I am not mistaken) and the fixme is still valid I think? |
737 ↗ | (On Diff #106006) | This is still true (it still uses CortexA8Model if I am not mistaken) and the fixme is still valid I think? |
747 ↗ | (On Diff #106006) | This is still true (it still uses CortexA8Model if I am not mistaken) and the fixme is still valid I think? |
838 ↗ | (On Diff #106006) | This comment is still true, no? |
915 ↗ | (On Diff #106006) | This comment is still true, no? |
934 ↗ | (On Diff #106006) | Do we need this empty comment line? |
942 ↗ | (On Diff #106006) | Do we need this empty comment line? |
953 ↗ | (On Diff #106006) | Do we need this comment line? |
Thanks Florian. I will fix the indents where I missed out.
Regarding comments 'FIXME: XYZ has currently the same ProcessorModel as ABC', I removed the comments as they are unnecessary clutter repeated over and over in the file. The model used is explicit in next line e.g. "cyclone", swiftmodel .. ", and from the names it is clear that it is using a different model temporarily.
I don't mind either way about the comments, I think they might be valuable, as the FIXME makes the problem explicit (and grep-able), but it's very unlikely that anybody not familiar with the problem will come along and pick it up because of the FIXMEs. Just go with what @rovka or @rengolin prefer :)
Hi Florian:
I have fixed the changes you mentioned. For the mode 'fixme' I put in a common generic FIXME as reminder.
Thanks
I've spotted a few more cases where the indentation looks slightly off.
Besides those nits, LGTM. Please fix them before committing and hold off committing the change until tomorrow evening, so Renato and Diana have a little bit more time to raise concerns.
lib/Target/ARM/ARM.td | ||
---|---|---|
60 ↗ | (On Diff #106238) | Indent off? |
92 ↗ | (On Diff #106238) | Indent off |
180 ↗ | (On Diff #106238) | indent off? |
236 ↗ | (On Diff #106238) | indent off? |
265 ↗ | (On Diff #106238) | indent off? |
276 ↗ | (On Diff #106238) | indent off? |
280 ↗ | (On Diff #106238) | Indent off? |
361 ↗ | (On Diff #106238) | indent off? |
387 ↗ | (On Diff #106238) | alignment off by 1 space? |
402 ↗ | (On Diff #106238) | alignment looks off by 2 spaces (same for the line below) |
760 ↗ | (On Diff #106238) | multiple spaces after and |
Thanks Florian.
Sure, will make the changes and wait till tomorrow before committing, in case Renato or Diana have further comments.
I don't see anything wrong with this.
I'm not a huge fan of splitting string literals, since it makes it harder to grep for things, but I see there was already some precedent for that in the file and I assume this is what clang-format does too, so it's fine.
lib/Target/ARM/ARM.td | ||
---|---|---|
23 ↗ | (On Diff #106382) | Nitpick: maybe move this down to line 469-ish, where the architectures are defined? At a superficial glance it doesn't seem to be needed before that. |
In AArch64.td strings literals are either split up or the following indentation pattern is used
def FeatureSlowPaired128 : SubtargetFeature<"slow-paired-128", "Paired128IsSlow", "true", "Paired 128 bit loads and stores are slow">; def FeatureAlternateSExtLoadCVTF32Pattern : SubtargetFeature< "alternate-sextload-cvt-f32-pattern", "UseAlternateSExtLoadCVTF32Pattern", "true", "Use alternative pattern for sextload convert to f32">;
lib/Target/ARM/ARM.td | ||
---|---|---|
250 ↗ | (On Diff #106382) | indent off |
257 ↗ | (On Diff #106382) | indent off |
284 ↗ | (On Diff #106382) | indent off |