| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Binaryen.Relooper
Description
Control flow graph / relooper.
See https://github.com/WebAssembly/binaryen/blob/master/src/binaryen-c.h for API documentation.
This module is intended to be imported qualified.
Documentation
Instances
| Eq Relooper Source # | |
| Show Relooper Source # | |
| Storable Relooper Source # | |
| Defined in Binaryen.Relooper Methods peekElemOff :: Ptr Relooper -> Int -> IO Relooper pokeElemOff :: Ptr Relooper -> Int -> Relooper -> IO () peekByteOff :: Ptr b -> Int -> IO Relooper pokeByteOff :: Ptr b -> Int -> Relooper -> IO () | |
newtype RelooperBlock Source #
Constructors
| RelooperBlock (Ptr RelooperBlock) | 
Instances
| Eq RelooperBlock Source # | |
| Defined in Binaryen.Relooper | |
| Show RelooperBlock Source # | |
| Defined in Binaryen.Relooper Methods showsPrec :: Int -> RelooperBlock -> ShowS show :: RelooperBlock -> String showList :: [RelooperBlock] -> ShowS | |
addBlock :: Relooper -> Expression -> IO RelooperBlock Source #
addBranch :: RelooperBlock -> RelooperBlock -> Expression -> Expression -> IO () Source #
addBlockWithSwitch :: Relooper -> Expression -> Expression -> IO RelooperBlock Source #
addBranchForSwitch :: RelooperBlock -> RelooperBlock -> Ptr Index -> Index -> Expression -> IO () Source #
renderAndDispose :: Relooper -> RelooperBlock -> Index -> IO Expression Source #