[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelLowering.cpp AlphaISelLowering.h
Chris Lattner
sabre at nondot.org
Sat Mar 24 19:15:19 PDT 2007
Changes in directory llvm/lib/Target/Alpha:
AlphaISelLowering.cpp updated: 1.84 -> 1.85
AlphaISelLowering.h updated: 1.24 -> 1.25
---
Log message:
switch TargetLowering::getConstraintType to take the entire constraint,
not just the first letter. No functionality change.
---
Diffs of the changes: (+11 -9)
AlphaISelLowering.cpp | 18 ++++++++++--------
AlphaISelLowering.h | 2 +-
2 files changed, 11 insertions(+), 9 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaISelLowering.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelLowering.cpp:1.84 llvm/lib/Target/Alpha/AlphaISelLowering.cpp:1.85
--- llvm/lib/Target/Alpha/AlphaISelLowering.cpp:1.84 Wed Mar 7 10:25:08 2007
+++ llvm/lib/Target/Alpha/AlphaISelLowering.cpp Sat Mar 24 21:14:49 2007
@@ -571,14 +571,16 @@
/// getConstraintType - Given a constraint letter, return the type of
/// constraint it is for this target.
AlphaTargetLowering::ConstraintType
-AlphaTargetLowering::getConstraintType(char ConstraintLetter) const {
- switch (ConstraintLetter) {
- default: break;
- case 'f':
- case 'r':
- return C_RegisterClass;
- }
- return TargetLowering::getConstraintType(ConstraintLetter);
+AlphaTargetLowering::getConstraintType(const std::string &Constraint) const {
+ if (Constraint.size() == 1) {
+ switch (Constraint[0]) {
+ default: break;
+ case 'f':
+ case 'r':
+ return C_RegisterClass;
+ }
+ }
+ return TargetLowering::getConstraintType(Constraint);
}
std::vector<unsigned> AlphaTargetLowering::
Index: llvm/lib/Target/Alpha/AlphaISelLowering.h
diff -u llvm/lib/Target/Alpha/AlphaISelLowering.h:1.24 llvm/lib/Target/Alpha/AlphaISelLowering.h:1.25
--- llvm/lib/Target/Alpha/AlphaISelLowering.h:1.24 Wed Jan 24 15:09:16 2007
+++ llvm/lib/Target/Alpha/AlphaISelLowering.h Sat Mar 24 21:14:49 2007
@@ -81,7 +81,7 @@
bool isVarArg, unsigned CC, bool isTailCall, SDOperand Callee,
ArgListTy &Args, SelectionDAG &DAG);
- ConstraintType getConstraintType(char ConstraintLetter) const;
+ ConstraintType getConstraintType(const std::string &Constraint) const;
std::vector<unsigned>
getRegClassForInlineAsmConstraint(const std::string &Constraint,
More information about the llvm-commits
mailing list