Add trap codes to the Cretonne IL.
The trap and trapz/trapnz instructions now take a trap code immediate operand which indicates the reason for trapping.
This commit is contained in:
@@ -337,7 +337,9 @@ impl<'a> Verifier<'a> {
|
||||
FloatCompare { .. } |
|
||||
Load { .. } |
|
||||
Store { .. } |
|
||||
RegMove { .. } => {}
|
||||
RegMove { .. } |
|
||||
Trap { .. } |
|
||||
CondTrap { .. } => {}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user