diff options
| author | mark <markm@cs.wisc.edu> | 2020-04-04 12:59:51 -0500 |
|---|---|---|
| committer | Who? Me?! <mark-i-m@users.noreply.github.com> | 2020-04-18 11:11:33 -0500 |
| commit | 14913fa29cd1d3fdf10e85ee5f18a32ca91de0f2 (patch) | |
| tree | e0e8bbab8ac9e5b12f3d1cf8535c0c1b336b6396 /src/doc/rustc-dev-guide | |
| parent | 53f195ac76c35586045af7b440c7c2894519673e (diff) | |
| download | rust-14913fa29cd1d3fdf10e85ee5f18a32ca91de0f2.tar.gz rust-14913fa29cd1d3fdf10e85ee5f18a32ca91de0f2.zip | |
Improve description of MIR
Co-Authored-By: Centril <twingoow@gmail.com>
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/overview.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/overview.md b/src/doc/rustc-dev-guide/src/overview.md index 8f6d00d7ecc..37a082070e8 100644 --- a/src/doc/rustc-dev-guide/src/overview.md +++ b/src/doc/rustc-dev-guide/src/overview.md @@ -165,9 +165,10 @@ for different purposes: is a type of diagram that shows the basic blocks of a program and how control flow can go between them. Likewise, MIR also has a bunch of basic blocks with simple typed statements inside them (e.g. assignment, simple computations, - dropping values, etc). MIR is used for borrow checking and a bunch of other - important dataflow based checks, such as checking for uninitialized values. - It is also used for a bunch of optimizations and for constant evaluation (via + etc) and control flow edges to other basic blocks (e.g., calls, dropping + values). MIR is used for borrow checking and other + important dataflow-based checks, such as checking for uninitialized values. + It is also used for a series of optimizations and for constant evaluation (via MIRI). Because MIR is still generic, we can do a lot of analyses here more efficiently than after monomorphization. - LLVM IR: This is the standard form of all input to the LLVM compiler. LLVM IR |
