Safe Haskell | Safe |
---|---|
Language | Haskell98 |
LLVM.AST.Operand
Description
A type to represent operands to LLVM Instruction
s
Synopsis
- newtype MetadataNodeID = MetadataNodeID Word
- data MetadataNode
- data Metadata
- data Operand
- type CallableOperand = Either InlineAssembly Operand
Documentation
newtype MetadataNodeID Source #
A MetadataNodeID
is a number for identifying a metadata node.
Note this is different from "named metadata", which are represented with
NamedMetadataDefinition
.
Constructors
MetadataNodeID Word |
Instances
data MetadataNode Source #
Constructors
MetadataNode [Maybe Metadata] | |
MetadataNodeReference MetadataNodeID |
Instances
Constructors
MDString ShortByteString | |
MDNode MetadataNode | |
MDValue Operand | http://llvm.org/docs/doxygen/html/classllvm_1_1ValueAsMetadata.html |
Instances
Eq Metadata Source # | |
Data Metadata Source # | |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Metadata -> c Metadata # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Metadata # toConstr :: Metadata -> Constr # dataTypeOf :: Metadata -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Metadata) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Metadata) # gmapT :: (forall b. Data b => b -> b) -> Metadata -> Metadata # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Metadata -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Metadata -> r # gmapQ :: (forall d. Data d => d -> u) -> Metadata -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Metadata -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Metadata -> m Metadata # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Metadata -> m Metadata # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Metadata -> m Metadata # | |
Ord Metadata Source # | |
Read Metadata Source # | |
Show Metadata Source # | |
Generic Metadata Source # | |
type Rep Metadata Source # | |
type Rep Metadata = D1 (MetaData "Metadata" "LLVM.AST.Operand" "llvm-hs-pure-6.0.0-JDMT8hd3oKgE19P5EBaRIN" False) (C1 (MetaCons "MDString" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ShortByteString)) :+: (C1 (MetaCons "MDNode" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MetadataNode)) :+: C1 (MetaCons "MDValue" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Operand)))) |
An Operand
is roughly that which is an argument to an Instruction
Constructors
LocalReference Type Name | %foo |
ConstantOperand Constant |
|
MetadataOperand Metadata |
Instances
type CallableOperand = Either InlineAssembly Operand Source #
The Call
instruction is special: the callee can be inline assembly