1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/lib/Target/Hexagon/MCTargetDesc
Akira Hatanaka 6a2e278ec7 [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.

llvm-svn: 233411
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 [Hexagon] Adding basic Hexagon ELF object emitter. 2014-11-06 17:05:51 +00:00
HexagonBaseInfo.h [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
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 Remove HasLEB128. 2014-08-15 14:01:07 +00:00
HexagonMCAsmInfo.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
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 [Hexagon] [NFC] Merging InstPrinter directory in to MCTargetDesc since they have a circular dependency. 2014-11-20 21:56:35 +00:00
Makefile