diff options
author | Kenneth Uildriks <kennethuil@gmail.com> | 2009-11-07 02:11:54 +0000 |
---|---|---|
committer | Kenneth Uildriks <kennethuil@gmail.com> | 2009-11-07 02:11:54 +0000 |
commit | b4997aeab74934ffa6fc0409afc4d8704245e372 (patch) | |
tree | e577bb851ec980f3ba1bcc272bf753ce3976e4fb /include/llvm/CodeGen | |
parent | 3de23e6f6cf337451a0934159da494d645b93133 (diff) | |
download | external_llvm-b4997aeab74934ffa6fc0409afc4d8704245e372.zip external_llvm-b4997aeab74934ffa6fc0409afc4d8704245e372.tar.gz external_llvm-b4997aeab74934ffa6fc0409afc4d8704245e372.tar.bz2 |
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')
-rw-r--r-- | include/llvm/CodeGen/CallingConvLower.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/CallingConvLower.h b/include/llvm/CodeGen/CallingConvLower.h index 5e730fc..45a2757 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, |