We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b924cf commit 02dd0aaCopy full SHA for 02dd0aa
scripts/tablegen.hs
@@ -104,13 +104,16 @@ parens xs = "(" ++ xs ++ ")"
104
105
type TableGen = State Int
106
107
+new_sd_op :: TypeShow a => TableGen (SDNode L a)
108
+new_sd_op = SDPatLeaf "" <$> next_int
109
+
110
i32 :: TableGen (SDNode L I32)
-i32 = SDPatLeaf "" <$> next_int
111
+i32 = new_sd_op
112
113
i16 :: TableGen (SDNode L I16)
-i16 = SDPatLeaf "" <$> next_int
114
+i16 = new_sd_op
115
116
i8 :: TableGen (SDNode L I8)
-i8 = SDPatLeaf "" <$> next_int
117
+i8 = new_sd_op
118
119
next_int = State.get >>= \n -> State.modify (+ 1) >> return n
0 commit comments