LLVM 22.0.0git
Target.h File Reference
#include "llvm-c/ExternC.h"
#include "llvm-c/Types.h"
#include "llvm-c/Visibility.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Config/Targets.def"
#include "llvm/Config/AsmPrinters.def"
#include "llvm/Config/AsmParsers.def"
#include "llvm/Config/Disassemblers.def"

Go to the source code of this file.

Macros

#define LLVM_TARGET(TargetName)
#define LLVM_TARGET(TargetName)
#define LLVM_TARGET(TargetName)
#define LLVM_ASM_PRINTER(TargetName)
#define LLVM_ASM_PARSER(TargetName)
#define LLVM_DISASSEMBLER(TargetName)
#define LLVM_TARGET(TargetName)
#define LLVM_TARGET(TargetName)
#define LLVM_TARGET(TargetName)
#define LLVM_ASM_PRINTER(TargetName)
#define LLVM_ASM_PARSER(TargetName)
#define LLVM_DISASSEMBLER(TargetName)

Typedefs

typedef struct LLVMOpaqueTargetData * LLVMTargetDataRef
typedef struct LLVMOpaqueTargetLibraryInfotData * LLVMTargetLibraryInfoRef

Enumerations

enum  LLVMByteOrdering { LLVMBigEndian , LLVMLittleEndian }

Functions

static void LLVMInitializeAllTargetInfos (void)
 LLVMInitializeAllTargetInfos - The main program should call this function if it wants access to all available targets that LLVM is configured to support.
static void LLVMInitializeAllTargets (void)
 LLVMInitializeAllTargets - The main program should call this function if it wants to link in all available targets that LLVM is configured to support.
static void LLVMInitializeAllTargetMCs (void)
 LLVMInitializeAllTargetMCs - The main program should call this function if it wants access to all available target MC that LLVM is configured to support.
static void LLVMInitializeAllAsmPrinters (void)
 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.
static void LLVMInitializeAllAsmParsers (void)
 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.
static void LLVMInitializeAllDisassemblers (void)
 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.
static LLVMBool LLVMInitializeNativeTarget (void)
 LLVMInitializeNativeTarget - The main program should call this function to initialize the native target corresponding to the host.
static LLVMBool LLVMInitializeNativeAsmParser (void)
 LLVMInitializeNativeTargetAsmParser - The main program should call this function to initialize the parser for the native target corresponding to the host.
static LLVMBool LLVMInitializeNativeAsmPrinter (void)
 LLVMInitializeNativeTargetAsmPrinter - The main program should call this function to initialize the printer for the native target corresponding to the host.
static LLVMBool LLVMInitializeNativeDisassembler (void)
 LLVMInitializeNativeTargetDisassembler - The main program should call this function to initialize the disassembler for the native target corresponding to the host.
LLVM_C_ABI LLVMTargetDataRef LLVMGetModuleDataLayout (LLVMModuleRef M)
 Obtain the data layout for a module.
LLVM_C_ABI void LLVMSetModuleDataLayout (LLVMModuleRef M, LLVMTargetDataRef DL)
 Set the data layout for a module.
LLVM_C_ABI LLVMTargetDataRef LLVMCreateTargetData (const char *StringRep)
 Creates target data from a target layout string.
LLVM_C_ABI void LLVMDisposeTargetData (LLVMTargetDataRef TD)
 Deallocates a TargetData.
LLVM_C_ABI void LLVMAddTargetLibraryInfo (LLVMTargetLibraryInfoRef TLI, LLVMPassManagerRef PM)
 Adds target library information to a pass manager.
LLVM_C_ABI charLLVMCopyStringRepOfTargetData (LLVMTargetDataRef TD)
 Converts target data to a target layout string.
LLVM_C_ABI enum LLVMByteOrdering LLVMByteOrder (LLVMTargetDataRef TD)
 Returns the byte order of a target, either LLVMBigEndian or LLVMLittleEndian.
LLVM_C_ABI unsigned LLVMPointerSize (LLVMTargetDataRef TD)
 Returns the pointer size in bytes for a target.
LLVM_C_ABI unsigned LLVMPointerSizeForAS (LLVMTargetDataRef TD, unsigned AS)
 Returns the pointer size in bytes for a target for a specified address space.
LLVM_C_ABI LLVMTypeRef LLVMIntPtrType (LLVMTargetDataRef TD)
 Returns the integer type that is the same size as a pointer on a target.
LLVM_C_ABI LLVMTypeRef LLVMIntPtrTypeForAS (LLVMTargetDataRef TD, unsigned AS)
 Returns the integer type that is the same size as a pointer on a target.
LLVM_C_ABI LLVMTypeRef LLVMIntPtrTypeInContext (LLVMContextRef C, LLVMTargetDataRef TD)
 Returns the integer type that is the same size as a pointer on a target.
LLVM_C_ABI LLVMTypeRef LLVMIntPtrTypeForASInContext (LLVMContextRef C, LLVMTargetDataRef TD, unsigned AS)
 Returns the integer type that is the same size as a pointer on a target.
LLVM_C_ABI unsigned long long LLVMSizeOfTypeInBits (LLVMTargetDataRef TD, LLVMTypeRef Ty)
 Computes the size of a type in bits for a target.
LLVM_C_ABI unsigned long long LLVMStoreSizeOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty)
 Computes the storage size of a type in bytes for a target.
LLVM_C_ABI unsigned long long LLVMABISizeOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty)
 Computes the ABI size of a type in bytes for a target.
LLVM_C_ABI unsigned LLVMABIAlignmentOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty)
 Computes the ABI alignment of a type in bytes for a target.
LLVM_C_ABI unsigned LLVMCallFrameAlignmentOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty)
 Computes the call frame alignment of a type in bytes for a target.
LLVM_C_ABI unsigned LLVMPreferredAlignmentOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty)
 Computes the preferred alignment of a type in bytes for a target.
LLVM_C_ABI unsigned LLVMPreferredAlignmentOfGlobal (LLVMTargetDataRef TD, LLVMValueRef GlobalVar)
 Computes the preferred alignment of a global variable in bytes for a target.
LLVM_C_ABI unsigned LLVMElementAtOffset (LLVMTargetDataRef TD, LLVMTypeRef StructTy, unsigned long long Offset)
 Computes the structure element that contains the byte offset for a target.
LLVM_C_ABI unsigned long long LLVMOffsetOfElement (LLVMTargetDataRef TD, LLVMTypeRef StructTy, unsigned Element)
 Computes the byte offset of the indexed struct element for a target.