[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp SelectionDAGISel.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 12 12:57:12 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.115 -> 1.116
SelectionDAGISel.cpp updated: 1.52 -> 1.53
---
Log message:
Pass calling convention to use into lower call to
---
Diffs of the changes: (+8 -7)
LegalizeDAG.cpp | 8 ++++----
SelectionDAGISel.cpp | 7 ++++---
2 files changed, 8 insertions(+), 7 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.115 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.116
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.115 Thu May 12 14:27:51 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Thu May 12 14:56:57 2005
@@ -928,7 +928,7 @@
}
std::pair<SDOperand,SDOperand> CallResult =
- TLI.LowerCallTo(Tmp1, Type::VoidTy, false,
+ TLI.LowerCallTo(Tmp1, Type::VoidTy, false, 0,
DAG.getExternalSymbol(FnName, IntPtr), Args, DAG);
Result = LegalizeOp(CallResult.second);
break;
@@ -1253,7 +1253,7 @@
Args.push_back(std::make_pair(Tmp1, T));
// FIXME: should use ExpandLibCall!
std::pair<SDOperand,SDOperand> CallResult =
- TLI.LowerCallTo(DAG.getEntryNode(), T, false,
+ TLI.LowerCallTo(DAG.getEntryNode(), T, false, 0,
DAG.getExternalSymbol(FnName, VT), Args, DAG);
Result = LegalizeOp(CallResult.first);
break;
@@ -2102,7 +2102,7 @@
// Splice the libcall in wherever FindInputOutputChains tells us to.
const Type *RetTy = MVT::getTypeForValueType(Node->getValueType(0));
std::pair<SDOperand,SDOperand> CallInfo =
- TLI.LowerCallTo(InChain, RetTy, false, Callee, Args, DAG);
+ TLI.LowerCallTo(InChain, RetTy, false, 0, Callee, Args, DAG);
SpliceCallInto(CallInfo.second, OutChain);
NeedsAnotherIteration = true;
@@ -2198,7 +2198,7 @@
const Type *RetTy = MVT::getTypeForValueType(DestTy);
std::pair<SDOperand,SDOperand> CallResult =
- TLI.LowerCallTo(InChain, RetTy, false, Callee, Args, DAG);
+ TLI.LowerCallTo(InChain, RetTy, false, 0, Callee, Args, DAG);
SpliceCallInto(CallResult.second, OutChain);
return CallResult.first;
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.52 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.53
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.52 Wed May 11 13:57:06 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Thu May 12 14:56:57 2005
@@ -773,7 +773,8 @@
const FunctionType *FTy = cast<FunctionType>(PT->getElementType());
std::pair<SDOperand,SDOperand> Result =
- TLI.LowerCallTo(getRoot(), I.getType(), FTy->isVarArg(), Callee, Args, DAG);
+ TLI.LowerCallTo(getRoot(), I.getType(), FTy->isVarArg(), I.getCallingConv(),
+ Callee, Args, DAG);
if (I.getType() != Type::VoidTy)
setValue(&I, Result.first);
DAG.setRoot(Result.second);
@@ -798,7 +799,7 @@
Args.push_back(std::make_pair(Src, TLI.getTargetData().getIntPtrType()));
std::pair<SDOperand,SDOperand> Result =
- TLI.LowerCallTo(getRoot(), I.getType(), false,
+ TLI.LowerCallTo(getRoot(), I.getType(), false, 0,
DAG.getExternalSymbol("malloc", IntPtr),
Args, DAG);
setValue(&I, Result.first); // Pointers always fit in registers
@@ -811,7 +812,7 @@
TLI.getTargetData().getIntPtrType()));
MVT::ValueType IntPtr = TLI.getPointerTy();
std::pair<SDOperand,SDOperand> Result =
- TLI.LowerCallTo(getRoot(), Type::VoidTy, false,
+ TLI.LowerCallTo(getRoot(), Type::VoidTy, false, 0,
DAG.getExternalSymbol("free", IntPtr), Args, DAG);
DAG.setRoot(Result.second);
}
More information about the llvm-commits
mailing list