summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/CallingConvLower.h
diff options
context:
space:
mode:
authorKenneth Uildriks <kennethuil@gmail.com>2009-11-07 02:11:54 +0000
committerKenneth Uildriks <kennethuil@gmail.com>2009-11-07 02:11:54 +0000
commitb4997aeab74934ffa6fc0409afc4d8704245e372 (patch)
treee577bb851ec980f3ba1bcc272bf753ce3976e4fb /include/llvm/CodeGen/CallingConvLower.h
parent3de23e6f6cf337451a0934159da494d645b93133 (diff)
downloadllvm-b4997aeab74934ffa6fc0409afc4d8704245e372.tar.gz
llvm-b4997aeab74934ffa6fc0409afc4d8704245e372.tar.bz2
llvm-b4997aeab74934ffa6fc0409afc4d8704245e372.tar.xz
Add code to check at SelectionDAGISel::LowerArguments time to see if return values can be lowered to registers. Coming soon, code to perform sret-demotion if return values cannot be lowered to registers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/CallingConvLower.h')
-rw-r--r--include/llvm/CodeGen/CallingConvLower.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/CallingConvLower.h b/include/llvm/CodeGen/CallingConvLower.h
index 5e730fc12c..45a2757d37 100644
--- a/include/llvm/CodeGen/CallingConvLower.h
+++ b/include/llvm/CodeGen/CallingConvLower.h
@@ -183,6 +183,13 @@ public:
void AnalyzeReturn(const SmallVectorImpl<ISD::OutputArg> &Outs,
CCAssignFn Fn);
+ /// CheckReturn - Analyze the return values of a function, returning
+ /// true if the return can be performed without sret-demotion, and
+ /// false otherwise.
+ bool CheckReturn(const SmallVectorImpl<EVT> &OutTys,
+ const SmallVectorImpl<ISD::ArgFlagsTy> &ArgsFlags,
+ CCAssignFn Fn);
+
/// AnalyzeCallOperands - Analyze the outgoing arguments to a call,
/// incorporating info about the passed values into this state.
void AnalyzeCallOperands(const SmallVectorImpl<ISD::OutputArg> &Outs,