Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Global
s - top-level values in Module
s - and supporting structures.
Synopsis
- data Global
- = GlobalVariable {
- name :: Name
- linkage :: Linkage
- visibility :: Visibility
- dllStorageClass :: Maybe StorageClass
- threadLocalMode :: Maybe Model
- unnamedAddr :: Maybe UnnamedAddr
- isConstant :: Bool
- type' :: Type
- addrSpace :: AddrSpace
- initializer :: Maybe Constant
- section :: Maybe ShortByteString
- comdat :: Maybe ShortByteString
- alignment :: Word32
- metadata :: [(ShortByteString, MDRef MDNode)]
- | GlobalAlias { }
- | Function {
- linkage :: Linkage
- visibility :: Visibility
- dllStorageClass :: Maybe StorageClass
- callingConvention :: CallingConvention
- returnAttributes :: [ParameterAttribute]
- returnType :: Type
- name :: Name
- parameters :: ([Parameter], Bool)
- functionAttributes :: [Either GroupID FunctionAttribute]
- section :: Maybe ShortByteString
- comdat :: Maybe ShortByteString
- alignment :: Word32
- garbageCollectorName :: Maybe ShortByteString
- prefix :: Maybe Constant
- basicBlocks :: [BasicBlock]
- personalityFunction :: Maybe Constant
- metadata :: [(ShortByteString, MDRef MDNode)]
- = GlobalVariable {
- data Parameter = Parameter Type Name [ParameterAttribute]
- data BasicBlock = BasicBlock Name [Named Instruction] (Named Terminator)
- data UnnamedAddr
- globalVariableDefaults :: Global
- globalAliasDefaults :: Global
- functionDefaults :: Global
Documentation
Instances
Instances
data BasicBlock Source #
http://llvm.org/doxygen/classllvm_1_1BasicBlock.html
LLVM code in a function is a sequence of BasicBlock
s each with a label,
some instructions, and a terminator.
Instances
data UnnamedAddr Source #
Instances
globalVariableDefaults :: Global Source #
helper for making GlobalVariable
s
globalAliasDefaults :: Global Source #
helper for making GlobalAlias
s
functionDefaults :: Global Source #
helper for making Function
s