[PATCH] D36692: [ARM, Asm] Add diagnostics for general-purpose register operands

Oliver Stannard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 14 09:26:12 PDT 2017


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

This adds diagnostic strings for the ARM general-purpose register
classes, which will be used when these classes are expected by the
assembler, but the provided operand is not valid.

One of these, rGPR, requires C++ code to select the correct error
message, as that class contains different registers in pre-v8 and v8
targets. The rest can all have their diagnostic strings stored in the
tablegen description of them.


Repository:
  rL LLVM

https://reviews.llvm.org/D36692

Files:
  lib/Target/ARM/ARMRegisterInfo.td
  lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  test/MC/ARM/basic-thumb2-instructions-v8.s
  test/MC/ARM/diagnostics.s
  test/MC/ARM/ldrd-strd-gnu-thumb-bad-regs.s
  test/MC/ARM/lsl-zero-errors.s
  test/MC/ARM/negative-immediates-fail.s
  test/MC/ARM/negative-immediates-thumb1-fail.s
  test/MC/ARM/register-token-source-loc.s
  test/MC/ARM/thumb-branch-errors.s
  test/MC/ARM/thumb-diagnostics.s
  test/MC/ARM/thumb-mov.s
  test/MC/ARM/thumb2-diagnostics.s
  test/MC/ARM/thumb2-strd.s
  test/MC/ARM/thumbv8m.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36692.111003.patch
Type: text/x-patch
Size: 26819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170814/326769a1/attachment.bin>


More information about the llvm-commits mailing list