ghc-8.8.0.20190613: The GHC API
Safe HaskellNone
LanguageHaskell2010

Llvm.MetaData

Synopsis

Metadata can be constructed in a few different ways (See below).

After which it can either be attached to LLVM statements to pass along

Metadata expressions -- these are the raw metadata values that encode

Metadata nodes -- global metadata variables that attach a metadata

Named metadata -- global metadata variables that attach a metadata nodes

Attach to instructions -- metadata can be attached to LLVM instructions

As arguments -- llvm functions can take metadata as arguments, for

As a named metadata -- Here the metadata is simply declared in global

newtype MetaId Source #

A reference to an un-named metadata node.

Constructors

MetaId Int 

Instances

Instances details
Enum MetaId # 
Instance details

Defined in Llvm.MetaData

Eq MetaId # 
Instance details

Defined in Llvm.MetaData

Methods

(==) :: MetaId -> MetaId -> Bool #

(/=) :: MetaId -> MetaId -> Bool #

Ord MetaId # 
Instance details

Defined in Llvm.MetaData

Outputable MetaId # 
Instance details

Defined in Llvm.MetaData

data MetaExpr Source #

LLVM metadata expressions

Instances

Instances details
Eq MetaExpr # 
Instance details

Defined in Llvm.MetaData

Outputable MetaExpr # 
Instance details

Defined in Llvm.MetaData

data MetaAnnot Source #

Associates some metadata with a specific label for attaching to an instruction.

Instances

Instances details
Eq MetaAnnot # 
Instance details

Defined in Llvm.MetaData

data MetaDecl Source #

Metadata declarations. Metadata can only be declared in global scope.

Constructors

MetaNamed !LMString [MetaId]

Named metadata. Only used for communicating module information to LLVM. ('!name = !{ [!n] }' form).

MetaUnnamed !MetaId !MetaExpr

Metadata node declaration. ('!0 = metadata !{ expression }' form).