rust/compiler/rustc_codegen_llvm/src
Matthias Krüger e4eaf319c1
Rollup merge of #111203 - Kobzol:remark-print-kind, r=tmiasko
Output LLVM optimization remark kind in `-Cremark` output

Since https://github.com/rust-lang/rust/pull/90833, the optimization remark kind has not been printed. Therefore it wasn't possible to easily determine from the log (in a programmatic way) which remark kind was produced. I think that the most interesting remarks are the missed ones, which can lead users to some code optimization.

Maybe we could also change the format closer to the "old" one:
```
note: optimization remark for tailcallelim at /checkout/src/libcore/num/mod.rs:1:0: marked this call a tail call candidate
```

I wanted to programatically parse the remarks so that they could work e.g. with https://github.com/OfekShilon/optview2. However, now that I think about it, probably the proper solution is to tell rustc to output them to YAML and then use the YAML as input for the opt remark visualization tools. The flag for enabling this does not seem to work though (https://github.com/rust-lang/rust/issues/96705#issuecomment-1117632322).

Still I think that it's good to output the remark kind anyway, it's an important piece of information.

r? ```@tmiasko```
2023-05-06 23:32:02 +02:00
..
back Rollup merge of #111203 - Kobzol:remark-print-kind, r=tmiasko 2023-05-06 23:32:02 +02:00
coverageinfo Use IntoIterator for mk_fn_sig. 2023-02-17 22:24:34 +11:00
debuginfo debuginfo: split method declaration and definition 2023-05-03 15:52:31 -07:00
llvm Rollup merge of #111167 - cuviper:type-decl-disubprogram, r=michaelwoerister 2023-05-06 13:30:05 +02:00
abi.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
allocator.rs Revert "Remove #[alloc_error_handler] from the compiler and library" 2023-04-25 00:08:35 +02:00
asm.rs Rollup merge of #105452 - rcvalle:rust-cfi-3, r=bjorn3 2023-05-03 16:42:48 -07:00
attributes.rs Add kernel-address sanitizer support for freestanding targets 2023-02-14 20:54:25 -05:00
base.rs Remove several unused methods from MiscMethods 2022-10-01 16:45:07 +00:00
builder.rs Add cross-language LLVM CFI support to the Rust compiler 2023-05-03 22:41:29 +00:00
callee.rs rename needs_infer to has_infer 2023-04-27 08:35:19 +01:00
common.rs Store hashes in special types so they aren't accidentally encoded as numbers 2023-04-18 10:52:47 -04:00
consts.rs review 2023-04-05 15:08:17 +03:00
context.rs Add cross-language LLVM CFI support to the Rust compiler 2023-05-03 22:41:29 +00:00
declare.rs Add cross-language LLVM CFI support to the Rust compiler 2023-05-03 22:41:29 +00:00
errors.rs Rollup merge of #111203 - Kobzol:remark-print-kind, r=tmiasko 2023-05-06 23:32:02 +02:00
intrinsic.rs Add cross-language LLVM CFI support to the Rust compiler 2023-05-03 22:41:29 +00:00
lib.rs Revert "Remove #[alloc_error_handler] from the compiler and library" 2023-04-25 00:08:35 +02:00
llvm_util.rs added SAFETY comment 2023-05-04 20:54:17 -04:00
mono_item.rs rename needs_infer to has_infer 2023-04-27 08:35:19 +01:00
type_.rs Add cross-language LLVM CFI support to the Rust compiler 2023-05-03 22:41:29 +00:00
type_of.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
va_arg.rs Implement va_list and va_arg for s390x FFI 2022-12-19 21:07:57 +01:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00