-
Notifications
You must be signed in to change notification settings - Fork 80
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
interactive: add rewrite functionality to gui tool 3/3 #2155
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
a8c9db4
hello
dshaaban01 e7293ae
dasd
dshaaban01 65a30e0
hiii
dshaaban01 3eedefb
Revert "hiii"
dshaaban01 278eddb
adf
dshaaban01 f185a62
s
dshaaban01 4f29f18
asdf
dshaaban01 40d44b6
tiny error
dshaaban01 edeeb8c
Merge branch 'main' into dalia/interactive/cleanupround2
dshaaban01 184f7ae
asdf
dshaaban01 c5256d3
sasha comments 2/3
dshaaban01 0da02cc
sasha comment final
dshaaban01 091a47f
test ifx
dshaaban01 68d91e6
more dix
dshaaban01 a6a103e
Revert "more dix"
dshaaban01 71321ab
Revert "test ifx"
dshaaban01 a92848f
Revert "sasha comment final"
dshaaban01 2a7ed0f
hiii
dshaaban01 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like we only use the op to get its description, maybe we'd be better off getting that as part of the available rewrites? It also feels wasteful to get the nth op for every op if we already had this information in the past
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I add the op to what "get_all_possible_rewrites" returns. what do u think? does this make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered removing the operation index, but I think we should leave it for now as it could be useful for future plans we have for functionalities (line numbers etc.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@superlopuh I realize now that maybe it is better to leave it the way that it is.
returning the
str(Operation)
from get_all_possible_rewrites():When the rewrite is displayed in the gui, we now get
%0 = arith.addi %1, %2
instead of
Addi(%res = arith.addi %two, %n : i32)
returning the
Operation
from get_all_possible_rewrites() - (This wont work either way due to issues with testing and equality checking of an Operation):When the rewrite is displayed in the gui, we now get
Addi(%0 = arith.addi %1, %2)
instead of
Addi(%res = arith.addi %two, %n : i32)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#2162
@superlopuh told me to file an issue. we will address this later. will merge as is.