LLVM.Core

Initialize

initializeNativeTarget

Modules

data Module

newModule

newNamedModule

defineModule

destroyModule

createModule

setTarget

hostTriple

data PassManager

createPassManager

createFunctionPassManager

writeBitcodeToFile

readBitcodeFromFile

getModuleValues

getFunctions

getGlobalVariables

data ModuleValue

castModuleValue

Instructions

ADT representation of IR

data BinOpDesc

data InstrDesc

data ArgDesc

getInstrDesc

Terminator instructions

ret

condBr

br

switch

invoke

invokeWithConv

invokeFromFunction

invokeWithConvFromFunction

unreachable

Arithmetic binary operations

add

sub

mul

neg

iadd

isub

imul

ineg

fadd

fsub

fmul

fneg

idiv

irem

udiv

sdiv

fdiv

urem

srem

frem

Logical binary operations

shl

lshr

ashr

and

or

xor

inv

Vector operations

extractelement

insertelement

shufflevector

Aggregate operation

extractvalue

insertvalue

Memory access

malloc

arrayMalloc

alloca

arrayAlloca

free

load

store

getElementPtr

getElementPtr0

Conversions

trunc

zext

sext

ext

zadapt

sadapt

adapt

fptrunc

fpext

fptoui

fptosi

fptoint

uitofp

sitofp

inttofp

ptrtoint

inttoptr

bitcast

bitcastElements

Comparison

data CmpPredicate

data IntPredicate

data FPPredicate

class CmpOp a b

class CmpRet c

type CmpValueResult a b

cmp

pcmp

icmp

fcmp

select

Other

phi

addPhiInputs

call

callWithConv

callFromFunction

callWithConvFromFunction

data Call a

applyCall

runCall

Classes and types

type Terminate

class Ret a r

class CallArgs f g r

class AUnOp a

class ABinOp a b

class IsConst a

class FunctionArgs f

class AllocArg a

class GetElementPtr optr ixs

class IsIndexArg a

class GetValue agg ix

class GetField as i

Types classification

Type classifier

class IsType a

Special type classifiers

class Natural n

class Positive n

class IsArithmetic a

data ArithmeticType a

class IsInteger a

class IsIntegerOrPointer a

class IsFloating a

class IsPrimitive a

class IsFirstClass a

class IsSized a

sizeOf

class IsFunction a

Others

class IsScalarOrVector a

class StructFields as

type UnknownSize

Structs

type a :& as

(&)

Type tests

data TypeDesc

isFloating

isSigned

typeRef

unsafeTypeRef

typeName

intrinsicTypeName

typeDesc2

data VarArgs a

class CastVarArgs a b

Extra types

data IntN n

data WordN n

data FP128

data Array n a

data Vector n a

data Label

data Struct a

data PackedStruct a

type FixedList n

Values and constants

data Value a

data ConstValue a

valueOf

value

zero

allOnes

undef

createString

createStringNul

withString

withStringNul

constVector

constArray

constCyclicVector

constCyclicArray

constStruct

constPackedStruct

toVector

fromVector

vector

cyclicVector

Code generation

data CodeGenFunction r a

data CodeGenModule a

Functions

type Function a

newFunction

newNamedFunction

defineFunction

createFunction

createNamedFunction

setFuncCallConv

type TFunction a

liftCodeGenModule

getParams

Global variable creation

type Global a

newGlobal

newNamedGlobal

defineGlobal

createGlobal

createNamedGlobal

externFunction

staticFunction

staticNamedFunction

externGlobal

staticGlobal

data GlobalMappings

getGlobalMappings

type TGlobal a

Globals

data Linkage

Basic blocks

data BasicBlock

newBasicBlock

newNamedBasicBlock

defineBasicBlock

createBasicBlock

getCurrentBasicBlock

getBasicBlocks

fromLabel

toLabel

getInstructions

getOperands

hasUsers

getUsers

getUses

getUser

isChildOf

getDep

Misc

addAttributes

data Attribute

castVarArgs

Debugging

dumpValue

dumpType

getValueName

annotateValueList