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

Towards vectorized convolution (second PR) #866

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

newling
Copy link
Contributor

@newling newling commented Oct 30, 2024

This is just a copy of MLIR op definitions from mlir-aie. These ops are needed to lower transfer_read with insufficient alignment correctly. In a future PR, the ops added in this PR will be used to lower transfer_read.

Copy link
Collaborator

@jtuyls jtuyls left a comment

Choose a reason for hiding this comment

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

LGTM

}

// Parse Ext op.
ParseResult ExtOp::parse(OpAsmParser &parser, OperationState &result) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this really need cpp parse/print functions? It would be nice to just use tablegen. Same for ShiftOp below. No hard objections though as it's copy/paste from mlir-aie aievec.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

( @jsetoain if you have an opinion )

Copy link

@jsetoain jsetoain Oct 31, 2024

Choose a reason for hiding this comment

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

Jorn is correct, none of these need custom parsers/printers, and they've ended up the way they are for non-technical reasons. It's a matter of finding the time to clean up. I'll create an issue to keep track of this.

Edit: Here it is, issue #1894

@newling newling enabled auto-merge (squash) October 31, 2024 17:51
@newling newling merged commit c6156e3 into nod-ai:main Oct 31, 2024
5 checks passed
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.

3 participants