about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-08-18 19:55:04 +0200
committerGitHub <noreply@github.com>2021-08-18 19:55:04 +0200
commite2271cd42228af817bfbda684b93b7ab20f29f8e (patch)
tree47e0ed5f730b9f9bac8ac27168e16f35a369c23e /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent75c6a9190d5b9793e3cadf5c81b8aa962d4455e7 (diff)
parent0ce96bdcfad27bcfc171afe37b105e02cd82cf61 (diff)
downloadrust-e2271cd42228af817bfbda684b93b7ab20f29f8e.tar.gz
rust-e2271cd42228af817bfbda684b93b7ab20f29f8e.zip
Rollup merge of #88129 - willcrichton:expose-graphviz-modules, r=ecstatic-morse
Fix dataflow graphviz bug, make dataflow graphviz modules public

I'm working on a rustc plugin that uses the dataflow framework for MIR analysis. I've found the graphviz utilities extremely helpful for debugging. However, I had to fork the compiler to expose them since they're currently private. I would appreciate if they could be made public so I can build against a nightly instead of a custom fork. Specifically, this PR:

* Makes public the `rustc_mir::dataflow::framework::graphviz` module.
* Makes public the `rustc_mir::util::pretty::write_mir_fn` function.

Here's a concrete example of how I'm using the graphviz module: https://github.com/willcrichton/flowistry/blob/97b843b8b06b4004fbb79b5fcfca3e33c7143bc0/src/slicing/mod.rs#L186-L203

Additionally, this PR fixes a small bug in the diff code that incorrectly shows the updated object as the old object.

r? `@ecstatic-morse`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions