-
Notifications
You must be signed in to change notification settings - Fork 254
compiler: Fix issue #2235 #2933
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
georgebisbas
wants to merge
12
commits into
devitocodes:main
Choose a base branch
from
georgebisbas:gb/fix_2235
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
12 commits
Select commit
Hold shift + click to select a range
758e8ba
tests: enhance indirection testing
6f17e7a
compiler: Intersect intervals from buffered TimeDimensions
bf90b86
tests: Edit test_indirection
23125ce
compiler: Only relax upper dspace in case of save
b756990
compiler: add mode to IG creation, rebase on 2208
2924851
compiler: simplify solution
e57dc65
compiler: Make DataSpace intervals get the upper limit available of t…
8323542
tests: Restore redundant, fix tutorial
0cd8aee
compiler: Derive solution from oob set of dims
56d34ca
compiler: Rework correctness for indirections
d4f6311
compiler: Relax intervals with upper from not mapped dimensions
fef81c6
compiler: Fix occurence of NullInterval after rebase
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -271,6 +271,9 @@ def negate(self): | |
| def zero(self): | ||
| return Interval(self.dim, 0, 0, self.stamp) | ||
|
|
||
| def set_upper(self, v=0): | ||
| return Interval(self.dim, self.lower, v, self.stamp) | ||
|
|
||
| def flip(self): | ||
| return Interval(self.dim, self.upper, self.lower, self.stamp) | ||
|
|
||
|
|
@@ -516,6 +519,11 @@ def zero(self, d=None): | |
|
|
||
| return IntervalGroup(intervals, relations=self.relations, mode=self.mode) | ||
|
|
||
| def set_upper(self, d, v=0): | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we should use Also, this would be the first method specific for the upper offset, and I don't see why we should special-case it |
||
| dims = as_tuple(d) | ||
| return IntervalGroup([i.set_upper(v) if i.dim in dims else i for i in self], | ||
| relations=self.relations, mode=self.mode) | ||
|
|
||
| def lift(self, d=None, v=None): | ||
| d = set(self.dimensions if d is None else as_tuple(d)) | ||
| intervals = [i.lift(v) if i.dim._defines & d else i for i in self] | ||
|
|
||
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.
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.
Nitpick: "oobs" has confused people as an acronym before, so I would make it explicitly "Out of bounds"
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 also don't see how this comment makes sense here