[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Chris Lattner sabre at nondot.org
Sat Mar 24 19:18:31 PDT 2007



Changes in directory llvm/lib/CodeGen/SelectionDAG:

TargetLowering.cpp updated: 1.100 -> 1.101
---
Log message:

Implement CodeGen/X86/2007-03-24-InlineAsmMultiRegConstraint.ll



---
Diffs of the changes:  (+4 -1)

 TargetLowering.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.100 llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.101
--- llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.100	Sat Mar 24 21:14:49 2007
+++ llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp	Sat Mar 24 21:18:14 2007
@@ -1852,7 +1852,10 @@
       return C_Other;
     }
   }
-  // TODO: Handle registers.
+  
+  if (Constraint.size() > 1 && Constraint[0] == '{' && 
+      Constraint[Constraint.size()-1] == '}')
+    return C_Register;
   return C_Unknown;
 }
 






More information about the llvm-commits mailing list