Skip to content

Conversation

@fmayer
Copy link
Contributor

@fmayer fmayer commented Jul 9, 2025

No description provided.

Created using spr 1.3.4
@fmayer fmayer requested a review from fhahn July 9, 2025 20:27
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`.
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

Created using spr 1.3.4
@fmayer fmayer requested a review from fhahn July 9, 2025 21:03
Copy link
Contributor

@fhahn fhahn left a 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>`_
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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)

@fmayer fmayer merged commit 4b30bf0 into main Jul 10, 2025
10 checks passed
@fmayer fmayer deleted the users/fmayer/spr/nfc-docs-point-users-towards-clang-remark-flags branch July 10, 2025 19:32
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.

3 participants