-
Notifications
You must be signed in to change notification settings - Fork 169
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
[Midend] Add simplify add-const-reshape pass #389
[Midend] Add simplify add-const-reshape pass #389
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.
- Rename the folder: LlamaOptimizations -> OpSimplification
- Please include an example in
examples/BuddyNext
to demonstrate the efficiency of the pass.
@@ -0,0 +1,111 @@ | |||
#include <mlir/Dialect/Affine/IR/AffineOps.h> |
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.
Please add the license header.
|
||
LINK_LIBS PUBLIC | ||
BuddyUtils | ||
) |
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.
Please add an empty line here.
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.
Didn't find the simplify-tosa-add-reshape
here.
examples/BuddyNext/makefile
Outdated
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.
Didn't find the simplify-tosa-add-reshape
here.
@@ -0,0 +1,131 @@ | |||
//====- AddConstReshape2Const.cpp----------------------------===// |
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.
Please follow the 80-character rule for the header; other file can be referenced.
add-const-reshape simplify: