File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,22 @@ data SDNode (l :: LeafKind) (a :: SDKind) where
26
26
SDBuildPair :: SDGT b a => SDNode k a -> SDNode l a -> SDNode N b
27
27
SDLoadOp :: SDIsInt a => SDNode l SDPtr -> SDNode N a
28
28
SDStoreOp :: SDIsInt a => SDNode k SDPtr -> SDNode l a -> SDNode N SDUnit
29
+ SDSelectCC :: SDNode h a -> SDNode j a -> SDNode k b -> SDNode l b
30
+ -> CondCode -> SDNode N b
31
+ SDBrCC :: CondCode -> SDNode j a -> SDNode k a -> SDNode l BasicBlock
32
+ -> SDNode N SDUnit
33
+ SDBr :: SDNode l BasicBlock -> SDNode N SDUnit
29
34
SDPatLeaf :: TypeShow a => String -> Int -> SDNode L a
30
35
31
36
-- Operand kind
32
37
data SDKind = SDI Nat | Imm Nat | SDPtr | SDUnit | BasicBlock
33
38
39
+ data CondCode
40
+ = SETOEQ | SETOGT | SETOGE | SETOLT | SETOLE | SETONE | SETO
41
+ | SETUO | SETUEQ | SETUGT | SETUGE | SETULT | SETULE | SETUNE
42
+ | SETEQ | SETGT | SETGE | SETLT | SETLE | SETNE
43
+ deriving (Show , Eq )
44
+
34
45
type I32 = SDI 32
35
46
type I16 = SDI 16
36
47
type I8 = SDI 8
You can’t perform that action at this time.
0 commit comments