aboutsummaryrefslogtreecommitdiff
path: root/patio-to-cranelift/src/patio/operands.rs
blob: 05f9eec38fcc383cdbbbe9daece46438e2533e69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::patio::values::{PatioDataPtrValue, PatioIntValue};

#[derive(Debug)]
pub(crate) enum PatioOperand {
    BoolConst(bool),
    ByteConst(u8),
    DataPtrConst(PatioDataPtrValue),
    FunctionPtrConst,
    IntConst(PatioIntValue),
    Int32Const(PatioIntValue),
    LocalRef(PatioLocalRef),
}

#[derive(Debug)]
pub(crate) struct PatioLocalRef {
    pub(crate) name: String,
}