-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[PIR][CUSTOM PASS] Part1: Reconstruct drr #60783
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
6acc76a
to
fe3aae1
Compare
virtual std::string pattern_name() const = 0; | ||
|
||
// Give the drr pattern benefit. | ||
virtual uint32_t pattern_benefit() const { return 1; } |
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.
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.
这两个感觉是取值函数,你看呢?
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.
讨论后,将pattern_name()改为name(), pattern_benefit()改为benefit(),更加直观简洁
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
PR types
New features
PR changes
Others
Description
为了支持外部用户使用C++写自定义Pass,需要为Pir/Drr等梳理规范include头文件。作为Part1,本PR将Drr重构了一下,规范出include文件夹。修改主要是如下几点:
修改前Drr目录:


修改后Drr目录:
Others
Pcard-71500