Skip to content
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

Clean up really long line lengths in Anderson2021 #7728

Merged
merged 5 commits into from
Aug 2, 2023
Merged

Conversation

steven-johnson
Copy link
Contributor

We don't have an explicit line length limit in Halide, but generally consider 120 to be a reasonable extent; a lot of code in Anderson2021 went waaaay over this limit, especially function/method calls. I did a semi-manual cleanup to try to clean up the worst offenders. Should be 100% cosmetic.

We don't have an explicit line length limit in Halide, but generally consider 120 to be a reasonable extent; a lot of code in Anderson2021 went waaaay over this limit, especially function/method calls. I did a semi-manual cleanup to try to clean up the worst offenders. Should be 100% cosmetic.
@@ -86,11 +90,15 @@ struct State {
uint64_t structural_hash(int depth) const;

// Compute the parent and depth of every loop nest node
void compute_loop_nest_parents(map<const LoopNest *, pair<const LoopNest *, int>> &p,
const LoopNest *here, int depth) const;
void compute_loop_nest_parents(map<const LoopNest *,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one's a bit weird

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, good catch, I misread the comma in manual formatiing, willfix


void set_gpu_store_site(const map<const LoopNest *, pair<const LoopNest *, int>> &parent, const LoopNest *loop, LoopNest::Sites &site) const;
void set_gpu_store_site(const map<const LoopNest *,
pair<const LoopNest *, int>> &parent,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, good catch, I misread the comma in manual formatiing, willfix

@steven-johnson
Copy link
Contributor Author

Fixed the weirdness by adding a type alias for the funky map type, since it's used in several places

@steven-johnson
Copy link
Contributor Author

Failures unrelated, PTAL

@steven-johnson steven-johnson merged commit 734df3f into main Aug 2, 2023
3 checks passed
@steven-johnson steven-johnson deleted the srj/120 branch August 2, 2023 18:12
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* Clean up really long line lengths in Anderson2021

We don't have an explicit line length limit in Halide, but generally consider 120 to be a reasonable extent; a lot of code in Anderson2021 went waaaay over this limit, especially function/method calls. I did a semi-manual cleanup to try to clean up the worst offenders. Should be 100% cosmetic.

* Add LoopNestMap

* Fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants