1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 05:23:45 +02:00
llvm-mirror/include/llvm/MC
Nirav Dave 66019b69d5 Defer asm errors to post-statement failure
Recommitting after fixing AsmParser initialization and X86 inline asm
error cleanup.

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: 281762
2016-09-16 18:30:20 +00:00
..
MCDisassembler [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
MCParser Defer asm errors to post-statement failure 2016-09-16 18:30:20 +00:00
ConstantPools.h [ARM,AArch64] Store source location of asm constant pool entries 2015-11-16 16:25:47 +00:00
MachineLocation.h [MC] Make another header NDEBUG-free. 2015-10-30 01:25:50 +00:00
MCAsmBackend.h Remove MCAsmInfo.h include from TargetOptions.h 2016-07-27 16:03:57 +00:00
MCAsmInfo.h [mips][ias] Support .dtprel[d]word and .tprel[d]word directives 2016-08-22 16:18:42 +00:00
MCAsmInfoCOFF.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MCAsmInfoDarwin.h Recommit r224935 with a fix for the ObjC++/AArch64 bug that that revision 2015-01-09 18:55:42 +00:00
MCAsmInfoELF.h [WebAssembly] Don't create a needless .note.GNU-stack section 2016-01-15 23:59:13 +00:00
MCAsmLayout.h Merge MCSymbol and MCSymbolData. 2015-05-29 20:31:23 +00:00
MCAssembler.h Use the range variant of find instead of unpacking begin/end 2016-08-11 22:21:41 +00:00
MCCodeEmitter.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MCCodeView.h [codeview] Add new directives to record inlined call site line info 2016-09-07 16:15:31 +00:00
MCContext.h [MC] Move .cv_loc management logic out of MCContext 2016-08-26 17:58:37 +00:00
MCDirectives.h [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCDwarf.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
MCELFObjectWriter.h Prune some includes from headers and sink some inline functions 2016-06-22 23:23:08 +00:00
MCELFStreamer.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
MCExpr.h [mips] Use MipsMCExpr instead of MCSymbolRefExpr for all relocations. 2016-05-03 13:35:44 +00:00
MCFixedLenDisassembler.h [TableGen] Improve decoding options for non-orthogonal instructions 2015-07-15 08:04:27 +00:00
MCFixup.h [mips][ias] Support .dtprel[d]word and .tprel[d]word directives 2016-08-22 16:18:42 +00:00
MCFixupKindInfo.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MCFragment.h [codeview] Add new directives to record inlined call site line info 2016-09-07 16:15:31 +00:00
MCInst.h [MC] Allowing operands to be erased from MCInst. 2015-06-04 19:49:52 +00:00
MCInstBuilder.h MC: Modernize MCOperand API naming. NFC. 2015-05-13 18:37:00 +00:00
MCInstPrinter.h [LLVM] Fix some Clang-tidy modernize-use-using and Include What You Use warnings 2016-08-18 17:56:27 +00:00
MCInstrAnalysis.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MCInstrDesc.h MCInstrDesc: this fixes an issue setting/getting member Flags, which 2016-09-14 14:32:17 +00:00
MCInstrInfo.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MCInstrItineraries.h Fix typo in comment. NFC. 2015-11-18 15:02:59 +00:00
MCLabel.h MC: Tidy up formatting a bit. NFC. 2015-06-01 23:55:02 +00:00
MCLinkerOptimizationHint.h Prune some includes from headers and sink some inline functions 2016-06-22 23:23:08 +00:00
MCMachObjectWriter.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
MCObjectFileInfo.h Move code only used by codegen out of MC. NFC. 2016-08-29 12:33:42 +00:00
MCObjectStreamer.h [codeview] Add new directives to record inlined call site line info 2016-09-07 16:15:31 +00:00
MCObjectWriter.h Move MCTargetAsmParser.h to llvm/MC/MCParser where it belongs. 2016-01-27 10:01:28 +00:00
MCRegisterInfo.h Avoid accessing LLVM/DWARF register mappings if undefined 2016-08-12 23:12:59 +00:00
MCSchedule.h [MCSchedule] Remove comments about MinLatency. NFC 2016-03-14 00:36:19 +00:00
MCSection.h MC: Move MCSection::begin/end to header, NFC 2016-09-12 00:17:09 +00:00
MCSectionCOFF.h [MC] Handle discardable COFF sections in assembly 2016-09-14 22:41:50 +00:00
MCSectionELF.h Recommit 270977 - [llvm-mc] - Teach llvm-mc to generate zlib styled compression sections. 2016-05-27 12:27:32 +00:00
MCSectionMachO.h Use non virtual destructors for sections. 2015-10-07 13:46:06 +00:00
MCStreamer.h [codeview] Add new directives to record inlined call site line info 2016-09-07 16:15:31 +00:00
MCSubtargetInfo.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
MCSymbol.h Use the same underlying type for bitfields 2016-06-24 04:05:25 +00:00
MCSymbolCOFF.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MCSymbolELF.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MCSymbolMachO.h Add missing include. Should fix modules builds. 2016-06-23 07:30:12 +00:00
MCTargetOptions.h Remove MCAsmInfo.h include from TargetOptions.h 2016-07-27 16:03:57 +00:00
MCTargetOptionsCommandFlags.h [MC, COFF] Support link /incremental conditionally 2015-12-21 22:09:27 +00:00
MCValue.h ELF can handle some relocations of the form -sym + constant. 2015-11-02 19:13:59 +00:00
MCWin64EH.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
MCWinCOFFObjectWriter.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MCWinCOFFStreamer.h [Assembler] Make fatal assembler errors non-fatal 2015-11-17 10:00:43 +00:00
MCWinEH.h [MC] Create unique .pdata sections for every .text section 2016-05-02 23:22:18 +00:00
SectionKind.h [X86] Create mergeable constant pool entries for AVX 2016-02-22 22:23:11 +00:00
StringTableBuilder.h Make StringTableBuilder to cache hash values. 2016-05-06 00:51:58 +00:00
SubtargetFeature.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00