-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JITLink][MachO][arm64] Add support for splitting compact-unwind sect…
…ions. CompactUnwindSplitter splits compact-unwind sections on record boundaries and adds keep-alive edges from target functions back to their respective records. In MachO_arm64.cpp, a CompactUnwindSplitter pass is added to the pre-prune pass list when setting up the standard pipeline. This patch does not provide runtime support for compact-unwind, but is a first step towards enabling it.
- Loading branch information
Showing
4 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
llvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_compact_unwind.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# REQUIRES: asserts | ||
# RUN: llvm-mc -triple=arm64-apple-ios -filetype=obj -o %t %s | ||
# RUN: llvm-jitlink -noexec -debug-only=jitlink %t 2>&1 | FileCheck %s | ||
# | ||
# Check that splitting of compact-unwind sections works. | ||
# | ||
# CHECK: splitting {{.*}} __LD,__compact_unwind containing 1 initial blocks... | ||
# CHECK: Splitting {{.*}} into 1 compact unwind record(s) | ||
# CHECK: Updating {{.*}} to point to _main {{.*}} | ||
|
||
.section __TEXT,__text,regular,pure_instructions | ||
.globl _main | ||
.p2align 2 | ||
_main: | ||
.cfi_startproc | ||
ret | ||
.cfi_endproc | ||
|
||
.subsections_via_symbols | ||
|