This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Issues
Pull requests
Activity
fd9c04fe32
rust
/
compiler
/
rustc_mir
/
src
/
transform
/
mod.rs
6 lines
101 B
Rust
Raw
Normal View
History
Unescape
Escape
Add dataflow-based const validation
2019-09-17 16:25:40 -07:00
pub
mod
check_consts
;
mir: qualify and promote constants.
2016-05-07 19:14:28 +03:00
pub
mod
promote_consts
;
Add a small MIR validation pass
2020-05-24 00:55:44 +02:00
pub
mod
validate
;
retool MIR passes completely The new setup is as follows. There is a pipeline of MIR passes that each run **per def-id** to optimize a particular function. You are intended to request MIR at whatever stage you need it. At the moment, there is only one stage you can request: - `optimized_mir(def_id)` This yields the final product. Internally, it pulls the MIR for the given def-id through a series of steps. Right now, these are still using an "interned ref-cell" but they are intended to "steal" from one another: - `mir_build` -- performs the initial construction for local MIR - `mir_pass_set` -- performs a suite of optimizations and transformations - `mir_pass` -- an individual optimization within a suite So, to construct the optimized MIR, we invoke: mir_pass_set((MIR_OPTIMIZED, def_id)) which will build up the final MIR.
2017-04-27 16:48:48 -04:00
Move the dataflow framework to its own crate.
2021-01-05 19:53:07 +01:00
pub
use
rustc_middle
::
mir
::
MirPass
;
Reference in a new issue
Copy permalink