booleans, comparisons, and if/else
This commit is contained in:
@@ -95,12 +95,27 @@ Opcode :: enum u8 {
|
||||
Neg_Checked,
|
||||
Add_Checked,
|
||||
Pointer_Add,
|
||||
Not,
|
||||
Compare,
|
||||
Label,
|
||||
Br,
|
||||
Cond_Br,
|
||||
Call,
|
||||
Trap,
|
||||
Return,
|
||||
Return_Void,
|
||||
}
|
||||
|
||||
// Compare_Predicate is stored in Instruction.integer for the Compare opcode.
|
||||
Compare_Predicate :: enum u8 {
|
||||
Eq,
|
||||
Ne,
|
||||
Lt,
|
||||
Le,
|
||||
Gt,
|
||||
Ge,
|
||||
}
|
||||
|
||||
Instruction :: struct {
|
||||
span: source.Span,
|
||||
type: types.Type,
|
||||
|
||||
Reference in New Issue
Block a user