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

[FIRRTL] Remove getBaseTypeOrNull #5393

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

youngar
Copy link
Member

@youngar youngar commented Jun 13, 2023

Now that getBaseType handles all types, there is no need for getBaseTypeOrNull.

@youngar youngar changed the title [FIRRTL] Change getBaseTypeOrNull to getBaseTypeIfPresent [FIRRTL] Remove getBaseTypeOrNull Jun 13, 2023
This changes `getBaseTypeOrNull` to accept a null type field and renames
the function to `getBaseTypeIfPresent`.  This aligns with upstream by
making this family of function (`OrNull`) accept a null argument, and
uses the newer naming to which makes this property more clear. There are
no users of this function outside of FIRRTLUtils.h.
@youngar youngar merged commit 49f73eb into llvm:main Jun 14, 2023
5 checks passed
@youngar youngar deleted the firrtl-prop-getbasetypeof branch June 14, 2023 05:18
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.

None yet

1 participant