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] Add list concatenation operation. #7486

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

mikeurbach
Copy link
Contributor

@mikeurbach mikeurbach commented Aug 9, 2024

This operation produces a list by concatenating lists of the same
type. The operation definition and a simple round trip test have been
added. This is used to compose lists, which is a key feature to enable
hierarchical composition of Properties.

This operation produces a list by concatenating lists of the same
type. The operation definition and a simple round trip test have been
added. This is used to compose lists, which is a key feature to enable
hierarchical composition of Properties.
let arguments = (ins Variadic<ListType>:$subLists);
let results = (outs ListType:$result);

let assemblyFormat = "$subLists attr-dict `:` type($result)";
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be neat to give this a folder in the future for IR simplification (and use w/IMCP) but that can come later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could be interesting! I think there are lot of interesting optimizations we could explore on properties.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah just thinking about cleaning up the trivial stuff that literally constant-folds. I'm not sure we're likely to feed this constants at first/soon and yep lots of interesting things for sure! Look forward to it, LMK if want some assistance!

Looks like integer ops have issues filed for adding folders there, but quick check on some internal usage suggests these wouldn't help much just yet anyway.

Anyway stray thought, GLHF!

@mikeurbach mikeurbach merged commit 7f366b0 into main Aug 12, 2024
4 checks passed
@mikeurbach mikeurbach deleted the mikeurbach/firrtl-list-concat branch August 12, 2024 17:08
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