llvm-hs-7.0.1: General purpose LLVM bindings

Safe HaskellNone
LanguageHaskell2010

LLVM.Internal.Target

Contents

Synopsis

Documentation

lookupTarget Source #

Arguments

:: Maybe ShortByteString

arch

-> ShortByteString

"triple" - e.g. x86_64-unknown-linux-gnu

-> IO (Target, ShortByteString) 

Find a Target given an architecture and/or a "triple". | http://llvm.org/doxygen/structllvm_1_1TargetRegistry.html#a3105b45e546c9cc3cf78d0f2ec18ad89 | Be sure to run either initializeAllTargets or initializeNativeTarget before expecting this to succeed, depending on what target(s) you want to use. May throw LookupTargetException if no target is found.

withTargetOptions :: (TargetOptions -> IO a) -> IO a Source #

bracket creation and destruction of a TargetOptions object

pokeTargetOptions :: Options -> TargetOptions -> IO () Source #

set all target options

peekTargetOptions :: TargetOptions -> IO Options Source #

get all target options

withTargetMachine Source #

Arguments

:: Target 
-> ShortByteString

triple

-> ByteString

cpu

-> Map CPUFeature Bool

features

-> TargetOptions 
-> Model 
-> Model 
-> Level 
-> (TargetMachine -> IO a) 
-> IO a 

bracket creation and destruction of a TargetMachine

initializeNativeTarget :: IO () Source #

Initialize the native target. This function is called automatically in these Haskell bindings when creating an ExecutionEngine which will require it, and so it should not be necessary to call it separately.

getTargetMachineTriple :: TargetMachine -> IO ShortByteString Source #

the target triple corresponding to the target machine

getDefaultTargetTriple :: IO ShortByteString Source #

the default target triple that LLVM has been configured to produce code for

getProcessTargetTriple :: IO ShortByteString Source #

a target triple suitable for loading code into the current process

getHostCPUName :: IO ByteString Source #

the LLVM name for the host CPU

getHostCPUFeatures :: IO (Map CPUFeature Bool) Source #

a space-separated list of LLVM feature names supported by the host CPU

initializeAllTargets :: IO () Source #

Initialize all targets so they can be found by lookupTarget

withHostTargetMachine :: (TargetMachine -> IO a) -> IO a Source #

Bracket creation and destruction of a TargetMachine configured for the host

setLibraryFunctionAvailableWithName Source #

Arguments

:: TargetLibraryInfo 
-> LibraryFunction 
-> ShortByteString

The function name to be emitted

-> IO () 

Set the name of the function on the target platform that corresponds to funcName

withTargetLibraryInfo Source #

Arguments

:: ShortByteString

triple

-> (TargetLibraryInfo -> IO a) 
-> IO a 

look up information about the library functions available on a given platform

Orphan instances

Monad m => DecodeM m Model RelocModel Source # 
Instance details

Monad m => DecodeM m Model CodeModel Source # 
Instance details

Methods

decodeM :: CodeModel -> m Model Source #

Monad m => DecodeM m Level CodeGenOptLevel Source # 
Instance details

Monad m => DecodeM m FloatABI FloatABIType Source # 
Instance details

Monad m => DecodeM m FloatingPointOperationFusionMode FPOpFusionMode Source # 
Instance details

Monad m => DecodeM m DebugCompressionType DebugCompressionType Source # 
Instance details

Monad m => DecodeM m ThreadModel ThreadModel Source # 
Instance details

Monad m => DecodeM m EABIVersion EABI Source # 
Instance details

Monad m => DecodeM m DebuggerKind DebuggerKind Source # 
Instance details

Monad m => DecodeM m FloatingPointDenormalMode FPDenormalMode Source # 
Instance details

Monad m => DecodeM m ExceptionHandling ExceptionHandling Source # 
Instance details

Monad m => EncodeM m Model RelocModel Source # 
Instance details

Monad m => EncodeM m Model CodeModel Source # 
Instance details

Methods

encodeM :: Model -> m CodeModel Source #

Monad m => EncodeM m Level CodeGenOptLevel Source # 
Instance details

Monad m => EncodeM m FloatABI FloatABIType Source # 
Instance details

Monad m => EncodeM m FloatingPointOperationFusionMode FPOpFusionMode Source # 
Instance details

Monad m => EncodeM m DebugCompressionType DebugCompressionType Source # 
Instance details

Monad m => EncodeM m ThreadModel ThreadModel Source # 
Instance details

Monad m => EncodeM m EABIVersion EABI Source # 
Instance details

Monad m => EncodeM m DebuggerKind DebuggerKind Source # 
Instance details

Monad m => EncodeM m FloatingPointDenormalMode FPDenormalMode Source # 
Instance details

Monad m => EncodeM m ExceptionHandling ExceptionHandling Source # 
Instance details