Top Inners Fields Constructors Methods
org.lwjgl.llvm

public Class LLVMTarget

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
LLVMTarget.Functions

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

Field Summary

Modifier and TypeField and Description
public static final int
LLVMBigEndian

enum LLVMByteOrdering Enum values:

public static final int
LLVMLittleEndian

enum LLVMByteOrdering Enum values:

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
LLVMABIAlignmentOfType(long TD, long Ty)

Computes the ABI alignment of a type in bytes for a target.

public static long
LLVMABISizeOfType(long TD, long Ty)

Computes the ABI size of a type in bytes for a target.

public static void
LLVMAddTargetLibraryInfo(long TLI, long PM)

Adds target library information to a pass manager.

public static int
LLVMByteOrder(long TD)

Returns the byte order of a target, either BigEndian or LittleEndian.

public static int
LLVMCallFrameAlignmentOfType(long TD, long Ty)

Computes the call frame alignment of a type in bytes for a target.

public static String
LLVMCopyStringRepOfTargetData(long TD)

Converts target data to a target layout string.

public static long
LLVMCreateTargetData(ByteBuffer StringRep)

Creates target data from a target layout string.

public static long
LLVMCreateTargetData(CharSequence StringRep)

Creates target data from a target layout string.

public static void
LLVMDisposeTargetData(long TD)

Deallocates a TargetData.

public static int
LLVMElementAtOffset(long TD, long StructTy, long Offset)

Computes the structure element that contains the byte offset for a target.

public static long
LLVMGetModuleDataLayout(long M)

Obtain the data layout for a module.

public static long
LLVMIntPtrType(long TD)

Returns the integer type that is the same size as a pointer on a target.

public static long
LLVMIntPtrTypeForAS(long TD, int AS)

Returns the integer type that is the same size as a pointer on a target.

public static long
LLVMIntPtrTypeForASInContext(long C, long TD, int AS)

Returns the integer type that is the same size as a pointer on a target.

public static long
LLVMIntPtrTypeInContext(long C, long TD)

Returns the integer type that is the same size as a pointer on a target.

public static long
LLVMOffsetOfElement(long TD, long StructTy, int Element)

Computes the byte offset of the indexed struct element for a target.

public static int
LLVMPointerSize(long TD)

Returns the pointer size in bytes for a target.

public static int
LLVMPointerSizeForAS(long TD, int AS)

Returns the pointer size in bytes for a target for a specified address space.

public static int
LLVMPreferredAlignmentOfGlobal(long TD, long GlobalVar)

Computes the preferred alignment of a global variable in bytes for a target.

public static int
LLVMPreferredAlignmentOfType(long TD, long Ty)

Computes the preferred alignment of a type in bytes for a target.

public static void
LLVMSetModuleDataLayout(long M, long DL)

Set the data layout for a module.

public static long
LLVMSizeOfTypeInBits(long TD, long Ty)

Computes the size of a type in bytes for a target.

public static long
LLVMStoreSizeOfType(long TD, long Ty)

Computes the storage size of a type in bytes for a target.

public static long
public static long
nLLVMCreateTargetData(long StringRep)

Unsafe version of: CreateTargetData

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LLVMBigEndianback to summary
public static final int LLVMBigEndian

enum LLVMByteOrdering

Enum values:
LLVMLittleEndianback to summary
public static final int LLVMLittleEndian

enum LLVMByteOrdering

Enum values:

Constructor Detail

LLVMTargetback to summary
protected LLVMTarget()

Method Detail

LLVMABIAlignmentOfTypeback to summary
public static int LLVMABIAlignmentOfType(long TD, long Ty)

Computes the ABI alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.

Annotations
@NativeType:unsigned int
LLVMABISizeOfTypeback to summary
public static long LLVMABISizeOfType(long TD, long Ty)

Computes the ABI size of a type in bytes for a target. See the method llvm::DataLayout::getTypeAllocSize.

Annotations
@NativeType:unsigned long long
LLVMAddTargetLibraryInfoback to summary
public static void LLVMAddTargetLibraryInfo(long TLI, long PM)

Adds target library information to a pass manager. This does not take ownership of the target library info. See the method llvm::PassManagerBase::add.

LLVMByteOrderback to summary
public static int LLVMByteOrder(long TD)

