-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[MCA] Enable customization of individual instructions #155420
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
39 commits
Select commit
Hold shift + click to select a range
b1a67b7
Added interface to customize individual instructions and possibility …
r-belenov 4abee0f
Fix formatting
r-belenov 1298dd3
Fix formatting
r-belenov b5c3b95
Fix formatting
r-belenov 302b994
Fix formatting
r-belenov 2338978
Fix formatting
r-belenov 0be9fbf
Fix formatting
r-belenov f1ad060
Fix formatting
r-belenov 757fec3
Fix formatting
r-belenov 452bb40
Fix formatting
r-belenov 4d655f8
Fix formatting
r-belenov ef2a0f0
Fix formatting
r-belenov 77eefdb
Fix formatting
r-belenov d44bfbe
Merge branch 'main' into mca-instruction-customizer
r-belenov bd8cedf
Merge branch 'main' into mca-instruction-customizer
r-belenov 6e0d12b
Using function_ref to pass function arguments
r-belenov 08cc266
Use InstrumentManager to customize instructions
r-belenov 1282e70
Fix formatting
r-belenov 71403fb
Move latency customization logic to base Instrument
r-belenov b805a3c
Simplify IM creation
r-belenov 801b0da
Fix formatting
r-belenov ed4e0bd
Remove target IM from base class
r-belenov 042b3ba
Fix formatting
r-belenov 5fb0db7
Use explicit latency instrument
r-belenov e124416
Fix formatting (#12)
r-belenov 74482dd
Removing redundant include
r-belenov 37d0734
Merge branch 'main' into mca-instruction-customizer
r-belenov 5824130
Make latency test more consistent
r-belenov 5029c24
Merge branch 'main' into mca-instruction-customizer
r-belenov 7c40f7b
Move customization logic to InstrumentManager
r-belenov 9e276b6
Fix formatting (#14)
r-belenov 129b7e4
Merge branch 'main' into mca-instruction-customizer
r-belenov e28c48c
FIxed incorrect Enlish
r-belenov 7e90de7
Addressed minor comments
r-belenov 4065142
Fixed formatting
r-belenov f8113c4
Merge branch 'main' into mca-instruction-customizer
r-belenov 6043f89
Ensure test instruction can not be eliminated on dispatch stage
r-belenov 0d00426
Merge branch 'main' into mca-instruction-customizer
r-belenov 7bf43cf
Revert to explicit StringRef conversion to check the tests
r-belenov 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py | ||
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=10 %s 2>&1 | FileCheck %s | ||
|
||
# LLVM-MCA-LATENCY 100 | ||
add (%eax), %eax | ||
# LLVM-MCA-LATENCY | ||
mov %eax, (%ebx) | ||
|
||
# CHECK: Iterations: 10 | ||
# CHECK-NEXT: Instructions: 20 | ||
# CHECK-NEXT: Total Cycles: 1004 | ||
# CHECK-NEXT: Total uOps: 20 |
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,11 @@ | ||
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py | ||
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=10 %s 2>&1 | FileCheck %s | ||
|
||
# LLVM-MCA-LATENCY 100 | ||
add (%eax), %eax | ||
mov %eax, (%ebx) | ||
|
||
# CHECK: Iterations: 10 | ||
# CHECK-NEXT: Instructions: 20 | ||
# CHECK-NEXT: Total Cycles: 1103 | ||
# CHECK-NEXT: Total uOps: 20 |
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
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.