-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[AArch64][Build Attributes] Improve Parsing and Formatting #126530
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 6 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
512784f
[AArch64][Build Attributes] Improve testing (delete previous tests fi…
sivan-shani 506aad3
[AArch64][Build Attributes] Standardize parsing error messages
sivan-shani 1fb501d
[AArch64][Build Attributes] Print Tags as Numbers with Comments
sivan-shani 083bd48
[AArch64][Build Attributes] Fix Parsing of Some Tags and Values
sivan-shani a126df1
[AArch64][Build Attributes] Remove Assertion for Duplicate Values
sivan-shani e453ae0
[AArch64][Build Attributes] Add test files
sivan-shani c161c04
[AArch64][Build Attributes] Same Tag different Value: override
sivan-shani 9c3f0f7
[AArch64][Build Attributes] Improve Parsing and Formatting
sivan-shani 3ae07d1
[AArch64][Build Attributes] Remove unused 'Override' parameter
sivan-shani badefe8
[AArch64][Build Attributes] Remove redundant comments and unneeded case
sivan-shani 6fdc1ee
Remove prefix aarch64 from test files residing in the AArch64 folder
sivan-shani c1f74f9
For llvm-mc, omit -o - (default)
sivan-shani d7517cd
handle unnecessary switch defaults
sivan-shani ae37558
Remove unnecessary condition check when tag exists.
sivan-shani 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
43 changes: 43 additions & 0 deletions
43
llvm/test/MC/AArch64/aarch64-build-attributes-asm-aeabi-aeabi-known.s
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,43 @@ | ||
| // RUN: llvm-mc -triple=aarch64 %s -o - | FileCheck %s --check-prefix=ASM | ||
sivan-shani marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| // RUN: llvm-mc -triple=aarch64 -filetype=obj %s -o - | llvm-readelf --hex-dump=.ARM.attributes - | FileCheck %s --check-prefix=ELF | ||
|
|
||
| // ASM: .aeabi_subsection aeabi_pauthabi, required, uleb128 | ||
| // ASM: .aeabi_attribute 1, 7 @ Tag_PAuth_Platform | ||
| // ASM: .aeabi_attribute 2, 777 @ Tag_PAuth_Schema | ||
| // ASM: .aeabi_attribute 2, 777 @ Tag_PAuth_Schema | ||
| // ASM: .aeabi_subsection aeabi_feature_and_bits, optional, uleb128 | ||
| // ASM: .aeabi_attribute 0, 1 @ Tag_Feature_BTI | ||
| // ASM: .aeabi_attribute 1, 1 @ Tag_Feature_PAC | ||
| // ASM: .aeabi_attribute 2, 1 @ Tag_Feature_GCS | ||
| // ASM: .aeabi_subsection aeabi_pauthabi, required, uleb128 | ||
| // ASM: .aeabi_attribute 1, 7 @ Tag_PAuth_Platform | ||
| // ASM: .aeabi_attribute 2, 777 @ Tag_PAuth_Schema | ||
| // ASM: .aeabi_attribute 2, 777 @ Tag_PAuth_Schema | ||
| // ASM: .aeabi_subsection aeabi_feature_and_bits, optional, uleb128 | ||
| // ASM: .aeabi_attribute 0, 1 @ Tag_Feature_BTI | ||
| // ASM: .aeabi_attribute 1, 1 @ Tag_Feature_PAC | ||
| // ASM: .aeabi_attribute 2, 1 @ Tag_Feature_GCS | ||
|
|
||
| // ELF: Hex dump of section '.ARM.attributes': | ||
| // ELF: 0x00000000 411a0000 00616561 62695f70 61757468 A....aeabi_pauth | ||
| // ELF: 0x00000010 61626900 00000107 02890623 00000061 abi........#...a | ||
| // ELF: 0x00000020 65616269 5f666561 74757265 5f616e64 eabi_feature_and | ||
| // ELF: 0x00000030 5f626974 73000100 00010101 0201 _bits......... | ||
|
|
||
|
|
||
| .aeabi_subsection aeabi_pauthabi, required, uleb128 @ test header comment | ||
| .aeabi_attribute Tag_PAuth_Platform, 7 | ||
| .aeabi_attribute Tag_PAuth_Schema, 777 | ||
| .aeabi_attribute Tag_PAuth_Schema, 777 | ||
| .aeabi_subsection aeabi_feature_and_bits, optional, uleb128 | ||
| .aeabi_attribute Tag_Feature_BTI, 1 | ||
| .aeabi_attribute Tag_Feature_PAC, 1 | ||
| .aeabi_attribute Tag_Feature_GCS, 1 | ||
| .aeabi_subsection aeabi_pauthabi, required, uleb128 | ||
| .aeabi_attribute 1, 7 @ Tag_PAuth_Platform | ||
| .aeabi_attribute 2, 777 @ Tag_PAuth_Schema | ||
| .aeabi_attribute 2, 777 @ Tag_PAuth_Schema | ||
| .aeabi_subsection aeabi_feature_and_bits, optional, uleb128 | ||
| .aeabi_attribute 0, 1 @ Tag_Feature_BTI | ||
| .aeabi_attribute 1, 1 @ Tag_Feature_PAC | ||
| .aeabi_attribute 2, 1 @ Tag_Feature_GCS | ||
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.
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.