diff options
author | Tilmann Scheller <tilmann.scheller@googlemail.com> | 2009-07-03 06:44:53 +0000 |
---|---|---|
committer | Tilmann Scheller <tilmann.scheller@googlemail.com> | 2009-07-03 06:44:53 +0000 |
commit | aea6059ed4b3a956119a5ff1b3b36971d4b79ead (patch) | |
tree | 2a5ea3b644af7eb790fad2f1464b6fc0bace9e29 /llvm/lib/Target/CellSPU | |
parent | 98bdaaa3eead30113ec1bba0a82c14553738f6b1 (diff) | |
download | bcm5719-llvm-aea6059ed4b3a956119a5ff1b3b36971d4b79ead.tar.gz bcm5719-llvm-aea6059ed4b3a956119a5ff1b3b36971d4b79ead.zip |
Add NumFixedArgs attribute to CallSDNode which indicates the number of fixed arguments in a vararg call.
With the SVR4 ABI on PowerPC, vector arguments for vararg calls are passed differently depending on whether they are a fixed or a variable argument. Variable vector arguments always go into memory, fixed vector arguments are put
into vector registers. If there are no free vector registers available, fixed vector arguments are put on the stack.
The NumFixedArgs attribute allows to decide for an argument in a vararg call whether it belongs to the fixed or variable portion of the parameter list.
llvm-svn: 74764
Diffstat (limited to 'llvm/lib/Target/CellSPU')
-rw-r--r-- | llvm/lib/Target/CellSPU/SPUISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp index faaccc3aa64..d8a77766bd5 100644 --- a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp +++ b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp @@ -113,7 +113,7 @@ namespace { const Type *RetTy = Op.getNode()->getValueType(0).getTypeForMVT(); std::pair<SDValue, SDValue> CallInfo = TLI.LowerCallTo(InChain, RetTy, isSigned, !isSigned, false, false, - CallingConv::C, false, Callee, Args, DAG, + 0, CallingConv::C, false, Callee, Args, DAG, Op.getDebugLoc()); return CallInfo.first; |