1
Fork 0
rust/src/librustc_mir/interpret/mod.rs

71 lines
940 B
Rust
Raw Normal View History

2017-07-21 17:25:30 +02:00
//! An interpreter for MIR used in CTFE and by miri
mod cast;
mod const_eval;
2016-03-14 21:48:00 -06:00
mod error;
mod eval_context;
mod lvalue;
2017-07-13 21:57:13 -07:00
mod validation;
2017-07-21 17:25:30 +02:00
mod machine;
2016-03-05 00:48:23 -06:00
mod memory;
2016-12-10 16:23:07 -08:00
mod operator;
mod step;
mod terminator;
2017-02-10 02:28:51 -08:00
mod traits;
mod value;
pub use self::error::{
EvalError,
EvalResult,
};
pub use self::eval_context::{
EvalContext,
Frame,
2016-11-26 17:54:19 -08:00
ResourceLimits,
StackPopCleanup,
DynamicLifetime,
TyAndPacked,
};
pub use self::lvalue::{
Lvalue,
LvalueExtra,
Global,
GlobalId,
};
pub use self::memory::{
2016-12-10 16:23:07 -08:00
AllocId,
Memory,
2017-07-04 13:16:29 +02:00
MemoryPointer,
Kind,
HasMemory,
};
use self::memory::{
PointerArithmetic,
LockInfo,
AccessKind,
};
pub use self::value::{
PrimVal,
PrimValKind,
2016-12-21 17:15:03 -08:00
Value,
Pointer,
};
pub use self::const_eval::{
eval_body_as_integer,
2017-07-21 17:25:30 +02:00
eval_body_as_primval,
};
pub use self::machine::{
Machine,
};
pub use self::validation::{
ValidationQuery,
};