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

[HW] Add support for struct_explodeOp in HWToLLVM #4519

Merged
merged 4 commits into from
Jan 31, 2023

Conversation

cepheus69
Copy link

The originally related commits were pushed with zvc framework (PR#4040 closed), and now split out and push separately.
convert struct_explode op to llvm extractvalue op, to eject every element in the struct.

pattern: struct_extract(input) => struct_extract(input, structElements_index(index))

Fix: move the original single struct_explode test to convert_aggregates.mlir file.

@cepheus69
Copy link
Author

@maerhart could you help me take a look ? 😺

Copy link
Member

@maerhart maerhart left a comment

Choose a reason for hiding this comment

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

Just some minor comments.
LGTM, Thanks!

lib/Conversion/HWToLLVM/HWToLLVM.cpp Outdated Show resolved Hide resolved
test/Conversion/HWToLLVM/convert_aggregates.mlir Outdated Show resolved Hide resolved
@maerhart maerhart merged commit 47c0ead into llvm:main Jan 31, 2023
@cepheus69 cepheus69 deleted the dev/conversion branch April 13, 2023 03:29
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