Merged
Conversation
Member
Author
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
Closed
MichaReiser
commented
Jun 9, 2023
11915ba to
801c743
Compare
MichaReiser
commented
Jun 9, 2023
6375287 to
ea45020
Compare
Contributor
PR Check ResultsEcosystem✅ ecosystem check detected no changes. BenchmarkLinuxWindows |
a39dded to
d785d44
Compare
Merged
d785d44 to
5c30e73
Compare
ea45020 to
dea2af9
Compare
Merged
3eca4fd to
96c0de8
Compare
fe0dde8 to
7f85748
Compare
1b1cc52 to
aacef91
Compare
MichaReiser
commented
Jun 21, 2023
|
|
||
| match layout { | ||
| BinaryLayout::Default => self.fmt_default(f), | ||
| BinaryLayout::ExpandLeft => { |
Member
Author
There was a problem hiding this comment.
The IR is unchanged and has been moved from expr_bin_op
7f85748 to
42c0008
Compare
1603727 to
94a3037
Compare
42c0008 to
dc57457
Compare
konstin
approved these changes
Jun 21, 2023
94a3037 to
1c4ae08
Compare
1c4ae08 to
f6e6094
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
This PR implements basic formatting for boolean operations.
Boolean operations (
a and b) are formatted similar to binary expressions (a + b) if they only have two operands. I extracted the common logic into aFormatBinaryLikestruct.Test Plan
I added a new test file that tests the different variants.