-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[NFC] [docs] point users towards clang remark flags #147820
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
[NFC] [docs] point users towards clang remark flags #147820
Conversation
Created using spr 1.3.4
llvm/docs/Remarks.rst
Outdated
| There are two modes that are supported for enabling optimization remarks in | ||
| LLVM: through remark diagnostics, or through serialized remarks. | ||
|
|
||
| See also the clang flags `-Rpass` and `-fsave-optimization-record`. |
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.
Is it possible to link to/ cross-reference the clang docs 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.
Sure
fhahn
left a comment
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, thanks
| LLVM: through remark diagnostics, or through serialized remarks. | ||
|
|
||
| See also the clang flags | ||
| `-Rpass <https://clang.llvm.org/docs/UsersManual.html#options-to-emit-optimization-reports>`_ |
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.
Is it possible to directly reference the sections via RST, so we don't hard-code them? This would avoid potentially having them broken in the future.
If not, that should be fine.
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 don't know, to be honest.
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.
(The problem is that this is in the LLVM RST, while the target is in the clang. They are hosted on separate subdomains, so I am not sure how that would work)
No description provided.