llvm-mirror/lib/Target/Mips/MCTargetDesc
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
..
CMakeLists.txt
LLVMBuild.txt
MipsABIFlagsSection.cpp [Mips] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-01 01:22:51 +00:00
MipsABIFlagsSection.h [mips] Add support for Global INValidate ASE 2018-05-17 16:30:32 +00:00
MipsABIInfo.cpp [mips] Eliminate else-after-return. NFC 2016-12-10 17:30:09 +00:00
MipsABIInfo.h [mips] Optimize stack pointer adjustments. 2016-06-14 13:39:43 +00:00
MipsAsmBackend.cpp [MC] Pass MCSubtargetInfo to fixupNeedsRelaxation and applyFixup 2018-06-06 09:40:06 +00:00
MipsAsmBackend.h [MC] Pass MCSubtargetInfo to fixupNeedsRelaxation and applyFixup 2018-06-06 09:40:06 +00:00
MipsBaseInfo.h [mips] Correct c.cond.fmt instruction definition. 2017-01-16 13:55:58 +00:00
MipsELFObjectWriter.cpp [mips] Extend list of relocations supported by the .reloc directive 2018-06-01 16:37:42 +00:00
MipsELFStreamer.cpp MC: Change the streamer ctors to take an object writer instead of a stream. NFCI. 2018-05-18 18:26:45 +00:00
MipsELFStreamer.h MC: Change the streamer ctors to take an object writer instead of a stream. NFCI. 2018-05-18 18:26:45 +00:00
MipsFixupKinds.h [mips] Emit R_MICROMIPS_GPREL16/R_MICROMIPS_SUB/R_MICROMIPS_LO16 / HI16 relocations 2018-05-29 11:33:54 +00:00
MipsMCAsmInfo.cpp [mips] Enable IAS by default for Android MIPS64 2017-07-21 14:25:42 +00:00
MipsMCAsmInfo.h
MipsMCCodeEmitter.cpp [mips] Emit R_MICROMIPS_GPREL16/R_MICROMIPS_SUB/R_MICROMIPS_LO16 / HI16 relocations 2018-05-29 11:33:54 +00:00
MipsMCCodeEmitter.h [mips] Add movep for microMIPS32R6 and fix microMIPS32r3 version 2017-11-06 12:59:53 +00:00
MipsMCExpr.cpp [mips] Fix PR35140 2017-11-06 10:50:04 +00:00
MipsMCExpr.h [Mips] Fix some Include What You Use warnings; other minor fixes (NFC). 2017-02-03 23:39:33 +00:00
MipsMCNaCl.h MC: Change the streamer ctors to take an object writer instead of a stream. NFCI. 2018-05-18 18:26:45 +00:00
MipsMCTargetDesc.cpp MC: Change the streamer ctors to take an object writer instead of a stream. NFCI. 2018-05-18 18:26:45 +00:00
MipsMCTargetDesc.h MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
MipsNaClELFStreamer.cpp MC: Change the streamer ctors to take an object writer instead of a stream. NFCI. 2018-05-18 18:26:45 +00:00
MipsOptionRecord.cpp Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
MipsTargetStreamer.cpp [mips] Add support for Global INValidate ASE 2018-05-17 16:30:32 +00:00