aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend/CompilerInvocationTest.cpp
diff options
context:
space:
mode:
authorTim Northover <t.p.northover@gmail.com>2021-01-12 13:12:40 +0000
committerTim Northover <t.p.northover@gmail.com>2021-05-18 15:19:05 +0100
commitba1509da7b89c850c89f0f98afbab375794cd3c8 (patch)
treeb499b49b1f71fe0e0a8cb3eb63d1546ab6161378 /clang/unittests/Frontend/CompilerInvocationTest.cpp
parent7d6449322ecba2fa34090ca8ed610328febee108 (diff)
downloadllvm-ba1509da7b89c850c89f0f98afbab375794cd3c8.zip
llvm-ba1509da7b89c850c89f0f98afbab375794cd3c8.tar.gz
llvm-ba1509da7b89c850c89f0f98afbab375794cd3c8.tar.bz2
Recommit X86: support Swift Async context
This adds support to the X86 backend for the newly committed swiftasync function parameter. If such a (pointer) parameter is present it gets stored into an augmented frame record (populated in IR, but generally containing enhanced backtrace for coroutines using lots of tail calls back and forth). The context frame is identical to AArch64 (primarily so that unwinders etc don't get extra complexity). Specfically, the new frame record is [AsyncCtx, %rbp, ReturnAddr], and its presence is signalled by bit 60 of the stored %rbp being set to 1. %rbp still points to the frame pointer in memory for backwards compatibility (only partial on x86, but OTOH the weird AsyncCtx before the rest of the record is because of x86). Recommited with a fix for unwind info when i386 pc-rel thunks are adjacent to a prologue.
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions