llvm-6502/lib/CodeGen/AsmPrinter
Daniel Sanders 38c6b58eec Re-commit: Demote EmitRawText call in AsmPrinter::EmitInlineAsm() and remove hasRawTextSupport() call
Summary:
AsmPrinter::EmitInlineAsm() will no longer use the EmitRawText() call for
targets with mature MC support. Such targets will always parse the inline
assembly (even when emitting assembly). Targets without mature MC support
continue to use EmitRawText() for assembly output.

The hasRawTextSupport() check in AsmPrinter::EmitInlineAsm() has been replaced
with MCAsmInfo::UseIntegratedAs which when true, causes the integrated assembler
to parse inline assembly (even when emitting assembly output). UseIntegratedAs
is set to true for targets that consider any failure to parse valid assembly
to be a bug. Target specific subclasses generally enable the integrated
assembler in their constructor. The default value can be overridden with
-no-integrated-as.

All tests that rely on inline assembly supporting invalid assembly (for example,
those that use mnemonics such as 'foo' or 'hello world') have been updated to
disable the integrated assembler.

Changes since review (and last commit attempt):
- Fixed test failures that were missed due to configuration of local build.
  (fixes crash.ll and a couple others).
- Fixed tests that happened to pass because the local build was on X86
  (should fix 2007-12-17-InvokeAsm.ll)
- mature-mc-support.ll's should no longer require all targets to be compiled.
  (should fix ARM and PPC buildbots)
- Object output (-filetype=obj and similar) now forces the integrated assembler
  to be enabled regardless of default setting or -no-integrated-as.
  (should fix SystemZ buildbots)

Reviewers: rafael

Reviewed By: rafael

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D2686



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201333 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-13 14:44:26 +00:00
..
ARMException.cpp Enable EHABI by default 2014-01-29 11:50:56 +00:00
AsmPrinter.cpp Debug info: Bugfix for r201190: DW_OP_piece takes bytes, not bits. 2014-02-12 19:34:44 +00:00
AsmPrinterDwarf.cpp Use a consistent argument order in TargetLoweringObjectFile. 2014-02-09 14:50:44 +00:00
AsmPrinterHandler.h Remove weak vtables. No functional change. 2013-12-14 12:23:14 +00:00
AsmPrinterInlineAsm.cpp Re-commit: Demote EmitRawText call in AsmPrinter::EmitInlineAsm() and remove hasRawTextSupport() call 2014-02-13 14:44:26 +00:00
CMakeLists.txt Reland r200340 - 'Add line table debug info to COFF files when using a win32 triple' 2014-01-30 01:39:17 +00:00
DIE.cpp Remove some unused #includes 2014-02-01 13:12:54 +00:00
DIE.h Re-sort all of the includes with ./utils/sort_includes.py so that 2014-01-07 11:48:04 +00:00
DIEHash.cpp Add support for DW_FORM_flag and DW_FORM_flag_present to the DIE hashing 2014-01-31 20:02:58 +00:00
DIEHash.h Formatting and 80-col. 2013-11-19 09:28:34 +00:00
DwarfAccelTable.cpp Rename DwarfUnits to DwarfFile to help avoid some naming confusion. 2013-12-05 18:06:10 +00:00
DwarfAccelTable.h Rename DwarfUnits to DwarfFile to help avoid some naming confusion. 2013-12-05 18:06:10 +00:00
DwarfCFIException.cpp Pass the Mangler by reference. 2014-02-08 14:53:28 +00:00
DwarfDebug.cpp Fix some formatting in my last commit (r201196) 2014-02-12 00:32:05 +00:00
DwarfDebug.h DwarfUnit: Provide a reference to a defining DwarfCompileUnit from DwarfTypeUnit. 2014-02-12 00:31:30 +00:00
DwarfException.cpp Move the llvm mangler to lib/IR. 2014-01-07 21:19:40 +00:00
DwarfException.h Reland 196270 "Generalize debug info / EH emission in AsmPrinter" 2013-12-03 15:10:23 +00:00
DwarfUnit.cpp Reformat a few lines with clang-format. 2014-02-12 22:47:09 +00:00
DwarfUnit.h Fix some formatting in my last commit (r201196) 2014-02-12 00:32:05 +00:00
ErlangGCPrinter.cpp Re-sort all of the includes with ./utils/sort_includes.py so that 2014-01-07 11:48:04 +00:00
LLVMBuild.txt Add proper dependencies to LLVMBuild.txt in llvm/lib. 2013-12-10 05:39:34 +00:00
Makefile
OcamlGCPrinter.cpp Move the llvm mangler to lib/IR. 2014-01-07 21:19:40 +00:00
Win64Exception.cpp Pass the Mangler by reference. 2014-02-08 14:53:28 +00:00
WinCodeViewLineTables.cpp Reland r200340 - 'Add line table debug info to COFF files when using a win32 triple' 2014-01-30 01:39:17 +00:00
WinCodeViewLineTables.h Reland r200340 - 'Add line table debug info to COFF files when using a win32 triple' 2014-01-30 01:39:17 +00:00