Returns the byte order of a target, either BigEndian or LittleEndian. See the method llvm::DataLayout::isLittleEndian.

Annotations
@NativeType:enum LLVMByteOrdering
LLVMCallFrameAlignmentOfTypeback to summary
public static int LLVMCallFrameAlignmentOfType(long TD, long Ty)

Computes the call frame alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.

Annotations
@NativeType:unsigned int
LLVMCopyStringRepOfTargetDataback to summary
public static String LLVMCopyStringRepOfTargetData(long TD)

Converts target data to a target layout string. The string must be disposed with DisposeMessage. See the constructor llvm::DataLayout::DataLayout.

Annotations
@Nullable
@NativeType:char *
LLVMCreateTargetDataback to summary
public static long LLVMCreateTargetData(ByteBuffer StringRep)

Creates target data from a target layout string. See the constructor llvm::DataLayout::DataLayout.

Annotations
@NativeType:LLVMTargetDataRef
LLVMCreateTargetDataback to summary
public static long LLVMCreateTargetData(CharSequence StringRep)

Creates target data from a target layout string. See the constructor llvm::DataLayout::DataLayout.

Annotations
@NativeType:LLVMTargetDataRef
LLVMDisposeTargetDataback to summary
public static void LLVMDisposeTargetData(long TD)

Deallocates a TargetData. See the destructor llvm::DataLayout::~DataLayout.

LLVMElementAtOffsetback to summary
public static int LLVMElementAtOffset(long TD, long StructTy, long Offset)

Computes the structure element that contains the byte offset for a target. See the method llvm::StructLayout::getElementContainingOffset.

Annotations
@NativeType:unsigned int
LLVMGetModuleDataLayoutback to summary
public static long LLVMGetModuleDataLayout(long M)

Obtain the data layout for a module.

Annotations
@NativeType:LLVMTargetDataRef
LLVMIntPtrTypeback to summary
public static long LLVMIntPtrType(long TD)

Returns the integer type that is the same size as a pointer on a target. See the method llvm::DataLayout::getIntPtrType.

Annotations
@NativeType:LLVMTypeRef
LLVMIntPtrTypeForASback to summary
public static long LLVMIntPtrTypeForAS(long TD, int AS)

Returns the integer type that is the same size as a pointer on a target. This version allows the address space to be specified. See the method llvm::DataLayout::getIntPtrType.

Annotations
@NativeType:LLVMTypeRef
LLVMIntPtrTypeForASInContextback to summary
public static long LLVMIntPtrTypeForASInContext(long C, long TD, int AS)

Returns the integer type that is the same size as a pointer on a target. This version allows the address space to be specified. See the method llvm::DataLayout::getIntPtrType.

Annotations
@NativeType:LLVMTypeRef
LLVMIntPtrTypeInContextback to summary
public static long LLVMIntPtrTypeInContext(long C, long TD)

Returns the integer type that is the same size as a pointer on a target. See the method llvm::DataLayout::getIntPtrType.

Annotations
@NativeType:LLVMTypeRef
LLVMOffsetOfElementback to summary
public static long LLVMOffsetOfElement(long TD, long StructTy, int Element)

Computes the byte offset of the indexed struct element for a target. See the method llvm::StructLayout::getElementContainingOffset.

Annotations
@NativeType:unsigned long long
LLVMPointerSizeback to summary
public static int LLVMPointerSize(long TD)

Returns the pointer size in bytes for a target. See the method llvm::DataLayout::getPointerSize.

Annotations
@NativeType:unsigned int
LLVMPointerSizeForASback to summary
public static int LLVMPointerSizeForAS(long TD, int AS)

Returns the pointer size in bytes for a target for a specified address space. See the method llvm::DataLayout::getPointerSize.

Annotations
@NativeType:unsigned int
LLVMPreferredAlignmentOfGlobalback to summary
public static int LLVMPreferredAlignmentOfGlobal(long TD, long GlobalVar)

Computes the preferred alignment of a global variable in bytes for a target. See the method llvm::DataLayout::getPreferredAlignment.

Annotations
@NativeType:unsigned int
LLVMPreferredAlignmentOfTypeback to summary
public static int LLVMPreferredAlignmentOfType(long TD, long Ty)

Computes the preferred alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.

