Top Inners Fields Constructors Methods
org.lwjgl.llvm

public Class LLVMTargetMachine

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
LLVMTargetMachine.Functions

Contains the function pointers loaded from LLVMCore.getLibrary().

Field Summary

Modifier and TypeField and Description
public static final int
LLVMAssemblyFile

LLVMCodeGenFileType Enum values:

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
LLVMObjectFile

LLVMCodeGenFileType Enum values:

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
LLVMAddAnalysisPasses(long T, long PM)

Adds the target-specific analysis passes to the pass manager.

public static long
LLVMCreateTargetDataLayout(long T)

Create a DataLayout based on the target machine.

public static long
LLVMCreateTargetMachine(long T, ByteBuffer Triple, ByteBuffer CPU, ByteBuffer Features, int Level, int Reloc, int CodeModel)

Creates a new llvm::TargetMachine.

public static long
LLVMCreateTargetMachine(long T, CharSequence Triple, CharSequence CPU, CharSequence Features, int Level, int Reloc, int CodeModel)

Creates a new llvm::TargetMachine.

public static void
LLVMDisposeTargetMachine(long T)

Dispose the LLVMTargetMachineRef instance generated by CreateTargetMachine.

public static String
LLVMGetDefaultTargetTriple()

Get a triple for the host machine as a string.

public static long
LLVMGetFirstTarget()

Returns the first llvm::Target in the registered targets list.

public static String
LLVMGetHostCPUFeatures()

Get the host CPU's features as a string.

public static String
LLVMGetHostCPUName()

Get the host CPU as a string.

public static long
LLVMGetNextTarget(long T)

