[PATCH] D36219: [ARM] Tidy up banked registers encoding

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 06:59:32 PDT 2017


fhahn accepted this revision.
fhahn added a comment.
This revision is now accepted and ready to land.

LGTM, looks like a straight-forward improvement. I just have 2 nits. Please hold off with committing for a bit, so other people have time to voice concerns.



================
Comment at: lib/Target/ARM/AsmParser/ARMAsmParser.cpp:4178
 
   // The values here come from B9.2.3 of the ARM ARM, where bits 4-0 are SysM
   // and bit 5 is R.
----------------
Should this comment be moved to lib/Target/ARM/ARMSystemRegister.td too?


================
Comment at: lib/Target/ARM/Utils/ARMBaseInfo.cpp:46
+  namespace ARMBankedReg {
+#define GET_BANKEDREG_IMPL
+#include "ARMGenSystemRegister.inc"
----------------
not sure what the correct indentation for macros is, but this seems slightly inconsistent with lib/Target/ARM/Utils/ARMBaseInfo.h:69, where it was aligned with the code.


https://reviews.llvm.org/D36219





More information about the llvm-commits mailing list