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:
@@ -9,7 +9,7 @@ function %not_reached(i32) -> i32 {
|
||||
|
||||
ebb0(v0: i32):
|
||||
brnz v0, ebb2 ; unordered: ebb0:inst0 -> ebb2
|
||||
trap
|
||||
trap user0
|
||||
|
||||
ebb1:
|
||||
v1 = iconst.i32 1
|
||||
|
||||
Reference in New Issue
Block a user