[PATCH] D39894: [AArch64][SVE] Asm: Report SVE parsing diagnostics only once

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 10 03:29:16 PST 2017


sdesmalen created this revision.
Herald added subscribers: kristof.beyls, tschuett, javed.absar, aemerson.

Prevent an issue where a diagnostic is reported multiple times by bailing out with a ParseFail if an invalid SVE register element qualifier/suffix is specified, for example:

<stdin>:10:18: error: invalid sve vector kind qualifier
 add z20.h, z2.h, z31.x

  ^

<stdin>:10:18: error: invalid sve vector kind qualifier
 add z20.h, z2.h, z31.x

...

<stdin>:10:18: error: invalid sve vector kind qualifier
 add z20.h, z2.h, z31.x

  ^


https://reviews.llvm.org/D39894

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39894.122412.patch
Type: text/x-patch
Size: 6768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171110/024706bf/attachment.bin>


More information about the llvm-commits mailing list