]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | // Copyright 2018 The Rust Project Developers. See the COPYRIGHT |
2 | // file at the top-level directory of this distribution and at | |
3 | // http://rust-lang.org/COPYRIGHT. | |
4 | // | |
5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | // option. This file may not be copied, modified, or distributed | |
9 | // except according to those terms. | |
10 | ||
ff7c6d11 XL |
11 | //! An interpreter for MIR used in CTFE and by miri |
12 | ||
13 | mod cast; | |
ff7c6d11 XL |
14 | mod eval_context; |
15 | mod place; | |
b7449926 | 16 | mod operand; |
ff7c6d11 XL |
17 | mod machine; |
18 | mod memory; | |
19 | mod operator; | |
0bf4aa26 | 20 | pub(crate) mod snapshot; // for const_eval |
ff7c6d11 XL |
21 | mod step; |
22 | mod terminator; | |
23 | mod traits; | |
b7449926 XL |
24 | mod validity; |
25 | mod intrinsics; | |
26 | ||
0bf4aa26 XL |
27 | pub use rustc::mir::interpret::*; // have all the `interpret` symbols in one place: here |
28 | ||
b7449926 XL |
29 | pub use self::eval_context::{ |
30 | EvalContext, Frame, StackPopCleanup, LocalValue, | |
31 | }; | |
32 | ||
33 | pub use self::place::{Place, PlaceTy, MemPlace, MPlaceTy}; | |
ff7c6d11 | 34 | |
b7449926 | 35 | pub use self::memory::{Memory, MemoryKind}; |
ff7c6d11 | 36 | |
0bf4aa26 XL |
37 | pub use self::machine::{Machine, AllocMap, MemoryAccess, MayLeak}; |
38 | ||
39 | pub use self::operand::{ScalarMaybeUndef, Value, ValTy, Operand, OpTy}; | |
40 | ||
41 | pub use self::validity::RefTracking; |