llvm-project/llvm/lib/Target/Hexagon/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
HexagonAsmBackend.cpp Thread MCSubtargetInfo through Target::createMCAsmBackend 2018-01-03 08:53:05 +00:00
HexagonBaseInfo.h [Hexagon] Add support for Hexagon V65 2017-12-11 18:57:54 +00:00
HexagonELFObjectWriter.cpp [MC] Thread unique_ptr<MCObjectWriter> through the create.*ObjectWriter 2017-10-10 16:28:07 +00:00
HexagonFixupKinds.h [Hexagon] Change iconst to emit 27bit relocation 2017-05-02 18:19:11 +00:00
HexagonInstPrinter.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
HexagonInstPrinter.h [Hexagon] Change the vector scaling for vector offsets 2017-04-06 17:28:21 +00:00
HexagonMCAsmInfo.cpp [Hexagon] Update MCTargetDesc 2017-02-06 19:35:46 +00:00
HexagonMCAsmInfo.h
HexagonMCChecker.cpp [Hexagon] Add support for Hexagon V65 2017-12-11 18:57:54 +00:00
HexagonMCChecker.h [Hexagon] Add support for Hexagon V65 2017-12-11 18:57:54 +00:00
HexagonMCCodeEmitter.cpp [Hexagon] Make getMemAccessSize return size in bytes 2017-09-14 12:06:40 +00:00
HexagonMCCodeEmitter.h [Hexagon] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC). 2017-08-01 21:20:10 +00:00
HexagonMCCompound.cpp [Hexagon] Improve shuffle error reporting 2017-05-01 19:41:43 +00:00
HexagonMCDuplexInfo.cpp [Hexagon] Add support for Hexagon V65 2017-12-11 18:57:54 +00:00
HexagonMCELFStreamer.cpp [MC] Have MCObjectStreamer take its MCAsmBackend argument via unique_ptr. 2017-10-11 23:34:47 +00:00
HexagonMCELFStreamer.h [MC] Have MCObjectStreamer take its MCAsmBackend argument via unique_ptr. 2017-10-11 23:34:47 +00:00
HexagonMCExpr.cpp [Hexagon] Change iconst to emit 27bit relocation 2017-05-02 18:19:11 +00:00
HexagonMCExpr.h [Hexagon] Change iconst to emit 27bit relocation 2017-05-02 18:19:11 +00:00
HexagonMCInstrInfo.cpp [Hexagon] Add support for Hexagon V65 2017-12-11 18:57:54 +00:00
HexagonMCInstrInfo.h [Hexagon] Add support for Hexagon V65 2017-12-11 18:57:54 +00:00
HexagonMCShuffler.cpp [CodeGen] Use MachineOperand::print in the MIRPrinter for MO_Register. 2017-12-07 10:40:31 +00:00
HexagonMCShuffler.h [Hexagon] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC). 2017-08-01 21:20:10 +00:00
HexagonMCTargetDesc.cpp [Hexagon] Higher versions of HVX imply presence of lower versions 2017-12-18 18:51:57 +00:00
HexagonMCTargetDesc.h Thread MCSubtargetInfo through Target::createMCAsmBackend 2018-01-03 08:53:05 +00:00
HexagonShuffler.cpp [Hexagon] Add support for Hexagon V65 2017-12-11 18:57:54 +00:00
HexagonShuffler.h [Hexagon] Add support for Hexagon V65 2017-12-11 18:57:54 +00:00
LLVMBuild.txt