-
Notifications
You must be signed in to change notification settings - Fork 14.6k
[SystemZ] Add support for __builtin_setjmp and __builtin_longjmp #116642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
7988037
Support for __builtin_setjmp and __builtin_longjmp
anoopkg6 f8040a3
Adding test case for builtin setjmp/longjmp.
anoopkg6 7500b72
Incorporating code review feedback and adding test cases for builtin …
anoopkg6 4fa2914
Not to check FP live in setjmp.
anoopkg6 8211419
Merge branch 'main' of https://github.com/llvm/llvm-project
anoopkg6 b289df9
Remove store of R13.
anoopkg6 a043372
Incorporate code review changes and added new test cases.
anoopkg6 fb082f6
Adding test cases for setjmp/longjmp.
anoopkg6 2a5bd18
Incorporated code-review changes
anoopkg6 68aadd2
Incorporated code-review changes.
anoopkg6 e8c2a9c
Remove all test files first to include compile only test cases.
anoopkg6 98ffcee
Incorporated Code Review, git-clang-format feeback and compile-only t…
anoopkg6 90afe97
Fix CI failure hoisted on an Intel Machine - adding option -mtriple=s…
anoopkg6 81fe8ec
To redo after review feeback.
anoopkg6 2dd9f4e
Add test cases for builtin setjmp/longjm.
anoopkg6 82a49e2
Incorporated code review changes and added alloca and spills test cases.
anoopkg6 ec796f4
Update to Excecption Handling(llvm.eh.sjlj.setjmp) documentation and …
anoopkg6 caf16d6
Update ExceptionHandling (llvm.eh.sjlj.setjmp) document with target s…
anoopkg6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,25 @@ | ||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 | ||
// RUN: %clang --target=s390x-linux -S -emit-llvm -o - %s | FileCheck %s | ||
|
||
void *buf[20]; | ||
// CHECK-LABEL: define dso_local void @foo( | ||
// CHECK-SAME: ) #[[ATTR0:[0-9]+]] { | ||
// CHECK-NEXT: [[ENTRY:.*:]] | ||
// CHECK-NEXT: [[TMP0:%.*]] = call i32 @llvm.eh.sjlj.setjmp(ptr @buf) | ||
// CHECK-NEXT: ret void | ||
// | ||
void foo() | ||
{ | ||
__builtin_setjmp (buf); | ||
} | ||
|
||
// CHECK-LABEL: define dso_local void @foo1( | ||
// CHECK-SAME: ) #[[ATTR0]] { | ||
// CHECK-NEXT: [[ENTRY:.*:]] | ||
// CHECK-NEXT: call void @llvm.eh.sjlj.longjmp(ptr @buf) | ||
// CHECK-NEXT: unreachable | ||
// | ||
void foo1() | ||
{ | ||
__builtin_longjmp (buf, 1); | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.