HomePhabricator

IR/AArch64/X86: add "swifttailcc" calling convention.

Authored by t.p.northover on Nov 19 2020, 4:32 AM.

Description

IR/AArch64/X86: add "swifttailcc" calling convention.

Swift's new concurrency features are going to require guaranteed tail calls so
that they don't consume excessive amounts of stack space. This would normally
mean "tailcc", but there are also Swift-specific ABI desires that don't
naturally go along with "tailcc" so this adds another calling convention that's
the combination of "swiftcc" and "tailcc".

Support is added for AArch64 and X86 for now.

Details

Committed
t.p.northoverMay 17 2021, 2:48 AM
Parents
rG1d9e8e13dd7b: [clang][deps] Support inferred modules
Branches
Unknown
Tags
Unknown