-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[NewPM][BPF] Add BPFCodeGenPassBuilder
#94158
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
base: main
Are you sure you want to change the base?
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.
We need a simple enough target to make codegen pipeline as short as possible.
No, how to extend the codegen pipeline is still controversial. It seems that using callback functions is better than polymorphic member function. |
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.
Code churn and nothing more. No.
can you clarify your comment? we're trying to make codegen work with the new pass manager |
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.
anyway, lgtm
all TODO are screaming that this is useless change. |
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This file implements BPFCodeGenPassBuilder class. |
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.
I'd remove this comment, it's not very useful
because we're going to implement them in a followup change this PR is just boilerplate and doesn't actually do much. however, it makes follow-up changes smaller which is valuable for reviewing |
Not really. At present this is pointless code churn and nothing else. Make a meaningful diff and describe the reasons to make it. |
We need a simple enough target to make codegen pipeline short, so we can handle important passes (e.g. asm printer) as soon as possible.