llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc
Alex Bradbury b22f751fa7 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
..
CMakeLists.txt
LLVMBuild.txt
PPCAsmBackend.cpp Thread MCSubtargetInfo through Target::createMCAsmBackend 2018-01-03 08:53:05 +00:00
PPCELFObjectWriter.cpp [MC] Thread unique_ptr<MCObjectWriter> through the create.*ObjectWriter 2017-10-10 16:28:07 +00:00
PPCFixupKinds.h Don't repeat name in comment and format. NFC. 2017-06-28 17:23:13 +00:00
PPCMCAsmInfo.cpp PowerPC: support the separator character in the IAS 2017-10-24 16:19:56 +00:00
PPCMCAsmInfo.h
PPCMCCodeEmitter.cpp [PowerPC] Ensure displacements for DQ-Form instructions are multiples of 16 2017-07-13 18:17:10 +00:00
PPCMCExpr.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
PPCMCExpr.h
PPCMCTargetDesc.cpp First step towards more human-friendly PPC assembler output: 2017-11-29 23:05:56 +00:00
PPCMCTargetDesc.h Thread MCSubtargetInfo through Target::createMCAsmBackend 2018-01-03 08:53:05 +00:00
PPCMachObjectWriter.cpp [MC] Thread unique_ptr<MCObjectWriter> through the create.*ObjectWriter 2017-10-10 16:28:07 +00:00
PPCPredicates.cpp
PPCPredicates.h [PowerPC] enable optimizeCompareInstr for branch with static branch hint 2017-07-27 08:14:48 +00:00