OSDN Git Service

[ARM] Use new assembler diags for ARM
authorOliver Stannard <oliver.stannard@arm.com>
Tue, 3 Oct 2017 10:26:11 +0000 (10:26 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Tue, 3 Oct 2017 10:26:11 +0000 (10:26 +0000)
commit4bdc127326dabb050244a23c900fdfdd8a9d0a31
tree81d7a9b2e7dc1328d57c91edff2dc1b46f28b1a7
parent26693c769c99d58da5c221e9822f3909ca7d7cbf
[ARM] Use new assembler diags for ARM

This converts the ARM AsmParser to use the new assembly matcher error
reporting mechanism, which allows errors to be reported for multiple
instruction encodings when it is ambiguous which one the user intended
to use.

By itself this doesn't improve many error messages, because we don't have
diagnostic text for most operand types, but as we add that then this will allow
more of those diagnostic strings to be used when they are relevant.

Differential revision: https://reviews.llvm.org/D31530

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314779 91177308-0d34-0410-b5e6-96231b3b80d8
43 files changed:
lib/Target/ARM/ARM.td
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/arm-branch-errors.s
test/MC/ARM/basic-arm-instructions-v8.1a.s
test/MC/ARM/basic-arm-instructions-v8.s
test/MC/ARM/basic-thumb2-instructions-v8.s
test/MC/ARM/cps.s
test/MC/ARM/diagnostics.s
test/MC/ARM/directive-arch_extension-fp.s
test/MC/ARM/directive-arch_extension-idiv.s
test/MC/ARM/fp-const-errors.s
test/MC/ARM/fullfp16-neg.s
test/MC/ARM/fullfp16-neon-neg.s
test/MC/ARM/invalid-fp-armv8.s
test/MC/ARM/invalid-hint-thumb.s
test/MC/ARM/invalid-idiv.s
test/MC/ARM/invalid-neon-v8.s
test/MC/ARM/invalid-special-reg.s
test/MC/ARM/ldr-pseudo-unpredictable.s
test/MC/ARM/ldrd-strd-gnu-arm-bad-imm.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/negative-immediates-thumb1.s
test/MC/ARM/negative-immediates.s
test/MC/ARM/neon-complex.s
test/MC/ARM/neon-vld-vst-align.s
test/MC/ARM/not-armv4.s
test/MC/ARM/single-precision-fp.s
test/MC/ARM/t2-modified-immediate-fixup-error2.s
test/MC/ARM/thumb-diagnostics.s
test/MC/ARM/thumb-mov.s
test/MC/ARM/thumb-not-mclass.s
test/MC/ARM/thumb2-bxj-v8.s
test/MC/ARM/thumb2-bxj.s
test/MC/ARM/thumb2-diagnostics.s
test/MC/ARM/thumb2-dsp-diag.s
test/MC/ARM/thumbv7m.s
test/MC/ARM/thumbv8m.s
test/MC/ARM/udf-thumb-2-diagnostics.s
test/MC/ARM/udf-thumb-diagnostics.s
test/MC/ARM/vfp4.s
test/MC/ARM/vmrs_vmsr.s