[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Chris Lattner
sabre at nondot.org
Sun Feb 25 18:57:14 PST 2007
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.376 -> 1.377
---
Log message:
track signedness of formal argument, though we have a fixme here.
---
Diffs of the changes: (+8 -0)
SelectionDAGISel.cpp | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.376 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.377
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.376 Sun Feb 25 15:43:59 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Sun Feb 25 20:56:58 2007
@@ -3111,8 +3111,16 @@
// Flags[31:27] -> OriginalAlignment
// Flags[2] -> isSRet
// Flags[1] -> isInReg
+ // Flags[0] -> isSigned
unsigned Flags = (isInReg << 1) | (isSRet << 2) | (OriginalAlignment << 27);
+ // FIXME: Distinguish between a formal with no [sz]ext attribute from one
+ // that is zero extended!
+ if (FTy->paramHasAttr(j, FunctionType::ZExtAttribute))
+ Flags |= 0;
+ if (FTy->paramHasAttr(j, FunctionType::SExtAttribute))
+ Flags |= 1;
+
switch (getTypeAction(VT)) {
default: assert(0 && "Unknown type action!");
case Legal:
More information about the llvm-commits
mailing list