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

[FlattenIO] Fix module input and output port name order. #6495

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

prithayan
Copy link
Contributor

Fix a bug in FlattenIO, it was incorrectly reordering the input and output port name attributes of a module.

hw.module @instance_extern2(in %arg0 : i32, in %arg1 : !Struct1, out out : !Struct1) {
%0:3 = hw.instance "l1" @level1_extern(arg0: %arg0 : i32, in: %arg1 : !Struct1, arg1: %arg0 : i32) -> (out0: i32, out: !Struct1, out1: i32)
hw.output %0#1 : !Struct1
}
Copy link
Member

Choose a reason for hiding this comment

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

nit: newline

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

@prithayan prithayan force-pushed the dev/pbarua/flatternio_externmod branch from 9edca65 to d99086b Compare December 7, 2023 15:07
@prithayan prithayan merged commit 2d822ea into main Dec 7, 2023
4 checks passed
@prithayan prithayan deleted the dev/pbarua/flatternio_externmod branch December 7, 2023 17:09
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.

2 participants