]> git.proxmox.com Git - rustc.git/blame - src/librustc_mir/interpret/mod.rs
New upstream version 1.31.0+dfsg1
[rustc.git] / src / librustc_mir / interpret / mod.rs
CommitLineData
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
13mod cast;
ff7c6d11
XL
14mod eval_context;
15mod place;
b7449926 16mod operand;
ff7c6d11
XL
17mod machine;
18mod memory;
19mod operator;
0bf4aa26 20pub(crate) mod snapshot; // for const_eval
ff7c6d11
XL
21mod step;
22mod terminator;
23mod traits;
b7449926
XL
24mod validity;
25mod intrinsics;
26
0bf4aa26
XL
27pub use rustc::mir::interpret::*; // have all the `interpret` symbols in one place: here
28
b7449926
XL
29pub use self::eval_context::{
30 EvalContext, Frame, StackPopCleanup, LocalValue,
31};
32
33pub use self::place::{Place, PlaceTy, MemPlace, MPlaceTy};
ff7c6d11 34
b7449926 35pub use self::memory::{Memory, MemoryKind};
ff7c6d11 36
0bf4aa26
XL
37pub use self::machine::{Machine, AllocMap, MemoryAccess, MayLeak};
38
39pub use self::operand::{ScalarMaybeUndef, Value, ValTy, Operand, OpTy};
40
41pub use self::validity::RefTracking;