llvm.c.target

Undocumented in source.

Public Imports

llvm.c.types
public import llvm.c.types;
Undocumented in source.

Members

Aliases

LLVMTargetDataRef
alias LLVMTargetDataRef = __LLVMOpaqueTargetData*
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
LLVMTargetLibraryInfoRef
alias LLVMTargetLibraryInfoRef = __LLVMOpaqueTargetLibraryInfotData*
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Enums

LLVMByteOrdering
enum LLVMByteOrdering

@defgroup LLVMCTarget Target information @ingroup LLVMC

Functions

LLVMABIAlignmentOfType
uint LLVMABIAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty)

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

LLVMABISizeOfType
ulong LLVMABISizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty)

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

LLVMAddTargetLibraryInfo
void LLVMAddTargetLibraryInfo(LLVMTargetLibraryInfoRef TLI, LLVMPassManagerRef 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.

LLVMByteOrder
LLVMByteOrdering LLVMByteOrder(LLVMTargetDataRef TD)

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

LLVMCallFrameAlignmentOfType
uint LLVMCallFrameAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty)

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

LLVMCopyStringRepOfTargetData
char* LLVMCopyStringRepOfTargetData(LLVMTargetDataRef TD)

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

LLVMCreateTargetData
LLVMTargetDataRef LLVMCreateTargetData(const(char)* StringRep)

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

LLVMDisposeTargetData
void LLVMDisposeTargetData(LLVMTargetDataRef TD)

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

LLVMElementAtOffset
uint LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, ulong Offset)

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

LLVMGetModuleDataLayout
LLVMTargetDataRef LLVMGetModuleDataLayout(LLVMModuleRef M)

Obtain the data layout for a module.

LLVMIntPtrType
LLVMTypeRef LLVMIntPtrType(LLVMTargetDataRef TD)

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

LLVMIntPtrTypeForAS
LLVMTypeRef LLVMIntPtrTypeForAS(LLVMTargetDataRef TD, uint 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.

LLVMIntPtrTypeForASInContext
LLVMTypeRef LLVMIntPtrTypeForASInContext(LLVMContextRef C, LLVMTargetDataRef TD, uint 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.

LLVMIntPtrTypeInContext
LLVMTypeRef LLVMIntPtrTypeInContext(LLVMContextRef C, LLVMTargetDataRef TD)

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

LLVMOffsetOfElement
ulong LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, uint Element)

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

LLVMPointerSize
uint LLVMPointerSize(LLVMTargetDataRef TD)

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

LLVMPointerSizeForAS
uint LLVMPointerSizeForAS(LLVMTargetDataRef TD, uint AS)

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

LLVMPreferredAlignmentOfGlobal
uint LLVMPreferredAlignmentOfGlobal(LLVMTargetDataRef TD, LLVMValueRef GlobalVar)

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

LLVMPreferredAlignmentOfType
uint LLVMPreferredAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty)

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

LLVMSetModuleDataLayout
void LLVMSetModuleDataLayout(LLVMModuleRef M, LLVMTargetDataRef DL)

Set the data layout for a module.

LLVMSizeOfTypeInBits
ulong LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty)

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

LLVMStoreSizeOfType
ulong LLVMStoreSizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty)

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

LLVM_ASM_DISASSEMBLER
string LLVM_ASM_DISASSEMBLER(string delegate(string) nothrow fun)
Undocumented in source. Be warned that the author may not have intended to support it.
LLVM_ASM_PARSER
string LLVM_ASM_PARSER(string delegate(string) nothrow fun)
Undocumented in source. Be warned that the author may not have intended to support it.
LLVM_ASM_PRINTER
string LLVM_ASM_PRINTER(string delegate(string) nothrow fun)
Undocumented in source. Be warned that the author may not have intended to support it.
LLVM_TARGET
string LLVM_TARGET(string delegate(string) nothrow fun)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

LLVMInitializeAllAsmParsers
void LLVMInitializeAllAsmParsers()

LLVMInitializeAllAsmParsers - The main program should call this function if it wants all asm parsers that LLVM is configured to support, to make them available via the TargetRegistry.

LLVMInitializeAllAsmPrinters
void LLVMInitializeAllAsmPrinters()

LLVMInitializeAllAsmPrinters - The main program should call this function if it wants all asm printers that LLVM is configured to support, to make them available via the TargetRegistry.

LLVMInitializeAllDisassemblers
void LLVMInitializeAllDisassemblers()

LLVMInitializeAllDisassemblers - The main program should call this function if it wants all disassemblers that LLVM is configured to support, to make them available via the TargetRegistry.

LLVMInitializeAllTargetInfos
void LLVMInitializeAllTargetInfos()

LLVMInitializeAllTargetInfos - The main program should call this function if it wants access to all available targets that LLVM is configured to support.

LLVMInitializeAllTargetMCs
void LLVMInitializeAllTargetMCs()

LLVMInitializeAllTargetMCs - The main program should call this function if it wants access to all available target MC that LLVM is configured to support.

LLVMInitializeAllTargets
void LLVMInitializeAllTargets()

LLVMInitializeAllTargets - The main program should call this function if it wants to link in all available targets that LLVM is configured to support.

LLVMInitializeNativeTarget
LLVMBool LLVMInitializeNativeTarget()

LLVMInitializeNativeTarget - The main program should call this function to initialize the native target corresponding to the host. This is useful for JIT applications to ensure that the target gets linked in correctly.

Structs

__LLVMOpaqueTargetData
struct __LLVMOpaqueTargetData
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
__LLVMOpaqueTargetLibraryInfotData
struct __LLVMOpaqueTargetLibraryInfotData
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
__LLVMStructLayout
struct __LLVMStructLayout
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta