You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Now, the midend Passes are written in c++, which I don't think is elegant.Such passes are too spread out.
Here are my reasons.
Using tablegen can make the code more stable
The version of llvm is changing all the time, so maintaining the stability of the project is a problem, we should try our best to ensure stability and reduce the trouble when updating llvm.
Reduce the amount of code in c++
As an example, the automatically generated pass class contains the following.
Make the code more intuitive
This means I can use the pass like this buddy-opt xxx.mlir -my-pass="variable=false"
I also know that this pass runs at the level of func.
Use Declarative Pass Specification Many communities use it
The above are just some of the benefits I can think of, but I don't think that's all of them.
Describe the solution you'd like
I think you just need to understand what's going on here,then define all passes in a tablegen file.If you have questions, feel free to leave a comment below.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Now, the midend Passes are written in c++, which I don't think is elegant.Such passes are too spread out.
Here are my reasons.
The version of llvm is changing all the time, so maintaining the stability of the project is a problem, we should try our best to ensure stability and reduce the trouble when updating llvm.
As an example, the automatically generated pass class contains the following.
This means I can use the pass like this
buddy-opt xxx.mlir -my-pass="variable=false"
I also know that this pass runs at the level of func.
The above are just some of the benefits I can think of, but I don't think that's all of them.
Describe the solution you'd like
I think you just need to understand what's going on here,then define all passes in a tablegen file.If you have questions, feel free to leave a comment below.
The text was updated successfully, but these errors were encountered: