llvm-general-quote-0.2.0.0: QuasiQuoting llvm code for llvm-general

Safe HaskellNone
LanguageHaskell2010

LLVM.General.Quote.Base

Documentation

type CodeGen = State (Int, Map Name [Operand]) Source

class (Applicative m, Monad m) => CodeGenMonad m where Source

Methods

newVariable :: m Name Source

exec :: m () -> m [BasicBlock] Source

class ToDefintions a where Source

Methods

toDefinitions :: a -> [Definition] Source

Instances

ToDefintion a => ToDefintions [a] 

quasiquote :: forall a b. (Data a, QQExp a b) => [Extensions] -> P a -> TQuasiQuoter b Source

quasiquoteM :: forall a b m. (Data a, QQExp a b, CodeGenMonad m) => [Extensions] -> P a -> TQuasiQuoter (m b) Source

newtype TQuasiQuoter a Source

Constructors

TQuasiQuoter 

parse :: [Extensions] -> P a -> String -> Q a Source