Refactoring of formal parameter flags. Enable properly use of

zext/sext/aext stuff.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35008 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov
2007-03-07 16:25:09 +00:00
parent 6a143590b3
commit d0b82b301d
12 changed files with 73 additions and 72 deletions

View File

@@ -341,9 +341,11 @@ IA64TargetLowering::LowerCallTo(SDOperand Chain,
case MVT::i32: {
//promote to 64-bits, sign/zero extending based on type
//of the argument
ISD::NodeType ExtendKind = ISD::ZERO_EXTEND;
if (Args[i].isSigned)
ISD::NodeType ExtendKind = ISD::ANY_EXTEND;
if (Args[i].isSExt)
ExtendKind = ISD::SIGN_EXTEND;
else if (Args[i].isZExt)
ExtendKind = ISD::ZERO_EXTEND;
Val = DAG.getNode(ExtendKind, MVT::i64, Val);
// XXX: fall through
}