Skip to content

Refactor the code to make it more scalable#21

Merged
tancheng merged 7 commits intomainfrom
code_refactor
May 25, 2025
Merged

Refactor the code to make it more scalable#21
tancheng merged 7 commits intomainfrom
code_refactor

Conversation

@ShangkunLi
Copy link
Copy Markdown
Collaborator

Refactor the code to make it easier to add new dialects/passes. There mainly changes:

  1. Add the include/NeuraPasses.td file to easily define new passes. Remember to add a let constructor = ... in the file. Also remember to declare the constructor function in NeuraPasses.h.
  2. Move the conversions into the lib/Transforms directory.
  3. You don't need to register the pass one-by-one in mlir-neura-opt.cpp. Just use the mlir::neura::registerPasses();

@tancheng
Copy link
Copy Markdown
Contributor

Thanks for the cleanup @ShangkunLi, my main concern is about Conversion and Transformations. Thanks~!

@tancheng tancheng merged commit 86aab3e into main May 25, 2025
1 check passed
ShangkunLi pushed a commit that referenced this pull request Mar 12, 2026
Refactor the code to make it more scalable
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