Returns the next llvm::Target given a previous one (or null if there's none)

public static String
LLVMGetTargetDescription(long T)

Returns the description of a target.

public static long
LLVMGetTargetFromName(ByteBuffer Name)

Finds the target corresponding to the given name and stores it in T.

public static long
LLVMGetTargetFromName(CharSequence Name)

Finds the target corresponding to the given name and stores it in T.

public static boolean
LLVMGetTargetFromTriple(ByteBuffer Triple, PointerBuffer T, PointerBuffer ErrorMessage)

Finds the target corresponding to the given triple and stores it in T.

public static boolean
LLVMGetTargetFromTriple(CharSequence Triple, PointerBuffer T, PointerBuffer ErrorMessage)

Finds the target corresponding to the given triple and stores it in T.

public static String
LLVMGetTargetMachineCPU(long T)

Returns the cpu used creating this target machine.

public static String
LLVMGetTargetMachineFeatureString(long T)

Returns the feature string used creating this target machine.

public static long
LLVMGetTargetMachineTarget(long T)

Returns the Target used in a TargetMachine

public static String
LLVMGetTargetMachineTriple(long T)

Returns the triple used creating this target machine.

public static String
LLVMGetTargetName(long T)

Returns the name of a target.

public static String
LLVMNormalizeTargetTriple(ByteBuffer triple)

Normalize a target triple.

public static String
LLVMNormalizeTargetTriple(CharSequence triple)

Normalize a target triple.

public static void
LLVMSetTargetMachineAsmVerbosity(long T, boolean VerboseAsm)

Set the target machine's ASM verbosity.

public static boolean
LLVMTargetHasAsmBackend(long T)

Returns if the target as an ASM backend (required for emitting output)

public static boolean
LLVMTargetHasJIT(long T)

Returns if the target has a JIT

public static boolean
LLVMTargetHasTargetMachine(long T)

Returns if the target has a TargetMachine associated

public static boolean
LLVMTargetMachineEmitToFile(long T, long M, ByteBuffer Filename, int codegen, PointerBuffer ErrorMessage)

Emits an asm or object file for the given module to the filename.

public static boolean
LLVMTargetMachineEmitToFile(long T, long M, CharSequence Filename, int codegen, PointerBuffer ErrorMessage)

Emits an asm or object file for the given module to the filename.

public static boolean
LLVMTargetMachineEmitToMemoryBuffer(long T, long M, int codegen, PointerBuffer ErrorMessage, PointerBuffer OutMemBuf)

Compile the LLVM IR stored in M and store the result in OutMemBuf.

public static long
nLLVMCreateTargetMachine(long T, long Triple, long CPU, long Features, int Level, int Reloc, int CodeModel)

Unsafe version of: CreateTargetMachine

public static long
public static long
public static long
nLLVMGetHostCPUName()

Unsafe version of: GetHostCPUName

public static long
public static long
nLLVMGetTargetFromName(long Name)

Unsafe version of: GetTargetFromName

public static int
nLLVMGetTargetFromTriple(long Triple, long T, long ErrorMessage)

Unsafe version of: GetTargetFromTriple

public static long
public static long
public static long
public static long
nLLVMGetTargetName(long T)

Unsafe version of: GetTargetName

public static long
nLLVMNormalizeTargetTriple(long triple)

Unsafe version of: NormalizeTargetTriple

public static int
nLLVMTargetMachineEmitToFile(long T, long M, long Filename, int codegen, long ErrorMessage)

Unsafe version of: TargetMachineEmitToFile

public static int
nLLVMTargetMachineEmitToMemoryBuffer(long T, long M, int codegen, long ErrorMessage, long OutMemBuf)

Unsafe version of: TargetMachineEmitToMemoryBuffer

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LLVMAssemblyFileback to summary
public static final int LLVMAssemblyFile

LLVMCodeGenFileType

Enum values:
LLVMCodeGenLevelAggressiveback to summary
public static final int LLVMCodeGenLevelAggressive

LLVMCodeGenOptLevel

Enum values:
LLVMCodeGenLevelDefaultback to summary
public static final int LLVMCodeGenLevelDefault

LLVMCodeGenOptLevel

Enum values:
LLVMCodeGenLevelLessback to summary
public static final int LLVMCodeGenLevelLess

LLVMCodeGenOptLevel

Enum values:
LLVMCodeGenLevelNoneback to summary
public static final int LLVMCodeGenLevelNone

LLVMCodeGenOptLevel

Enum values:
LLVMCodeModelDefaultback to summary
public static final int LLVMCodeModelDefault

LLVMCodeModel

Enum values:
LLVMCodeModelJITDefaultback to summary
public static final int LLVMCodeModelJITDefault

LLVMCodeModel

Enum values:
LLVMCodeModelKernelback to summary
public static final int LLVMCodeModelKernel

LLVMCodeModel

Enum values:
LLVMCodeModelLargeback to summary
public static final int LLVMCodeModelLarge

LLVMCodeModel

Enum values:
LLVMCodeModelMediumback to summary
public static final int LLVMCodeModelMedium

LLVMCodeModel

Enum values:
LLVMCodeModelSmallback to summary
public static final int LLVMCodeModelSmall

LLVMCodeModel

Enum values:
LLVMCodeModelTinyback to summary
public static final int LLVMCodeModelTiny

LLVMCodeModel

Enum values:
LLVMObjectFileback to summary
public static final int LLVMObjectFile

LLVMCodeGenFileType

Enum values:
LLVMRelocDefaultback to summary
public static final int LLVMRelocDefault

LLVMRelocMode

Enum values:
LLVMRelocDynamicNoPicback to summary
public static final int LLVMRelocDynamicNoPic

LLVMRelocMode

Enum values:
LLVMRelocPICback to summary
public static final int LLVMRelocPIC

LLVMRelocMode

Enum values:
LLVMRelocROPIback to summary
public static final int LLVMRelocROPI

LLVMRelocMode

Enum values:
LLVMRelocROPI_RWPIback to summary
public static final int LLVMRelocROPI_RWPI

LLVMRelocMode

Enum values:
LLVMRelocRWPIback to summary
public static final int LLVMRelocRWPI

LLVMRelocMode

Enum values:
LLVMRelocStaticback to summary
public static final int LLVMRelocStatic

LLVMRelocMode

Enum values:

Constructor Detail

LLVMTargetMachineback to summary
protected LLVMTargetMachine()

Method Detail

LLVMAddAnalysisPassesback to summary
public static void LLVMAddAnalysisPasses(long T, long PM)

Adds the target-specific analysis passes to the pass manager.

LLVMCreateTargetDataLayoutback to summary
public static long LLVMCreateTargetDataLayout(long T)

Create a DataLayout based on the target machine.

Annotations
@NativeType:LLVMTargetDataRef
LLVMCreateTargetMachineback to summary
public static long LLVMCreateTargetMachine(long T, ByteBuffer Triple, ByteBuffer CPU, ByteBuffer Features, int Level, int Reloc, int CodeModel)

Creates a new llvm::TargetMachine. See llvm::Target::createTargetMachine

Annotations
@NativeType:LLVMTargetMachineRef
LLVMCreateTargetMachineback to summary
public static long LLVMCreateTargetMachine(long T, CharSequence Triple, CharSequence CPU, CharSequence Features, int Level, int Reloc, int CodeModel)

Creates a new llvm::TargetMachine. See llvm::Target::createTargetMachine

Annotations
@NativeType:LLVMTargetMachineRef
LLVMDisposeTargetMachineback to summary
public static void LLVMDisposeTargetMachine(long T)

Dispose the LLVMTargetMachineRef instance generated by CreateTargetMachine.

LLVMGetDefaultTargetTripleback to summary
public static String LLVMGetDefaultTargetTriple()

Get a triple for the host machine as a string. The result needs to be disposed with DisposeMessage.

Annotations
@Nullable
@NativeType:char *
LLVMGetFirstTargetback to summary
public static long LLVMGetFirstTarget()

Returns the first llvm::Target in the registered targets list.

Annotations
@NativeType:LLVMTargetRef
LLVMGetHostCPUFeaturesback to summary
public static String LLVMGetHostCPUFeatures()

Get the host CPU's features as a string. The result needs to be disposed with DisposeMessage.

Annotations
@Nullable
@NativeType:char *
LLVMGetHostCPUNameback to summary
public static String LLVMGetHostCPUName()

Get the host CPU as a string. The result needs to be disposed with DisposeMessage.

Annotations
@Nullable
@NativeType:char *
LLVMGetNextTargetback to summary
public static long LLVMGetNextTarget(long T)

Returns the next llvm::Target given a previous one (or null if there's none)

Annotations
@NativeType:LLVMTargetRef
LLVMGetTargetDescriptionback to summary
public static String LLVMGetTargetDescription(long T)

Returns the description of a target. See llvm::Target::getDescription

Annotations
@Nullable
@NativeType:char const *
LLVMGetTargetFromNameback to summary
public static long LLVMGetTargetFromName(ByteBuffer Name)

Finds the target corresponding to the given name and stores it in T. Returns 0 on success.

Annotations
@NativeType:LLVMTargetRef
LLVMGetTargetFromNameback to summary
public static long LLVMGetTargetFromName(CharSequence Name)

Finds the target corresponding to the given name and stores it in T. Returns 0 on success.

Annotations
@NativeType:LLVMTargetRef
LLVMGetTargetFromTripleback to summary
public static boolean LLVMGetTargetFromTriple(ByteBuffer Triple, PointerBuffer T, PointerBuffer ErrorMessage)

Finds the target corresponding to the given triple and stores it in T. Returns 0 on success. Optionally returns any error in ErrorMessage. Use DisposeMessage to dispose the message.

Annotations
@NativeType:LLVMBool
LLVMGetTargetFromTripleback to summary
public static boolean LLVMGetTargetFromTriple(CharSequence Triple, PointerBuffer T, PointerBuffer ErrorMessage)

Finds the target corresponding to the given triple and stores it in T. Returns 0 on success. Optionally returns any error in ErrorMessage. Use DisposeMessage to dispose the message.

Annotations
@NativeType:LLVMBool
LLVMGetTargetMachineCPUback to summary
public static String LLVMGetTargetMachineCPU(long T)

Returns the cpu used creating this target machine. See llvm::TargetMachine::getCPU. The result needs to be disposed with DisposeMessage.

Annotations
@Nullable
@NativeType:char *
LLVMGetTargetMachineFeatureStringback to summary
public static String LLVMGetTargetMachineFeatureString(long T)

Returns the feature string used creating this target machine. See llvm::TargetMachine::getFeatureString. The result needs to be disposed with DisposeMessage.

Annotations
@Nullable
@NativeType:char *
LLVMGetTargetMachineTargetback to summary
public static long LLVMGetTargetMachineTarget(long T)

Returns the Target used in a TargetMachine

Annotations
@NativeType:LLVMTargetRef
LLVMGetTargetMachineTripleback to summary
public static String LLVMGetTargetMachineTriple(long T)

Returns the triple used creating this target machine. See llvm::TargetMachine::getTriple. The result needs to be disposed with DisposeMessage.

Annotations
@Nullable
@NativeType:char *
LLVMGetTargetNameback to summary
public static String LLVMGetTargetName(long T)

Returns the name of a target. See llvm::Target::getName

Annotations
@Nullable
@NativeType:char const *
LLVMNormalizeTargetTripleback to summary
public static String LLVMNormalizeTargetTriple(ByteBuffer triple)

Normalize a target triple. The result needs to be disposed with DisposeMessage.

Annotations
@Nullable
@NativeType:char *
LLVMNormalizeTargetTripleback to summary
public static String LLVMNormalizeTargetTriple(CharSequence triple)

Normalize a target triple. The result needs to be disposed with DisposeMessage.

Annotations
@Nullable
@NativeType:char *
LLVMSetTargetMachineAsmVerbosityback to summary
public static void LLVMSetTargetMachineAsmVerbosity(long T, boolean VerboseAsm)

Set the target machine's ASM verbosity.

LLVMTargetHasAsmBackendback to summary
public static boolean LLVMTargetHasAsmBackend(long T)

Returns if the target as an ASM backend (required for emitting output)

Annotations
@NativeType:LLVMBool
LLVMTargetHasJITback to summary
public static boolean LLVMTargetHasJIT(long T)

Returns if the target has a JIT

Annotations
@NativeType:LLVMBool
LLVMTargetHasTargetMachineback to summary
public static boolean LLVMTargetHasTargetMachine(long T)

Returns if the target has a TargetMachine associated

Annotations
@NativeType:LLVMBool
LLVMTargetMachineEmitToFileback to summary
public static boolean LLVMTargetMachineEmitToFile(long T, long M, ByteBuffer Filename, int codegen, PointerBuffer ErrorMessage)

Emits an asm or object file for the given module to the filename. This wraps several c++ only classes (among them a file stream). Returns any error in ErrorMessage. Use DisposeMessage to dispose the message.

Annotations
@NativeType:LLVMBool
LLVMTargetMachineEmitToFileback to summary
public static boolean LLVMTargetMachineEmitToFile(long T, long M, CharSequence Filename, int codegen, PointerBuffer ErrorMessage)

Emits an asm or object file for the given module to the filename. This wraps several c++ only classes (among them a file stream). Returns any error in ErrorMessage. Use DisposeMessage to dispose the message.

Annotations
@NativeType:LLVMBool
LLVMTargetMachineEmitToMemoryBufferback to summary
public static boolean LLVMTargetMachineEmitToMemoryBuffer(long T, long M, int codegen, PointerBuffer ErrorMessage, PointerBuffer OutMemBuf)

Compile the LLVM IR stored in M and store the result in OutMemBuf.

Annotations
@NativeType:LLVMBool
nLLVMCreateTargetMachineback to summary
public static long nLLVMCreateTargetMachine(long T, long Triple, long CPU, long Features, int Level, int Reloc, int CodeModel)

Unsafe version of: CreateTargetMachine

nLLVMGetDefaultTargetTripleback to summary
public static long nLLVMGetDefaultTargetTriple()

Unsafe version of: GetDefaultTargetTriple

nLLVMGetHostCPUFeaturesback to summary
public static long nLLVMGetHostCPUFeatures()

Unsafe version of: GetHostCPUFeatures

nLLVMGetHostCPUNameback to summary
public static long nLLVMGetHostCPUName()

Unsafe version of: GetHostCPUName

nLLVMGetTargetDescriptionback to summary
public static long nLLVMGetTargetDescription(long T)

Unsafe version of: GetTargetDescription

nLLVMGetTargetFromNameback to summary
public static long nLLVMGetTargetFromName(long Name)

Unsafe version of: GetTargetFromName

nLLVMGetTargetFromTripleback to summary
public static int nLLVMGetTargetFromTriple(long Triple, long T, long ErrorMessage)

Unsafe version of: GetTargetFromTriple

nLLVMGetTargetMachineCPUback to summary
public static long nLLVMGetTargetMachineCPU(long T)

Unsafe version of: GetTargetMachineCPU

nLLVMGetTargetMachineFeatureStringback to summary
public static long nLLVMGetTargetMachineFeatureString(long T)

Unsafe version of: GetTargetMachineFeatureString

nLLVMGetTargetMachineTripleback to summary
public static long nLLVMGetTargetMachineTriple(long T)

Unsafe version of: GetTargetMachineTriple

nLLVMGetTargetNameback to summary
public static long nLLVMGetTargetName(long T)

Unsafe version of: GetTargetName

nLLVMNormalizeTargetTripleback to summary
public static long nLLVMNormalizeTargetTriple(long triple)

Unsafe version of: NormalizeTargetTriple

nLLVMTargetMachineEmitToFileback to summary
public static int nLLVMTargetMachineEmitToFile(long T, long M, long Filename, int codegen, long ErrorMessage)

Unsafe version of: TargetMachineEmitToFile

nLLVMTargetMachineEmitToMemoryBufferback to summary
public static int nLLVMTargetMachineEmitToMemoryBuffer(long T, long M, int codegen, long ErrorMessage, long OutMemBuf)

Unsafe version of: TargetMachineEmitToMemoryBuffer

org.lwjgl.llvm back to summary

public final Class LLVMTargetMachine.Functions

extends Object
Class Inheritance

Contains the function pointers loaded from LLVMCore.getLibrary().

Field Summary

Modifier and TypeField and Description
public static final long
AddAnalysisPasses

Function address.

public static final long
CreateTargetDataLayout

Function address.

public static final long
CreateTargetMachine

Function address.

public static final long
DisposeTargetMachine

Function address.

public static final long
GetDefaultTargetTriple

Function address.

public static final long
GetFirstTarget

Function address.

public static final long
GetHostCPUFeatures

Function address.

public static final long
GetHostCPUName

Function address.

public static final long
GetNextTarget

Function address.

public static final long
GetTargetDescription

Function address.

public static final long
GetTargetFromName

Function address.

public static final long
GetTargetFromTriple

Function address.

public static final long
GetTargetMachineCPU

Function address.

public static final long
public static final long
GetTargetMachineTarget

Function address.

public static final long
GetTargetMachineTriple

Function address.

public static final long
GetTargetName

Function address.

public static final long
NormalizeTargetTriple

Function address.

public static final long
public static final long
TargetHasAsmBackend

Function address.

public static final long
TargetHasJIT

Function address.

public static final long
TargetHasTargetMachine

Function address.

public static final long
TargetMachineEmitToFile

Function address.

public static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AddAnalysisPassesback to summary
public static final long AddAnalysisPasses

Function address.

CreateTargetDataLayoutback to summary
public static final long CreateTargetDataLayout

Function address.

CreateTargetMachineback to summary
public static final long CreateTargetMachine

Function address.

DisposeTargetMachineback to summary
public static final long DisposeTargetMachine

Function address.

GetDefaultTargetTripleback to summary
public static final long GetDefaultTargetTriple

Function address.

GetFirstTargetback to summary
public static final long GetFirstTarget

Function address.

GetHostCPUFeaturesback to summary
public static final long GetHostCPUFeatures

Function address.

GetHostCPUNameback to summary
public static final long GetHostCPUName

Function address.

GetNextTargetback to summary
public static final long GetNextTarget

Function address.

GetTargetDescriptionback to summary
public static final long GetTargetDescription

Function address.

GetTargetFromNameback to summary
public static final long GetTargetFromName

Function address.

GetTargetFromTripleback to summary
public static final long GetTargetFromTriple

Function address.

GetTargetMachineCPUback to summary
public static final long GetTargetMachineCPU

Function address.

GetTargetMachineFeatureStringback to summary
public static final long GetTargetMachineFeatureString

Function address.

GetTargetMachineTargetback to summary
public static final long GetTargetMachineTarget

Function address.

GetTargetMachineTripleback to summary
public static final long GetTargetMachineTriple

Function address.

GetTargetNameback to summary
public static final long GetTargetName

Function address.

NormalizeTargetTripleback to summary
public static final long NormalizeTargetTriple

Function address.

SetTargetMachineAsmVerbosityback to summary
public static final long SetTargetMachineAsmVerbosity

Function address.

TargetHasAsmBackendback to summary
public static final long TargetHasAsmBackend

Function address.

TargetHasJITback to summary
public static final long TargetHasJIT

Function address.

TargetHasTargetMachineback to summary
public static final long TargetHasTargetMachine

Function address.

TargetMachineEmitToFileback to summary
public static final long TargetMachineEmitToFile

Function address.

TargetMachineEmitToMemoryBufferback to summary
public static final long TargetMachineEmitToMemoryBuffer

Function address.

Constructor Detail

Functionsback to summary
private Functions()