llvm-hs-pure-8.0.0: Pure Haskell LLVM functionality (no FFI).

Safe HaskellNone
LanguageHaskell2010

LLVM.IRBuilder.Instruction

Synopsis

Documentation

gep :: (MonadIRBuilder m, MonadModuleBuilder m) => Operand -> [Operand] -> m Operand Source #

Emit the getelementptr instruction. See reference.

trunc :: MonadIRBuilder m => Operand -> Type -> m Operand Source #

Emit the trunc ... to instruction. See reference.

fptrunc :: MonadIRBuilder m => Operand -> Type -> m Operand Source #

Emit the fptrunc ... to instruction. See reference.

zext :: MonadIRBuilder m => Operand -> Type -> m Operand Source #

Emit the zext ... to instruction. See reference.

sext :: MonadIRBuilder m => Operand -> Type -> m Operand Source #

Emit the sext ... to instruction. See reference.

fptoui :: MonadIRBuilder m => Operand -> Type -> m Operand Source #

Emit the fptoui ... to instruction. See reference.

fptosi :: MonadIRBuilder m => Operand -> Type -> m Operand Source #

Emit the fptosi ... to instruction. See reference.

fpext :: MonadIRBuilder m => Operand -> Type -> m Operand Source #

Emit the fpext ... to instruction. See reference.

uitofp :: MonadIRBuilder m => Operand -> Type -> m Operand Source #

Emit the uitofp ... to instruction. See reference.

sitofp :: MonadIRBuilder m => Operand -> Type -> m Operand Source #

Emit the sitofp ... to instruction. See reference.

ptrtoint :: MonadIRBuilder m => Operand -> Type -> m Operand Source #

Emit the ptrtoint ... to instruction. See reference.

inttoptr :: MonadIRBuilder m => Operand -> Type -> m Operand Source #

Emit the inttoptr ... to instruction. See reference.

bitcast :: MonadIRBuilder m => Operand -> Type -> m Operand Source #

Emit the bitcast ... to instruction. See reference.

br :: MonadIRBuilder m => Name -> m () Source #

Unconditional branch. Emit a br label dest instruction See reference.

retVoid :: MonadIRBuilder m => m () Source #

Emit a ret void instruction. See reference.

condBr :: MonadIRBuilder m => Operand -> Name -> Name -> m () Source #

Conditional branch (see br for unconditional instructions). See reference.

globalStringPtr Source #

Arguments

:: (MonadModuleBuilder m, MonadIRBuilder m) 
=> String

The string to generate

-> Name

Variable name of the pointer

-> m Operand 

Creates a series of instructions to generate a pointer to a string constant. Useful for making format strings to pass to printf, for example