Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- data MachineDesc = MachineDesc {}
- intExpr :: (Pos n, MonadName m) => n -> Integer -> m CExpr
- sizeofType :: (MonadTrav m, CNode n) => MachineDesc -> n -> Type -> m Integer
- alignofType :: (MonadTrav m, CNode n) => MachineDesc -> n -> Type -> m Integer
- compSizeAndAlign :: MonadTrav m => MachineDesc -> CompTypeRef -> m (Integer, Integer)
- roundToAlignment :: Integer -> Integer -> Integer
- intOp :: CBinaryOp -> Integer -> Integer -> Integer
- intUnOp :: CUnaryOp -> Integer -> Maybe Integer
- withWordBytes :: Int -> Integer -> Integer
- boolValue :: CExpr -> Maybe Bool
- intValue :: CExpr -> Maybe Integer
- constEval :: MonadTrav m => MachineDesc -> Map Ident CExpr -> CExpr -> m CExpr
Documentation
data MachineDesc Source #
sizeofType :: (MonadTrav m, CNode n) => MachineDesc -> n -> Type -> m Integer Source #
alignofType :: (MonadTrav m, CNode n) => MachineDesc -> n -> Type -> m Integer Source #
:: MonadTrav m | |
=> MachineDesc | |
-> CompTypeRef | |
-> m (Integer, Integer) | (size, alignment) |
Find the next multiple of an alignment