1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 14:33:02 +02:00
llvm-mirror/lib/Target/Mips/MCTargetDesc
Daniel Sanders b2b69459a8 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. 

llvm-svn: 232165
2015-03-13 12:45:09 +00:00
..
CMakeLists.txt MipsABIInfo class is used in different libraries. Moving the files to MCTargetDesc folder(LLVMMipsDesc library) prevents linkage errors. There are no functional changes. 2014-12-17 11:49:56 +00:00
LLVMBuild.txt
Makefile
MipsABIFlagsSection.cpp
MipsABIFlagsSection.h [mips] Add backend support for Mips32r[35] and Mips64r[35]. 2015-02-18 16:24:50 +00:00
MipsABIInfo.cpp [mips] Add backend support for Mips32r[35] and Mips64r[35]. 2015-02-18 16:24:50 +00:00
MipsABIInfo.h Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
MipsAsmBackend.cpp [mips][microMIPS] MicroMIPS 16-bit unconditional branch instruction B 2015-01-21 12:39:30 +00:00
MipsAsmBackend.h [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
MipsBaseInfo.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
MipsELFObjectWriter.cpp Recommit r232027 with PR22883 fixed: Add infrastructure for support of multiple memory constraints. 2015-03-13 12:45:09 +00:00
MipsELFStreamer.cpp [mips][microMIPS] Mark symbols as microMIPS if necessary 2014-11-05 16:35:20 +00:00
MipsELFStreamer.h Move the Mips target to storing the ABI in the TargetMachine rather 2015-01-26 17:33:46 +00:00
MipsFixupKinds.h Recommit r232027 with PR22883 fixed: Add infrastructure for support of multiple memory constraints. 2015-03-13 12:45:09 +00:00
MipsMCAsmInfo.cpp Allow target to specify prefix for labels 2014-12-04 00:06:57 +00:00
MipsMCAsmInfo.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
MipsMCCodeEmitter.cpp Recommit r232027 with PR22883 fixed: Add infrastructure for support of multiple memory constraints. 2015-03-13 12:45:09 +00:00
MipsMCCodeEmitter.h Removing LLVM_DELETED_FUNCTION, as MSVC 2012 was the last reason for requiring the macro. NFC; LLVM edition. 2015-02-15 22:54:22 +00:00
MipsMCExpr.cpp
MipsMCExpr.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
MipsMCNaCl.h Simplify handling of --noexecstack by using getNonexecutableStackSection. 2014-10-15 16:12:52 +00:00
MipsMCTargetDesc.cpp MC: Remove NullStreamer hook, as it is redundant with NullTargetStreamer. 2015-02-19 00:45:07 +00:00
MipsMCTargetDesc.h Remove the use of the subtarget in MCCodeEmitter creation and 2015-03-10 22:03:14 +00:00
MipsNaClELFStreamer.cpp Simplify handling of --noexecstack by using getNonexecutableStackSection. 2014-10-15 16:12:52 +00:00
MipsOptionRecord.cpp [Mips] Add .MIPS.options section descriptor kinds enumeration 2015-02-16 22:59:29 +00:00
MipsTargetStreamer.cpp [mips] [IAS] Refactor MipsTargetStreamer::emitMipsAbiFlags(). NFC. 2015-03-13 11:40:01 +00:00