[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Chris Lattner
sabre at nondot.org
Tue Oct 31 11:41:00 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
TargetLowering.cpp updated: 1.77 -> 1.78
---
Log message:
Change the prototype for TargetLowering::isOperandValidForConstraint
---
Diffs of the changes: (+8 -5)
TargetLowering.cpp | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.77 llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.78
--- llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.77 Fri Oct 13 16:12:22 2006
+++ llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp Tue Oct 31 13:40:42 2006
@@ -1300,18 +1300,21 @@
}
}
-bool TargetLowering::isOperandValidForConstraint(SDOperand Op,
- char ConstraintLetter) {
+/// isOperandValidForConstraint - Return the specified operand (possibly
+/// modified) if the specified SDOperand is valid for the specified target
+/// constraint letter, otherwise return null.
+SDOperand TargetLowering::isOperandValidForConstraint(SDOperand Op,
+ char ConstraintLetter,
+ SelectionDAG &DAG) {
switch (ConstraintLetter) {
- default: return false;
+ default: return SDOperand(0,0);
case 'i': // Simple Integer or Relocatable Constant
case 'n': // Simple Integer
case 's': // Relocatable Constant
- return true; // FIXME: not right.
+ return Op; // FIXME: not right.
}
}
-
std::vector<unsigned> TargetLowering::
getRegClassForInlineAsmConstraint(const std::string &Constraint,
MVT::ValueType VT) const {
More information about the llvm-commits
mailing list