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

Add StringType to FIRRTL dialect #5208

Merged
merged 1 commit into from
May 17, 2023
Merged

Add StringType to FIRRTL dialect #5208

merged 1 commit into from
May 17, 2023

Conversation

rwy7
Copy link
Contributor

@rwy7 rwy7 commented May 16, 2023

Add a new StringType to FIRRTL. Strings are used as metadata properties. Although string has an explicit phase, that phase must not be hardware (must be property phased). Ports with string types are input/output properties.

@rwy7 rwy7 force-pushed the type-phases branch 2 times, most recently from 607814d to 3138977 Compare May 17, 2023 14:59
Copy link
Member

@youngar youngar left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@dtzSiFive dtzSiFive left a comment

Choose a reason for hiding this comment

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

LGTM, added some comments.

Curious how this will all shake out, but this seems like a great step forward and love the phase framing!

lib/Dialect/FIRRTL/FIRRTLTypes.cpp Outdated Show resolved Hide resolved
lib/Dialect/FIRRTL/FIRRTLTypes.cpp Show resolved Hide resolved
@rwy7 rwy7 force-pushed the type-phases branch 2 times, most recently from 83d0993 to 62c79ae Compare May 17, 2023 16:16
@rwy7 rwy7 merged commit 0e0b40e into llvm:main May 17, 2023
@rwy7 rwy7 deleted the type-phases branch May 17, 2023 18:35
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.

4 participants