llvm-project/llvm/lib/Target/X86/AsmParser
Nirav Dave 9fa8af2180 Defer asm errors to post-statement failure
Recommitting after fixing AsmParser Initialization.

Allow errors to be deferred and emitted as part of clean up to simplify
and shorten Assembly parser code. This will allow error messages to be
emitted in helper functions and be modified by the caller which has
better context.

As part of this many minor cleanups to the Parser:

* Unify parser cleanup on error
* Add Workaround for incorrect return values in ParseDirective instances
* Tighten checks on error-signifying return values for parser functions
  and fix in-tree TargetParsers to be more consistent with the changes.
* Fix AArch64 test cases checking for spurious error messages that are
  now fixed.

These changes should be backwards compatible with current Target Parsers
so long as the error status are correctly returned in appropriate
functions.

Reviewers: rnk, majnemer

Subscribers: aemerson, jyknight, llvm-commits

Differential Revision: https://reviews.llvm.org/D24047

llvm-svn: 281336
2016-09-13 13:55:06 +00:00
..
CMakeLists.txt [CMake] X86AsmParser: Prune redundant LINK_LIBS. 2015-09-29 01:25:01 +00:00
LLVMBuild.txt [X86] Remove X86CodeGen dependency from the AsmParser library. 2015-12-25 22:10:11 +00:00
X86AsmInstrumentation.cpp Move MCTargetAsmParser.h to llvm/MC/MCParser where it belongs. 2016-01-27 10:01:28 +00:00
X86AsmInstrumentation.h Reduce the size of MCRelaxableFragment. 2015-11-14 06:35:56 +00:00
X86AsmParser.cpp Defer asm errors to post-statement failure 2016-09-13 13:55:06 +00:00
X86AsmParserCommon.h One more batch of self-containing headers. 2016-01-27 19:29:56 +00:00
X86Operand.h AVX512F: Add GATHER/SCATTER assembler Intel syntax tests for knl/skx/avx . Change memory operand parser handling. 2016-02-25 13:30:17 +00:00