neo_solidity/scheduler.rs
1//! Instruction Scheduler
2//!
3//! Reorders instructions for better performance.
4
5/// Scheduling priority
6#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
7pub enum Priority {
8 Low = 0,
9 Normal = 1,
10 High = 2,
11}
12
13/// Scheduled instruction
14#[derive(Debug)]
15pub struct ScheduledInstr {
16 pub index: usize,
17 pub priority: Priority,
18}