Annotations
@NativeType:unsigned int
LLVMSetModuleDataLayoutback to summary
public static void LLVMSetModuleDataLayout(long M, long DL)

Set the data layout for a module.

LLVMSizeOfTypeInBitsback to summary
public static long LLVMSizeOfTypeInBits(long TD, long Ty)

Computes the size of a type in bytes for a target. See the method llvm::DataLayout::getTypeSizeInBits.

Annotations
@NativeType:unsigned long long
LLVMStoreSizeOfTypeback to summary
public static long LLVMStoreSizeOfType(long TD, long Ty)

Computes the storage size of a type in bytes for a target. See the method llvm::DataLayout::getTypeStoreSize.

Annotations
@NativeType:unsigned long long
nLLVMCopyStringRepOfTargetDataback to summary
public static long nLLVMCopyStringRepOfTargetData(long TD)

Unsafe version of: CopyStringRepOfTargetData

nLLVMCreateTargetDataback to summary
public static long nLLVMCreateTargetData(long StringRep)

Unsafe version of: CreateTargetData

org.lwjgl.llvm back to summary

public final Class LLVMTarget.Functions

extends Object
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
public static final long
ABIAlignmentOfType

Function address.

public static final long
ABISizeOfType

Function address.

public static final long
AddTargetLibraryInfo

Function address.

public static final long
ByteOrder

Function address.

public static final long
CallFrameAlignmentOfType

Function address.

public static final long
CopyStringRepOfTargetData

Function address.

public static final long
CreateTargetData

Function address.

public static final long
DisposeTargetData

Function address.

public static final long
ElementAtOffset

Function address.

public static final long
GetModuleDataLayout

Function address.

public static final long
IntPtrType

Function address.

public static final long
IntPtrTypeForAS

Function address.

public static final long
IntPtrTypeForASInContext

Function address.

public static final long
IntPtrTypeInContext

Function address.

public static final long
OffsetOfElement

Function address.

public static final long
PointerSize

Function address.

public static final long
PointerSizeForAS

Function address.

public static final long
PreferredAlignmentOfGlobal

Function address.

public static final long
PreferredAlignmentOfType

Function address.

public static final long
SetModuleDataLayout

Function address.

public static final long
SizeOfTypeInBits

Function address.

public static final long
StoreSizeOfType

Function address.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ABIAlignmentOfTypeback to summary
public static final long ABIAlignmentOfType

Function address.

ABISizeOfTypeback to summary
public static final long ABISizeOfType

Function address.

AddTargetLibraryInfoback to summary
public static final long AddTargetLibraryInfo

Function address.

ByteOrderback to summary
public static final long ByteOrder

Function address.

CallFrameAlignmentOfTypeback to summary
public static final long CallFrameAlignmentOfType

Function address.

CopyStringRepOfTargetDataback to summary
public static final long CopyStringRepOfTargetData

Function address.

CreateTargetDataback to summary
public static final long CreateTargetData

Function address.

DisposeTargetDataback to summary
public static final long DisposeTargetData

Function address.

ElementAtOffsetback to summary
public static final long ElementAtOffset

Function address.

GetModuleDataLayoutback to summary
public static final long GetModuleDataLayout

Function address.

IntPtrTypeback to summary
public static final long IntPtrType

Function address.

IntPtrTypeForASback to summary
public static final long IntPtrTypeForAS

Function address.

IntPtrTypeForASInContextback to summary
public static final long IntPtrTypeForASInContext

Function address.

IntPtrTypeInContextback to summary
public static final long IntPtrTypeInContext

Function address.

OffsetOfElementback to summary
public static final long OffsetOfElement

Function address.

PointerSizeback to summary
public static final long PointerSize

Function address.

PointerSizeForASback to summary
public static final long PointerSizeForAS

Function address.

PreferredAlignmentOfGlobalback to summary
public static final long PreferredAlignmentOfGlobal

Function address.

PreferredAlignmentOfTypeback to summary
public static final long PreferredAlignmentOfType

Function address.

SetModuleDataLayoutback to summary
public static final long SetModuleDataLayout

Function address.

SizeOfTypeInBitsback to summary
public static final long SizeOfTypeInBits

Function address.

StoreSizeOfTypeback to summary
public static final long StoreSizeOfType

Function address.

Constructor Detail

Functionsback to summary
private Functions()