llvm-6502/lib/Target/Hexagon
Daniel Sanders 547ba56bd0 Recommit r232027 with PR22883 fixed: Add infrastructure for support of multiple memory constraints.
The operand flag word for ISD::INLINEASM nodes now contains a 15-bit
memory constraint ID when the operand kind is Kind_Mem. This constraint
ID is a numeric equivalent to the constraint code string and is converted
with a target specific hook in TargetLowering.

This patch maps all memory constraints to InlineAsm::Constraint_m so there
is no functional change at this point. It just proves that using these
previously unused bits in the encoding of the flag word doesn't break
anything.

The next patch will make each target preserve the current mapping of
everything to Constraint_m for itself while changing the target independent
implementation of the hook to return Constraint_Unknown appropriately. Each
target will then be adapted in separate patches to use appropriate
Constraint_* values.

PR22883 was caused the matching operands copying the whole of the operand flags
for the matched operand. This included the constraint id which needed to be
replaced with the operand number. This has been fixed with a conversion
function. Following on from this, matching operands also used the operand
number as the constraint id. This has been fixed by looking up the matched
operand and taking it from there. 



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232165 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-13 12:45:09 +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 Remove the use of the subtarget in MCCodeEmitter creation and 2015-03-10 22:03:14 +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 Remove unused complex patterns for addressing modes on Hexagon. 2015-03-12 16:44:50 +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 Define a runOnMachineFunction for the Hexagon AsmPrinter and 2015-02-03 06:40:22 +00:00
HexagonCallingConv.td
HexagonCFGOptimizer.cpp Grab TargetInstrInfo off of the MachineFunction and remove 2015-02-02 18:46:27 +00:00
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] Renaming A2_addi and formatting. 2015-02-05 17:49:13 +00:00
HexagonFixupHwLoops.cpp [Hexagon] Removing old variants of instructions and updating references. 2014-12-19 20:29:29 +00:00
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 Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
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 Remove subtarget dependence from HexagonRegisterInfo. 2015-03-10 23:45:55 +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] Since decoding conflicts have been resolved, isCodeGenOnly = 0 by default and remove explicitly setting it. 2015-02-05 17:32:17 +00:00
HexagonIntrinsics.td Eliminate constant-extender profitability checks from Hexagon isel 2015-03-12 00:19:59 +00:00
HexagonIntrinsicsDerived.td [Hexagon] Deleting a lot of old variants of intrinsics and updating references. 2015-01-28 18:29:11 +00:00
HexagonIntrinsicsV3.td [Hexagon] Converting XTYPE/SHIFT intrinsics. Cleaning out old intrinsic patterns and updating tests. 2015-02-03 20:40:52 +00:00
HexagonIntrinsicsV4.td Eliminate constant-extender profitability checks from Hexagon isel 2015-03-12 00:19:59 +00:00
HexagonIntrinsicsV5.td [Hexagon] Converting XTYPE/SHIFT intrinsics. Cleaning out old intrinsic patterns and updating tests. 2015-02-03 20:40:52 +00:00
HexagonISelDAGToDAG.cpp Recommit r232027 with PR22883 fixed: Add infrastructure for support of multiple memory constraints. 2015-03-13 12:45:09 +00:00
HexagonISelLowering.cpp Remove unused complex patterns for addressing modes on Hexagon. 2015-03-12 16:44:50 +00:00
HexagonISelLowering.h [Hexagon] Adding nodes for PIC support. 2015-03-10 20:04:44 +00:00
HexagonMachineFunctionInfo.cpp
HexagonMachineFunctionInfo.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
HexagonMachineScheduler.cpp Move HexagonMachineScheduler to use the subtarget off of the 2015-02-02 22:11:40 +00:00
HexagonMachineScheduler.h Move HexagonMachineScheduler to use the subtarget off of the 2015-02-02 22:11:40 +00:00
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 [Hexagon] Eliminating immediate condition set. 2015-03-09 19:57:18 +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 [Hexagon] Adding vector shift instructions and tests. 2015-01-30 21:58:46 +00:00
HexagonRemoveSZExtArgs.cpp [LPM] Stop using the string based preservation API. It is an 2015-01-28 04:57:56 +00:00
HexagonSchedule.td [Hexagon] Add new InstrItinClass to support timing classes. 2014-05-08 18:47:08 +00:00
HexagonScheduleV4.td [Hexagon] Add new InstrItinClass to support timing classes. 2014-05-08 18:47:08 +00:00
HexagonSelectCCInfo.td
HexagonSelectionDAGInfo.cpp Have HexagonSelectionDAGInfo take a DataLayout rather than a 2014-06-27 00:18:25 +00:00
HexagonSelectionDAGInfo.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
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 Move the DataLayout to the generic TargetMachine, making it mandatory. 2015-03-12 00:07:24 +00:00
HexagonTargetObjectFile.cpp Compute the ELF SectionKind from the flags. 2015-01-29 17:33:21 +00:00
HexagonTargetObjectFile.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
HexagonVLIWPacketizer.cpp Have getCalleeSavedRegs take a non-null MachineFunction all the 2015-03-11 21:41:28 +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 Update Makefile following directory removal in r222466 2014-11-20 22:48:24 +00:00