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][LowerTypes] Support RefCast. #5377

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

dtzSiFive
Copy link
Contributor

No description provided.

auto clone = [&](const FlatBundleFieldEntry &field,
ArrayAttr attrs) -> Value {
auto input = getSubWhatever(op.getInput(), field.index);
return builder->create<RefCastOp>(RefType::get(field.type), input);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ref.sub demotes rwprobe to probe, but since we don't break up rwprobe's that's not a concern here 👍 .

@dtzSiFive dtzSiFive added the FIRRTL Involving the `firrtl` dialect label Jun 13, 2023
Copy link
Member

@uenoku uenoku left a comment

Choose a reason for hiding this comment

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

LGTM!

@dtzSiFive
Copy link
Contributor Author

Great, thanks for review!

@dtzSiFive dtzSiFive merged commit c2c182f into llvm:main Jun 13, 2023
@dtzSiFive dtzSiFive deleted the feature/refcast-lowertypes branch June 13, 2023 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FIRRTL Involving the `firrtl` dialect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants