[PATCH] D45427: [AArch64][AsmParser] Unify code for parsing Neon/SVE vectors.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 02:34:26 PDT 2018


sdesmalen created this revision.
sdesmalen added reviewers: fhahn, rengolin, javed.absar, huntergr, SjoerdMeijer, t.p.northover, echristo, evandro.
Herald added subscribers: kristof.beyls, tschuett.

Merged 'tryMatchVectorRegister' (specific to Neon) and
'tryParseSVERegister' into a single 'tryParseVectorRegister' function, and
created a generic 'parseVectorKind()' function that returns the #Elements
and ElementWidth of a vector suffix. This reduces the duplication of
this functionality between two the vector implementations.

This is patch [1/6] in a series to add assembler/disassembler support for
SVE's contiguous ST1 (scalar+imm) instructions.


https://reviews.llvm.org/D45427

Files:
  lib/Target/AArch64/AArch64RegisterInfo.td
  lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
  test/MC/AArch64/SVE/add-diagnostics.s
  test/MC/AArch64/SVE/sub-diagnostics.s
  test/MC/AArch64/SVE/zip1-diagnostics.s
  test/MC/AArch64/SVE/zip2-diagnostics.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45427.141601.patch
Type: text/x-patch
Size: 19466 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180409/9645bca0/attachment.bin>


More information about the llvm-commits mailing list