Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
LLVM.Internal.Context
Synopsis
- data Context = Context (Ptr Context)
- withContext :: (Context -> IO a) -> IO a
- createContext :: IO Context
- disposeContext :: Context -> IO ()
Documentation
a Context object holds the state the of LLVM system needs for one thread of | LLVM compilation. Once upon a time, in early versions of LLVM, this state was global. | Then it got packed up in this object to allow multiple threads to compile at once.
withContext :: (Context -> IO a) -> IO a Source #
Create a Context, run an action (to which it is provided), then destroy the Context.
createContext :: IO Context Source #
Create a Context.
disposeContext :: Context -> IO () Source #
Destroy a context created by createContext
.