llvm-project/llvm/lib/Target/AArch64/MCTargetDesc
Peter Smith 57f661bd7d [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
..
AArch64AddressingModes.h [AArch64][SVE] Fix range for DUP immediates (16bit elts) 2018-06-04 07:24:23 +00:00
AArch64AsmBackend.cpp [MC] Pass MCSubtargetInfo to fixupNeedsRelaxation and applyFixup 2018-06-06 09:40:06 +00:00
AArch64ELFObjectWriter.cpp MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
AArch64ELFStreamer.cpp MC: Change the streamer ctors to take an object writer instead of a stream. NFCI. 2018-05-18 18:26:45 +00:00
AArch64ELFStreamer.h MC: Change the streamer ctors to take an object writer instead of a stream. NFCI. 2018-05-18 18:26:45 +00:00
AArch64FixupKinds.h Don't repeat name in comments. 80 columns. NFC. 2017-06-28 14:59:30 +00:00
AArch64MCAsmInfo.cpp [AArch64] Allow using emulated tls on platforms other than ELF 2017-12-04 09:09:04 +00:00
AArch64MCAsmInfo.h [COFF, ARM64] Use '//' as comment character in assembly files in GNU environments 2017-08-13 19:42:05 +00:00
AArch64MCCodeEmitter.cpp [AArch64][SVE] Asm: Support for DUP (immediate) instructions. 2018-05-25 09:47:52 +00:00
AArch64MCExpr.cpp [AArch64] Add support for secrel add/load/store relocations for COFF 2018-03-01 20:42:28 +00:00
AArch64MCExpr.h [AArch64] Add support for secrel add/load/store relocations for COFF 2018-03-01 20:42:28 +00:00
AArch64MCTargetDesc.cpp MC: Change the streamer ctors to take an object writer instead of a stream. NFCI. 2018-05-18 18:26:45 +00:00
AArch64MCTargetDesc.h MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
AArch64MachObjectWriter.cpp MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
AArch64TargetStreamer.cpp
AArch64TargetStreamer.h
AArch64WinCOFFObjectWriter.cpp MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
AArch64WinCOFFStreamer.cpp MC: Change the streamer ctors to take an object writer instead of a stream. NFCI. 2018-05-18 18:26:45 +00:00
AArch64WinCOFFStreamer.h MC: Change the streamer ctors to take an object writer instead of a stream. NFCI. 2018-05-18 18:26:45 +00:00
CMakeLists.txt [COFF, ARM64] Add support for Windows ARM64 COFF format 2017-06-27 23:58:19 +00:00
LLVMBuild.txt