aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-03-25 04:35:41 +0000
committerChris Lattner <sabre@nondot.org>2007-03-25 04:35:41 +0000
commitc13dd1cf4c0d83ac3ed2a6b0c36fab72e9d6c6e5 (patch)
treecb5c7ef377a7679cd2885bf577d5ab15ca6776c8 /lib/CodeGen/SelectionDAG/TargetLowering.cpp
parenteab65a060c20c1120c233d56177fcfdb996d44a5 (diff)
implement initial support for the silly X constraint. Testcase here: CodeGen/X86/2007-03-24-InlineAsmXConstraint.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 7433a79f9f..ee9fa67fa4 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -1841,6 +1841,7 @@ TargetLowering::getConstraintType(const std::string &Constraint) const {
case 'i': // Simple Integer or Relocatable Constant
case 'n': // Simple Integer
case 's': // Relocatable Constant
+ case 'X': // Allow ANY value.
case 'I': // Target registers.
case 'J':
case 'K':
@@ -1870,6 +1871,7 @@ SDOperand TargetLowering::isOperandValidForConstraint(SDOperand Op,
case 'i': // Simple Integer or Relocatable Constant
case 'n': // Simple Integer
case 's': // Relocatable Constant
+ case 'X': // Allows any operand.
// These are okay if the operand is either a global variable address or a
// simple immediate value. If we have one of these, map to the TargetXXX
// version so that the value itself doesn't get selected.