[PATCH] D109392: Add a command-line flag to control the Swift extended async frame info.
Arnold Schwaighofer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 7 14:22:46 PDT 2021
aschwaighofer created this revision.
aschwaighofer added reviewers: doug.gregor, t.p.northover.
Herald added subscribers: pengfei, hiraditya.
aschwaighofer requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Introduce a new command-line flag `-swift-async-fp={auto|always|never}`
that controls how code generation sets the Swift extended async frame
info bit. There are three possibilities:
- `auto`: the default, which determines how to set the bit based on
deployment target, either statically or dynamically via
`swift_async_extendedFramePointerFlags`.
- `always`: always set the bit statically, regardless of deployment
target.
- `never`: never set the bit, regardless of deployment target.
Patch by Doug Gregor <dgregor at apple.com>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109392
Files:
llvm/include/llvm/CodeGen/CommandFlags.h
llvm/include/llvm/Target/TargetOptions.h
llvm/lib/CodeGen/CommandFlags.cpp
llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
llvm/lib/Target/X86/X86FrameLowering.cpp
llvm/test/CodeGen/AArch64/swift-dynamic-async-frame.ll
llvm/test/CodeGen/X86/swift-dynamic-async-frame.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109392.371188.patch
Type: text/x-patch
Size: 9508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210907/ad19d994/attachment.bin>
More information about the llvm-commits
mailing list