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

update codegen dep and cleanup organization #14127

Merged
merged 1 commit into from
Jun 20, 2024
Merged

update codegen dep and cleanup organization #14127

merged 1 commit into from
Jun 20, 2024

Conversation

kasey
Copy link
Contributor

@kasey kasey commented Jun 20, 2024

What type of PR is this?

Other - cleanup

What does this PR do? Why is it needed?

Support for cpu detection to branch around vectorized operations is now available directly in gohashtree. This PR removes the hard coded boolean flag to control whether our code uses the vectorized form and relies on gohashtree to internally pick the right approach. This matches what the code currently does, but just removes the generated code that is currently impossible to reach due to the hard-coded boolean config. In preparation for further changes to code generation, this PR also improves the organization of generated code files, grouping them by fork.

@kasey kasey requested review from a team and prestonvanloon as code owners June 20, 2024 20:53
@kasey kasey requested review from saolyn and rkapka June 20, 2024 20:53
saolyn
saolyn previously approved these changes Jun 20, 2024
Copy link
Contributor

@saolyn saolyn left a comment

Choose a reason for hiding this comment

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

LGTM, but may be good to have someone else also have a look tho

"includes": attr.label_list(providers = [GoLibrary]),
"out": attr.output(),
Copy link
Member

Choose a reason for hiding this comment

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

nice, this is great

"Withdrawal",
],
exclude_objs = [
"Attestation",
Copy link
Member

Choose a reason for hiding this comment

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

These excludes look like prior fork objs. Perhaps these can be better arranged like

ssz_gen_marshal(
    name = "ssz_generated_altair",
    ...
    objs = ssz_altair_objs,
    excludes = ssz_phase0_objs,
)

@kasey kasey added this pull request to the merge queue Jun 20, 2024
Merged via the queue into develop with commit 8cd249c Jun 20, 2024
17 checks passed
@kasey kasey deleted the codegen-cleanups branch June 20, 2024 23:54
prestonvanloon pushed a commit that referenced this pull request Jun 21, 2024
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
(cherry picked from commit 8cd249c)
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