1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/lib/Target/AArch64/MCTargetDesc
Alex Bradbury 07f78926fb Thread MCSubtargetInfo through Target::createMCAsmBackend
Currently it's not possible to access MCSubtargetInfo from a TgtMCAsmBackend. 
D20830 threaded an MCSubtargetInfo reference through 
MCAsmBackend::relaxInstruction, but this isn't the only function that would 
benefit from access. This patch removes the Triple and CPUString arguments 
from createMCAsmBackend and replaces them with MCSubtargetInfo.

This patch just changes the interface without making any intentional 
functional changes. Once in, several cleanups are possible:
* Get rid of the awkward MCSubtargetInfo handling in ARMAsmBackend
* Support 16-bit instructions when valid in MipsAsmBackend::writeNopData
* Get rid of the CPU string parsing in X86AsmBackend and just use a SubtargetFeature for HasNopl
* Emit 16-bit nops in RISCVAsmBackend::writeNopData if the compressed instruction set extension is enabled (see D41221)

This change initially exposed PR35686, which has since been resolved in r321026.

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

llvm-svn: 321692
2018-01-03 08:53:05 +00:00
..
AArch64AddressingModes.h
AArch64AsmBackend.cpp Thread MCSubtargetInfo through Target::createMCAsmBackend 2018-01-03 08:53:05 +00:00
AArch64ELFObjectWriter.cpp [MC] Thread unique_ptr<MCObjectWriter> through the create.*ObjectWriter 2017-10-10 16:28:07 +00:00
AArch64ELFStreamer.cpp Clear LastMappingSymbols and LastEMS(Info) when resetting the ARM(AArch64)ELFStreamer 2017-10-26 17:36:43 +00:00
AArch64ELFStreamer.h [MC] Have MCObjectStreamer take its MCAsmBackend argument via unique_ptr. 2017-10-11 23:34:47 +00:00
AArch64FixupKinds.h Don't repeat name in comments. 80 columns. NFC. 2017-06-28 14:59:30 +00:00
AArch64MachObjectWriter.cpp [MC] Thread unique_ptr<MCObjectWriter> through the create.*ObjectWriter 2017-10-10 16:28:07 +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] Remove unused MC function 2017-08-14 09:16:13 +00:00
AArch64MCExpr.cpp Remove redundant includes from lib/Target/AArch64. 2017-12-13 21:31:16 +00:00
AArch64MCExpr.h [AArch64] ILP32 Backend Relocation Support 2017-05-02 22:01:48 +00:00
AArch64MCTargetDesc.cpp [MC] Have MCObjectStreamer take its MCAsmBackend argument via unique_ptr. 2017-10-11 23:34:47 +00:00
AArch64MCTargetDesc.h Thread MCSubtargetInfo through Target::createMCAsmBackend 2018-01-03 08:53:05 +00:00
AArch64TargetStreamer.cpp [AArch64, Lanai] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-06 00:30:53 +00:00
AArch64TargetStreamer.h
AArch64WinCOFFObjectWriter.cpp [MC] Thread unique_ptr<MCObjectWriter> through the create.*ObjectWriter 2017-10-10 16:28:07 +00:00
AArch64WinCOFFStreamer.cpp [AArch64] Use dwarf exception handling on MinGW 2017-11-03 07:33:20 +00:00
AArch64WinCOFFStreamer.h [MC] Have MCObjectStreamer take its MCAsmBackend argument via unique_ptr. 2017-10-11 23:34:47 +00:00
CMakeLists.txt [COFF, ARM64] Add support for Windows ARM64 COFF format 2017-06-27 23:58:19 +00:00
LLVMBuild.txt