mlir-hs-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

MLIR.AST.Serialize

Documentation

type ValueMapping = Map Name Value Source #

class FromAST ast native | ast -> native where Source #

Methods

fromAST :: Context -> ValueAndBlockMapping -> ast -> IO native Source #

Instances

Instances details
FromAST Operation Operation Source # 
Instance details

Defined in MLIR.AST

FromAST Region Region Source # 
Instance details

Defined in MLIR.AST

FromAST Block Block Source # 
Instance details

Defined in MLIR.AST

FromAST Location Location Source # 
Instance details

Defined in MLIR.AST

FromAST Type Type Source # 
Instance details

Defined in MLIR.AST

FromAST Type Type Source # 
Instance details

Defined in MLIR.AST.Dialect.LLVM

packFromAST :: (FromAST ast native, Storable native) => Context -> ValueAndBlockMapping -> [ast] -> ContT r IO (CIntPtr, Ptr native) Source #

packArray :: Storable a => [a] -> ContT r IO (CIntPtr, Ptr a) Source #

unpackArray :: Storable a => CIntPtr -> Ptr a -> IO [a] Source #