-
Notifications
You must be signed in to change notification settings - Fork 86
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
[aievec] Make transpose lowering more progressive #1574
base: main
Are you sure you want to change the base?
[aievec] Make transpose lowering more progressive #1574
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
return failure(); | ||
|
||
rewriter.replaceOpWithNewOp<aievec::ShuffleOp>( | ||
transpOp, resVecTy, adaptor.getMatrix(), nullptr, shuffleMode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
operand name is matrix, interesting.
@@ -2880,6 +2880,67 @@ struct LowerVectorTransposeOpToAIEVecShuffleOpPattern | |||
} | |||
}; | |||
|
|||
// Convert a `vector.flat_transpose` op to an `aievec.shuffle` op for AIEml. | |||
struct LowerVectorFlatTransposeOpToAIEVecShuffleOpPattern |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably remove the old pattern LowerVectorTransposeOpToAIEVecShuffleOpPattern
in the future, to reduce the maintenance cost.
@@ -562,6 +562,54 @@ struct ExtractTransposeFromContractionOp | |||
} | |||
}; | |||
|
|||
// This pattern flattens a `vector.transpose` operation for shapes that can be | |||
// handled by basic AIE shuffle ops. | |||
struct FlattenVectorTransposeOpPattern |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a separate lit test for this pattern? Thanks!
993340c
to
7aecaa5
Compare
No description provided.