llvm-mirror/lib/MC/MCParser
Peter Smith 7d816e3012 [MC] Pass MCSubtargetInfo to fixupNeedsRelaxation and applyFixup
On targets like Arm some relaxations may only be performed when certain
architectural features are available. As functions can be compiled with
differing levels of architectural support we must make a judgement on
whether we can relax based on the MCSubtargetInfo for the function. This
change passes through the MCSubtargetInfo for the function to
fixupNeedsRelaxation so that the decision on whether to relax can be made
per function. In this patch, only the ARM backend makes use of this
information. We must also pass the MCSubtargetInfo to applyFixup because
some fixups skip error checking on the assumption that relaxation has
occurred, to prevent code-generation errors applyFixup must see the same
MCSubtargetInfo as fixupNeedsRelaxation.

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

llvm-svn: 334078
2018-06-06 09:40:06 +00:00
..
AsmLexer.cpp [MC] Fix regression tests on Windows when git “core.autocrlf” is set to true. 2017-11-17 21:59:43 +00:00
AsmParser.cpp [MC] Pass MCSubtargetInfo to fixupNeedsRelaxation and applyFixup 2018-06-06 09:40:06 +00:00
CMakeLists.txt
COFFAsmParser.cpp Reland "Emit Function IDs table for Control Flow Guard" 2018-01-09 23:49:30 +00:00
DarwinAsmParser.cpp Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
ELFAsmParser.cpp [MC] Add assembler support for .cg_profile. 2018-06-02 16:33:01 +00:00
LLVMBuild.txt
MCAsmLexer.cpp [Asm] Refactor debug printing of AsmToken 2018-03-06 14:02:14 +00:00
MCAsmParser.cpp [MC][X86] Allow assembler variable assignment to register name. 2018-06-05 15:13:39 +00:00
MCAsmParserExtension.cpp
MCTargetAsmParser.cpp [Asm] Add debug tracing in table-generated assembly matcher 2017-10-11 09:17:43 +00:00