[PATCH] D42294: [AArch64][AsmParser] NFC: Generalize LogicalImm[Not](32|64) code

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 05:40:54 PST 2018


sdesmalen created this revision.
sdesmalen added reviewers: fhahn, rengolin, aadg, echristo, kristof.beyls, samparker.
Herald added subscribers: javed.absar, aemerson.

All variants of isLogicalImm[Not](32|64) can be combined into a single templated function, same for printLogicalImm(32|64).
By making it use a template instead, further SVE patches can use it for other data types as well (e.g. 8, 16 bits).


https://reviews.llvm.org/D42294

Files:
  lib/Target/AArch64/AArch64InstrFormats.td
  lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
  lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
  lib/Target/AArch64/InstPrinter/AArch64InstPrinter.h
  lib/Target/AArch64/MCTargetDesc/AArch64AddressingModes.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42294.130593.patch
Type: text/x-patch
Size: 8760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180119/695ef032/attachment.bin>


More information about the llvm-commits mailing list