summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-26 02:56:58 +0000
committerChris Lattner <sabre@nondot.org>2007-02-26 02:56:58 +0000
commitab5d0ac02c4174078fed4fed2e3da36eeb8c8807 (patch)
treec28897856a3f96ad06d73c58f0396d37b5495b3b /llvm
parent5aa8560eab54449ec7547e70656ef7f221aa53a5 (diff)
downloadbcm5719-llvm-ab5d0ac02c4174078fed4fed2e3da36eeb8c8807.tar.gz
bcm5719-llvm-ab5d0ac02c4174078fed4fed2e3da36eeb8c8807.zip
track signedness of formal argument, though we have a fixme here.
llvm-svn: 34620
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 69aa6aedf86..3842db5d9d0 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -3111,8 +3111,16 @@ TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
// 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:
OpenPOWER on IntegriCloud