llvm-6502/lib/Target/Hexagon/MCTargetDesc
Akira Hatanaka f09378397e [MCInstPrinter] Enable MCInstPrinter to change its behavior based on the
per-function subtarget.

Currently, code-gen passes the default or generic subtarget to the constructors
of MCInstPrinter subclasses (see LLVMTargetMachine::addPassesToEmitFile), which
enables some targets (AArch64, ARM, and X86) to change their instprinter's
behavior based on the subtarget feature bits. Since the backend can now use
different subtargets for each function, instprinter has to be changed to use the
per-function subtarget rather than the default subtarget.

This patch takes the first step towards enabling instprinter to change its
behavior based on the per-function subtarget. It adds a bit "PassSubtarget" to
AsmWriter which tells table-gen to pass a reference to MCSubtargetInfo to the
various print methods table-gen auto-generates. 

I will follow up with changes to instprinters of AArch64, ARM, and X86.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233411 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-27 20:36:02 +00:00
..
CMakeLists.txt [Hexagon] Moving remaining methods off of HexagonMCInst in to HexagonMCInstrInfo and eliminating HexagonMCInst class. 2015-02-19 21:10:50 +00:00
HexagonAsmBackend.cpp
HexagonBaseInfo.h
HexagonELFObjectWriter.cpp Re-sort includes with sort-includes.py and insert raw_ostream.h where it's used. 2015-03-23 19:32:43 +00:00
HexagonInstPrinter.cpp [MCInstPrinter] Enable MCInstPrinter to change its behavior based on the 2015-03-27 20:36:02 +00:00
HexagonInstPrinter.h [MCInstPrinter] Enable MCInstPrinter to change its behavior based on the 2015-03-27 20:36:02 +00:00
HexagonMCAsmInfo.cpp
HexagonMCAsmInfo.h
HexagonMCCodeEmitter.cpp Remove the use of the subtarget in MCCodeEmitter creation and 2015-03-10 22:03:14 +00:00
HexagonMCCodeEmitter.h Remove the use of the subtarget in MCCodeEmitter creation and 2015-03-10 22:03:14 +00:00
HexagonMCInstrInfo.cpp [Hexagon] Moving remaining methods off of HexagonMCInst in to HexagonMCInstrInfo and eliminating HexagonMCInst class. 2015-02-19 21:10:50 +00:00
HexagonMCInstrInfo.h [Hexagon] Moving remaining methods off of HexagonMCInst in to HexagonMCInstrInfo and eliminating HexagonMCInst class. 2015-02-19 21:10:50 +00:00
HexagonMCTargetDesc.cpp Add a default implementation of createObjectStreamer. 2015-03-18 19:08:20 +00:00
HexagonMCTargetDesc.h Remove the use of the subtarget in MCCodeEmitter creation and 2015-03-10 22:03:14 +00:00
LLVMBuild.txt
Makefile