This commit is contained in:
nora 2023-05-23 17:09:08 +02:00
parent 542c0daf6a
commit 86b924f5e3
7 changed files with 171 additions and 67 deletions

View file

@ -122,6 +122,11 @@ pub enum StatementKind {
rhs: Operand,
result: Register,
},
UnaryOperation {
rhs: Operand,
kind: UnaryKind,
result: Register,
},
PtrOffset {
result: Register,
reg: Register,
@ -171,6 +176,13 @@ pub enum BinKind {
BitXor,
}
#[derive(Debug, Clone, Copy)]
pub enum UnaryKind {
Negate,
BitNot,
LogicalNot,
}
#[derive(Debug, Clone, Copy)]
pub enum ConstValue {
Void,