about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-31 14:46:07 +0200
committerGitHub <noreply@github.com>2024-08-31 14:46:07 +0200
commit1c51e5b110a328ffb7d726ae7ce0aa07befd010b (patch)
tree8749f17a2b9c5dfefbaa99a4938f5d887d50aaee /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentea5bb99c0f4ef142cd548e74b4e6857468385b7a (diff)
parentdff3d3588d8ba35e4b730384d885c95e31e07953 (diff)
downloadrust-1c51e5b110a328ffb7d726ae7ce0aa07befd010b.tar.gz
rust-1c51e5b110a328ffb7d726ae7ce0aa07befd010b.zip
Rollup merge of #129711 - lqd:nll-mir-dumps, r=compiler-errors
Expand NLL MIR dumps

This PR is a first step to clean up and expand NLL MIR dumps:
- by restoring the "mir-include-spans" comments which are useful for `-Zdump-mir=nll`
- by adding the list of borrows to NLL MIR dumps, where they are introduced in the CFG and in which region

Comments in MIR dumps were turned off in #112346, but as shown in #114652 they were still useful for us working with NLL MIR dumps. So this PR pulls `-Z mir-include-spans` into its own options struct, so that passes dumping MIR can override them if need be. The rest of the compiler is not affected, only the "nll" pass dumps have these comments enabled again. The CLI still has priority when specifying the flag, so that we can explicitly turn them off in the `mir-opt` tests to keep blessed dumps easier to work with (which was one of the points of #112346).

Then, as part of a couple steps to improve NLL/polonius MIR dumps and `.dot` visualizations, I've also added the list of borrows and where they're introduced. I'm doing all this to help debug some polonius scope issues in my prototype location-sensitive analysis :3. I'll probably add member constraints soon.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions