1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/lib/Target/Hexagon
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
..
Disassembler [Hexagon] Moving remaining methods off of HexagonMCInst in to HexagonMCInstrInfo and eliminating HexagonMCInst class. 2015-02-19 21:10:50 +00:00
MCTargetDesc [MCInstPrinter] Enable MCInstPrinter to change its behavior based on the 2015-03-27 20:36:02 +00:00
TargetInfo
CMakeLists.txt Hexagon: Remove pass that does nothing at all 2015-03-10 15:06:38 +00:00
Hexagon.h Hexagon: Remove pass that does nothing at all 2015-03-10 15:06:38 +00:00
Hexagon.td Make the Hexagon ISelDAGToDAG pass set the subtarget dynamically 2015-03-21 03:12:59 +00:00
HexagonAsmPrinter.cpp [Hexagon] Moving remaining methods off of HexagonMCInst in to HexagonMCInstrInfo and eliminating HexagonMCInst class. 2015-02-19 21:10:50 +00:00
HexagonAsmPrinter.h
HexagonCallingConv.td
HexagonCFGOptimizer.cpp
HexagonCopyToCombine.cpp [Hexagon] Reapply r231699. Remove assumption that second operand is an immediate when checking if A2_tfrsi is combinable. 2015-03-09 21:48:13 +00:00
HexagonExpandPredSpillCode.cpp [Hexagon] Intrinsics for circular and bit-reversed loads and stores 2015-03-18 16:23:44 +00:00
HexagonFixupHwLoops.cpp
HexagonFrameLowering.cpp [Hexagon] Use single tailcall pseudoinst and fix checking for label jumping versus tail calling. 2015-03-09 22:05:21 +00:00
HexagonFrameLowering.h
HexagonHardwareLoops.cpp Remove the remaining uses of abs64 and nuke it. 2015-03-09 20:20:16 +00:00
HexagonInstrFormats.td [Hexagon] Separating InstHexagon from OpcodeHexagon. 2015-03-10 20:56:22 +00:00
HexagonInstrFormatsV4.td [Hexagon] Separating InstHexagon from OpcodeHexagon. 2015-03-10 20:56:22 +00:00
HexagonInstrInfo.cpp [Hexagon] Add support for vector instructions 2015-03-19 16:33:08 +00:00
HexagonInstrInfo.h Remove some unnecessary forward declarations and put a couple more 2015-03-12 06:07:16 +00:00
HexagonInstrInfo.td Remove unused complex patterns for addressing modes on Hexagon. 2015-03-12 16:44:50 +00:00
HexagonInstrInfoV3.td [Hexagon] Removing v2-4 flags. V4 is the minimum supported version. 2015-02-09 21:07:35 +00:00
HexagonInstrInfoV4.td Remove unused complex patterns for addressing modes on Hexagon. 2015-03-12 16:44:50 +00:00
HexagonInstrInfoV5.td Eliminate constant-extender profitability checks from Hexagon isel 2015-03-12 00:19:59 +00:00
HexagonInstrInfoVector.td [Hexagon] Add support for vector instructions 2015-03-19 16:33:08 +00:00
HexagonIntrinsics.td [Hexagon] Intrinsics for circular and bit-reversed loads and stores 2015-03-18 16:23:44 +00:00
HexagonIntrinsicsDerived.td
HexagonIntrinsicsV3.td
HexagonIntrinsicsV4.td Eliminate constant-extender profitability checks from Hexagon isel 2015-03-12 00:19:59 +00:00
HexagonIntrinsicsV5.td
HexagonISelDAGToDAG.cpp [Hexagon] Pattern match a CTZ loop into a call to countTrailingZeros. 2015-03-25 15:36:57 +00:00
HexagonISelLowering.cpp [Hexagon] Add support for vector instructions 2015-03-19 16:33:08 +00:00
HexagonISelLowering.h [Hexagon] Add support for vector instructions 2015-03-19 16:33:08 +00:00
HexagonMachineFunctionInfo.cpp
HexagonMachineFunctionInfo.h
HexagonMachineScheduler.cpp
HexagonMachineScheduler.h
HexagonMCInstLower.cpp [Hexagon] Moving remaining methods off of HexagonMCInst in to HexagonMCInstrInfo and eliminating HexagonMCInst class. 2015-02-19 21:10:50 +00:00
HexagonNewValueJump.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
HexagonOperands.td Remove unused complex patterns for addressing modes on Hexagon. 2015-03-12 16:44:50 +00:00
HexagonPeephole.cpp [Hexagon] Eliminating immediate condition set. 2015-03-09 19:57:18 +00:00
HexagonRegisterInfo.cpp Remove unused complex patterns for addressing modes on Hexagon. 2015-03-12 16:44:50 +00:00
HexagonRegisterInfo.h Remove some unnecessary forward declarations and put a couple more 2015-03-12 06:07:16 +00:00
HexagonRegisterInfo.td
HexagonRemoveSZExtArgs.cpp
HexagonSchedule.td
HexagonScheduleV4.td
HexagonSelectCCInfo.td
HexagonSelectionDAGInfo.cpp
HexagonSelectionDAGInfo.h
HexagonSplitConst32AndConst64.cpp [Hexagon] Removing old halfword codegen instructions and updating const32/64 splitting. 2015-03-09 20:11:02 +00:00
HexagonSubtarget.cpp Remove useMachineScheduler and replace it with subtarget options 2015-03-11 22:56:10 +00:00
HexagonSubtarget.h Remove useMachineScheduler and replace it with subtarget options 2015-03-11 22:56:10 +00:00
HexagonTargetMachine.cpp Move the DataLayout to the generic TargetMachine, making it mandatory. 2015-03-12 00:07:24 +00:00
HexagonTargetMachine.h Revert r233206 2015-03-25 20:21:16 +00:00
HexagonTargetObjectFile.cpp
HexagonTargetObjectFile.h
HexagonVLIWPacketizer.cpp [Hexagon] Simplify boolean expression 2015-03-23 16:01:03 +00:00
LLVMBuild.txt
Makefile