summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/recursion/main.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2019-09-30 16:49:13 +0000
committerJessica Paquette <jpaquette@apple.com>2019-09-30 16:49:13 +0000
commitb1c1095fdc56385b0902a8221723fd4cd224f4be (patch)
treeb11b032489f6b6a0f7ca56baa0d2cc065f83a614 /lldb/packages/Python/lldbsuite/test/functionalities/recursion/main.cpp
parent1b0f5ca1e3a44a38abf71b768cc3a85a15e68c5d (diff)
downloadbcm5719-llvm-b1c1095fdc56385b0902a8221723fd4cd224f4be.tar.gz
bcm5719-llvm-b1c1095fdc56385b0902a8221723fd4cd224f4be.zip
[AArch64][GlobalISel] Support lowering variadic musttail calls
This adds support for lowering variadic musttail calls. To do this, we have to... - Detect a musttail call in a variadic function before attempting to lower the call's formal arguments. This is done in the IRTranslator. - Compute forwarded registers in `lowerFormalArguments`, and add copies for those registers. - Restore the forwarded registers in `lowerTailCall`. Because there doesn't seem to be any nice way to wrap these up into the outgoing argument handler, the restore code in `lowerTailCall` is done separately. Also, irritatingly, you have to make sure that the registers don't overlap with any passed parameters. Otherwise, the scheduler doesn't know what to do with the extra copies and asserts. Add call-translator-variadic-musttail.ll to test this. This is pretty much the same as the X86 musttail-varargs.ll test. We didn't have as nice of a test to base this off of, but the idea is the same. Differential Revision: https://reviews.llvm.org/D68043 llvm-svn: 373226
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/recursion/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud