Skip to content

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.
@steven-johnson steven-johnson requested review from abadams and aekul July 31, 2023 21:22
// 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 steven-johnson requested a review from abadams August 2, 2023 16:40
@steven-johnson
Copy link
Contributor Author

Failures unrelated, PTAL

@steven-johnson steven-johnson merged commit 734df3f into main Aug 2, 2023
@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.

3 participants