Skip to content

Commit 93880c8

Browse files
add missing enum trac data
1 parent c8b754a commit 93880c8

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
B0($1:ui8)
2+
CALL $2 nautilus::enumClassFunction(nautilus::LogLevel)($1) :i32
3+
RETURN $2 :i32
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
B0($1:ui8)
2+
CONST $2 6 :ui8
3+
EQ $3 $1 $2 :bool
4+
CONST $4 5 :ui8
5+
EQ $5 $1 $4 :bool
6+
OR $6 $3 $5 :bool
7+
RETURN $6 :bool
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
NautilusIr {
2+
execute() {
3+
Block_0($1:ui8):
4+
$2 = nautilus::enumClassFunction(nautilus::LogLevel)($1) :i32
5+
return ($2) :i32
6+
}
7+
} //NESIR
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
NautilusIr {
2+
execute() {
3+
Block_0($1:ui8):
4+
$2 = 6 :ui8
5+
$3 = $1 == $2 :bool
6+
$4 = 5 :ui8
7+
$5 = $1 == $4 :bool
8+
$6 = $3 or $5 :bool
9+
return ($6) :bool
10+
}
11+
} //NESIR
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
B0($1:ui8)
2+
CALL $2 nautilus::enumClassFunction(nautilus::LogLevel)($1) :i32
3+
RETURN $2 :i32
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
B0($1:ui8)
2+
CONST $2 6 :ui8
3+
EQ $3 $1 $2 :bool
4+
CONST $4 5 :ui8
5+
EQ $5 $1 $4 :bool
6+
OR $6 $3 $5 :bool
7+
RETURN $6 :bool

0 commit comments

Comments
 (0)