-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[ARM][AArch64] BTI,GCS,PAC Module flag update. #86212
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
Open
DanielKristofKiss
wants to merge
4
commits into
llvm:main
Choose a base branch
from
DanielKristofKiss:ModuleFlagUpdate
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
f2f3356
BTI,GCS,PAC Module flag update.
DanielKristofKiss 14eb36d
Merge remote-tracking branch 'origin/main' into HEAD
DanielKristofKiss 4cb7a9c
Merge remote-tracking branch 'origin/main' into HEAD
DanielKristofKiss 99b6f2b
address review comments
DanielKristofKiss 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
;; Test that module flags "branch-target-enforcement" and "sign-return-address" can be upgraded to | ||
;; are upgraded from Error to Min. | ||
;; Test that module flags "branch-target-enforcement" and "sign-return-address" | ||
;; can be upgraded to are upgraded from Error to Min and the value is changed 2 | ||
;; as the module is converted to the semantic. | ||
|
||
; RUN: llvm-as %s -o - | llvm-dis - | FileCheck %s | ||
|
||
target triple = "aarch64-unknown-linux-gnu" | ||
|
||
!llvm.module.flags = !{!0, !1, !2, !3} | ||
|
||
!0 = !{i32 1, !"branch-target-enforcement", i32 1} | ||
!1 = !{i32 1, !"sign-return-address", i32 1} | ||
!2 = !{i32 1, !"sign-return-address-all", i32 1} | ||
!3 = !{i32 1, !"sign-return-address-with-bkey", i32 1} | ||
|
||
;CHECK: !0 = !{i32 8, !"branch-target-enforcement", i32 1} | ||
;CHECK: !1 = !{i32 8, !"sign-return-address", i32 1} | ||
;CHECK: !2 = !{i32 8, !"sign-return-address-all", i32 1} | ||
;CHECK: !3 = !{i32 8, !"sign-return-address-with-bkey", i32 1} | ||
;CHECK: !0 = !{i32 8, !"branch-target-enforcement", i32 2} | ||
;CHECK: !1 = !{i32 8, !"sign-return-address", i32 2} | ||
;CHECK: !2 = !{i32 8, !"sign-return-address-all", i32 2} | ||
;CHECK: !3 = !{i32 8, !"sign-return-address-with-bkey", i32 2} |
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 was deleted.
Oops, something went wrong.
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,35 @@ | ||
;; This file contains the new semantic of the branch-target-enforcement, sign-return-address. | ||
;; Used for test mixing a mixed link case and also verify the import too in llc. | ||
|
||
; RUN: llc -mattr=+pauth -mattr=+bti %s -o - | FileCheck %s | ||
|
||
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" | ||
target triple = "aarch64-unknown-linux-gnu" | ||
|
||
define dso_local void @bar() #0 { | ||
entry: | ||
ret void | ||
} | ||
; CHECK-LABEL: bar: | ||
kovdan01 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
; CHECK-NOT: hint | ||
; CHECK-NOT: bti | ||
; CHECK: ret | ||
|
||
define dso_local void @baz() #1 { | ||
entry: | ||
ret void | ||
} | ||
|
||
; CHECK-LABEL: baz: | ||
; CHECK: bti c | ||
; CHECK: ret | ||
|
||
attributes #0 = { noinline nounwind optnone uwtable } | ||
attributes #1 = { noinline nounwind optnone uwtable "branch-target-enforcement" } | ||
|
||
!llvm.module.flags = !{!0, !1, !2, !3} | ||
|
||
!0 = !{i32 8, !"branch-target-enforcement", i32 2} | ||
kovdan01 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
!1 = !{i32 8, !"sign-return-address", i32 2} | ||
!2 = !{i32 8, !"sign-return-address-all", i32 2} | ||
!3 = !{i32 8, !"sign-return-address-with-bkey", i32 2} |
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.