language-c-0.8.2: Analysis and generation of C code

Safe HaskellNone
LanguageHaskell98

Language.C.Analysis.ConstEval

Documentation

data MachineDesc Source #

Constructors

MachineDesc 

Fields

intExpr :: (Pos n, MonadName m) => n -> Integer -> m CExpr Source #

sizeofType :: (MonadTrav m, CNode n) => MachineDesc -> n -> Type -> m Integer Source #

alignofType :: (MonadTrav m, CNode n) => MachineDesc -> n -> Type -> m Integer Source #

intOp :: CBinaryOp -> Integer -> Integer -> Integer Source #

intUnOp :: CUnaryOp -> Integer -> Maybe Integer Source #

withWordBytes :: Int -> Integer -> Integer Source #

boolValue :: CExpr -> Maybe Bool Source #

intValue :: CExpr -> Maybe Integer Source #