LLVM: Target information (original) (raw)
| Macros | |
|---|---|
| #define | LLVM_TARGET(TargetName) |
| #define | LLVM_TARGET(TargetName) |
| #define | LLVM_TARGET(TargetName) |
| #define | LLVM_TARGET(TargetName) |
| #define | LLVM_TARGET(TargetName) |
| #define | LLVM_TARGET(TargetName) |
| #define | LLVM_ASM_PRINTER(TargetName) |
| #define | LLVM_ASM_PRINTER(TargetName) |
| #define | LLVM_ASM_PARSER(TargetName) |
| #define | LLVM_ASM_PARSER(TargetName) |
| #define | LLVM_DISASSEMBLER(TargetName) |
| #define | LLVM_DISASSEMBLER(TargetName) |
| Typedefs | |
|---|---|
| typedef struct LLVMOpaqueTargetData * | LLVMTargetDataRef |
| typedef struct LLVMOpaqueTargetLibraryInfotData * | LLVMTargetLibraryInfoRef |
| typedef struct LLVMOpaqueTargetMachineOptions * | LLVMTargetMachineOptionsRef |
| typedef struct LLVMOpaqueTargetMachine * | LLVMTargetMachineRef |
| typedef struct LLVMTarget * | LLVMTargetRef |
| 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 char * | LLVMCopyStringRepOfTargetData (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 | LLVM_ATTRIBUTE_C_DEPRECATED (LLVMTypeRef LLVMIntPtrType(LLVMTargetDataRef TD), "Use of the global context is deprecated, use " "LLVMIntPtrTypeInContext instead") |
| Returns the integer type that is the same size as a pointer on a target. | |
| LLVM_C_ABI | LLVM_ATTRIBUTE_C_DEPRECATED (LLVMTypeRef LLVMIntPtrTypeForAS(LLVMTargetDataRef TD, unsigned AS), "Use of the global context is deprecated, use LLVMIntPtrTypeForASInContext " "instead") |
| 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. | |
| LLVM_C_ABI LLVMTargetRef | LLVMGetFirstTarget (void) |
| Returns the first llvm::Target in the registered targets list. | |
| LLVM_C_ABI LLVMTargetRef | LLVMGetNextTarget (LLVMTargetRef T) |
| Returns the next llvm::Target given a previous one (or null if there's none) | |
| LLVM_C_ABI LLVMTargetRef | LLVMGetTargetFromName (const char *Name) |
| Finds the target corresponding to the given name and stores it in T. | |
| LLVM_C_ABI LLVMBool | LLVMGetTargetFromTriple (const char *Triple, LLVMTargetRef *T, char **ErrorMessage) |
| Finds the target corresponding to the given triple and stores it in T. | |
| LLVM_C_ABI const char * | LLVMGetTargetName (LLVMTargetRef T) |
| Returns the name of a target. | |
| LLVM_C_ABI const char * | LLVMGetTargetDescription (LLVMTargetRef T) |
| Returns the description of a target. | |
| LLVM_C_ABI LLVMBool | LLVMTargetHasJIT (LLVMTargetRef T) |
| Returns if the target has a JIT. | |
| LLVM_C_ABI LLVMBool | LLVMTargetHasTargetMachine (LLVMTargetRef T) |
| Returns if the target has a TargetMachine associated. | |
| LLVM_C_ABI LLVMBool | LLVMTargetHasAsmBackend (LLVMTargetRef T) |
| Returns if the target as an ASM backend (required for emitting output) | |
| LLVM_C_ABI LLVMTargetMachineOptionsRef | LLVMCreateTargetMachineOptions (void) |
| Create a new set of options for an llvm::TargetMachine. | |
| LLVM_C_ABI void | LLVMDisposeTargetMachineOptions (LLVMTargetMachineOptionsRef Options) |
| Dispose of an LLVMTargetMachineOptionsRef instance. | |
| LLVM_C_ABI void | LLVMTargetMachineOptionsSetCPU (LLVMTargetMachineOptionsRef Options, const char *CPU) |
| LLVM_C_ABI void | LLVMTargetMachineOptionsSetFeatures (LLVMTargetMachineOptionsRef Options, const char *Features) |
| Set the list of features for the target machine. | |
| LLVM_C_ABI void | LLVMTargetMachineOptionsSetABI (LLVMTargetMachineOptionsRef Options, const char *ABI) |
| LLVM_C_ABI void | LLVMTargetMachineOptionsSetCodeGenOptLevel (LLVMTargetMachineOptionsRef Options, LLVMCodeGenOptLevel Level) |
| LLVM_C_ABI void | LLVMTargetMachineOptionsSetRelocMode (LLVMTargetMachineOptionsRef Options, LLVMRelocMode Reloc) |
| LLVM_C_ABI void | LLVMTargetMachineOptionsSetCodeModel (LLVMTargetMachineOptionsRef Options, LLVMCodeModel CodeModel) |
| LLVM_C_ABI LLVMTargetMachineRef | LLVMCreateTargetMachineWithOptions (LLVMTargetRef T, const char *Triple, LLVMTargetMachineOptionsRef Options) |
| Create a new llvm::TargetMachine. | |
| LLVM_C_ABI LLVMTargetMachineRef | LLVMCreateTargetMachine (LLVMTargetRef T, const char *Triple, const char *CPU, const char *Features, LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, LLVMCodeModel CodeModel) |
| Creates a new llvm::TargetMachine. | |
| LLVM_C_ABI void | LLVMDisposeTargetMachine (LLVMTargetMachineRef T) |
| Dispose the LLVMTargetMachineRef instance generated by LLVMCreateTargetMachine. | |
| LLVM_C_ABI LLVMTargetRef | LLVMGetTargetMachineTarget (LLVMTargetMachineRef T) |
| Returns the Target used in a TargetMachine. | |
| LLVM_C_ABI char * | LLVMGetTargetMachineTriple (LLVMTargetMachineRef T) |
| Returns the triple used creating this target machine. | |
| LLVM_C_ABI char * | LLVMGetTargetMachineCPU (LLVMTargetMachineRef T) |
| Returns the cpu used creating this target machine. | |
| LLVM_C_ABI char * | LLVMGetTargetMachineFeatureString (LLVMTargetMachineRef T) |
| Returns the feature string used creating this target machine. | |
| LLVM_C_ABI LLVMTargetDataRef | LLVMCreateTargetDataLayout (LLVMTargetMachineRef T) |
| Create a DataLayout based on the targetMachine. | |
| LLVM_C_ABI void | LLVMSetTargetMachineAsmVerbosity (LLVMTargetMachineRef T, LLVMBool VerboseAsm) |
| Set the target machine's ASM verbosity. | |
| LLVM_C_ABI void | LLVMSetTargetMachineFastISel (LLVMTargetMachineRef T, LLVMBool Enable) |
| Enable fast-path instruction selection. | |
| LLVM_C_ABI void | LLVMSetTargetMachineGlobalISel (LLVMTargetMachineRef T, LLVMBool Enable) |
| Enable global instruction selection. | |
| LLVM_C_ABI void | LLVMSetTargetMachineGlobalISelAbort (LLVMTargetMachineRef T, LLVMGlobalISelAbortMode Mode) |
| Set abort behaviour when global instruction selection fails to lower/select an instruction. | |
| LLVM_C_ABI void | LLVMSetTargetMachineMachineOutliner (LLVMTargetMachineRef T, LLVMBool Enable) |
| Enable the MachineOutliner pass. | |
| LLVM_C_ABI LLVMBool | LLVMTargetMachineEmitToFile (LLVMTargetMachineRef T, LLVMModuleRef M, const char *Filename, LLVMCodeGenFileType codegen, char **ErrorMessage) |
| Emits an asm or object file for the given module to the filename. | |
| LLVM_C_ABI LLVMBool | LLVMTargetMachineEmitToMemoryBuffer (LLVMTargetMachineRef T, LLVMModuleRef M, LLVMCodeGenFileType codegen, char **ErrorMessage, LLVMMemoryBufferRef *OutMemBuf) |
| Compile the LLVM IR stored in M and store the result in OutMemBuf. | |
| LLVM_C_ABI char * | LLVMGetDefaultTargetTriple (void) |
| Get a triple for the host machine as a string. | |
| LLVM_C_ABI char * | LLVMNormalizeTargetTriple (const char *triple) |
| Normalize a target triple. | |
| LLVM_C_ABI char * | LLVMGetHostCPUName (void) |
| Get the host CPU as a string. | |
| LLVM_C_ABI char * | LLVMGetHostCPUFeatures (void) |
| Get the host CPU's features as a string. | |
| LLVM_C_ABI void | LLVMAddAnalysisPasses (LLVMTargetMachineRef T, LLVMPassManagerRef PM) |
| Adds the target-specific analysis passes to the pass manager. |
◆ LLVM_ASM_PARSER [1/2]
| #define LLVM_ASM_PARSER | ( | TargetName | ) |
|---|
Value:
LLVM_C_ABI void LLVMInitialize##TargetName##AsmParser(void);
#define LLVM_C_ABI
LLVM_C_ABI is the export/visibility macro used to mark symbols declared in llvm-c as exported when bu...
Definition at line 65 of file Target.h.
◆ LLVM_ASM_PARSER [2/2]
| #define LLVM_ASM_PARSER | ( | TargetName | ) |
|---|
Value:
LLVMInitialize##TargetName##AsmParser();
Definition at line 65 of file Target.h.
◆ LLVM_ASM_PRINTER [1/2]
| #define LLVM_ASM_PRINTER | ( | TargetName | ) |
|---|
Value:
LLVM_C_ABI void LLVMInitialize##TargetName##AsmPrinter(void);
Definition at line 59 of file Target.h.
◆ LLVM_ASM_PRINTER [2/2]
| #define LLVM_ASM_PRINTER | ( | TargetName | ) |
|---|
Value:
LLVMInitialize##TargetName##AsmPrinter();
Definition at line 59 of file Target.h.
◆ LLVM_DISASSEMBLER [1/2]
| #define LLVM_DISASSEMBLER | ( | TargetName | ) |
|---|
Value:
LLVM_C_ABI void LLVMInitialize##TargetName##Disassembler(void);
Definition at line 71 of file Target.h.
◆ LLVM_DISASSEMBLER [2/2]
| #define LLVM_DISASSEMBLER | ( | TargetName | ) |
|---|
Value:
LLVMInitialize##TargetName##Disassembler();
Definition at line 71 of file Target.h.
◆ LLVM_TARGET [1/6]
| #define LLVM_TARGET | ( | TargetName | ) |
|---|
Value:
LLVM_C_ABI void LLVMInitialize##TargetName##TargetInfo(void);
Definition at line 43 of file Target.h.
◆ LLVM_TARGET [2/6]
| #define LLVM_TARGET | ( | TargetName | ) |
|---|
Value:
LLVM_C_ABI void LLVMInitialize##TargetName##Target(void);
Definition at line 43 of file Target.h.
◆ LLVM_TARGET [3/6]
| #define LLVM_TARGET | ( | TargetName | ) |
|---|
Value:
LLVM_C_ABI void LLVMInitialize##TargetName##TargetMC(void);
Definition at line 43 of file Target.h.
◆ LLVM_TARGET [4/6]
| #define LLVM_TARGET | ( | TargetName | ) |
|---|
Value:
LLVMInitialize##TargetName##TargetInfo();
Definition at line 43 of file Target.h.
◆ LLVM_TARGET [5/6]
| #define LLVM_TARGET | ( | TargetName | ) |
|---|
Value:
LLVMInitialize##TargetName##Target();
Definition at line 43 of file Target.h.
◆ LLVM_TARGET [6/6]
| #define LLVM_TARGET | ( | TargetName | ) |
|---|
Value:
LLVMInitialize##TargetName##TargetMC();
Definition at line 43 of file Target.h.
◆ LLVMTargetDataRef
typedef struct LLVMOpaqueTargetData* LLVMTargetDataRef
◆ LLVMTargetLibraryInfoRef
typedef struct LLVMOpaqueTargetLibraryInfotData* LLVMTargetLibraryInfoRef
◆ LLVMTargetMachineOptionsRef
typedef struct LLVMOpaqueTargetMachineOptions* LLVMTargetMachineOptionsRef
◆ LLVMTargetMachineRef
typedef struct LLVMOpaqueTargetMachine* LLVMTargetMachineRef
◆ LLVMTargetRef
typedef struct LLVMTarget* LLVMTargetRef
◆ LLVMByteOrdering
| Enumerator |
|---|
| LLVMBigEndian |
| LLVMLittleEndian |
Definition at line 37 of file Target.h.
◆ LLVMCodeGenFileType
| Enumerator |
|---|
| LLVMAssemblyFile |
| LLVMObjectFile |
Definition at line 66 of file TargetMachine.h.
◆ LLVMCodeGenOptLevel
| Enumerator |
|---|
| LLVMCodeGenLevelNone |
| LLVMCodeGenLevelLess |
| LLVMCodeGenLevelDefault |
| LLVMCodeGenLevelAggressive |
Definition at line 39 of file TargetMachine.h.
◆ LLVMCodeModel
| Enumerator |
|---|
| LLVMCodeModelDefault |
| LLVMCodeModelJITDefault |
| LLVMCodeModelTiny |
| LLVMCodeModelSmall |
| LLVMCodeModelKernel |
| LLVMCodeModelMedium |
| LLVMCodeModelLarge |
Definition at line 56 of file TargetMachine.h.
◆ LLVMGlobalISelAbortMode
| Enumerator |
|---|
| LLVMGlobalISelAbortEnable |
| LLVMGlobalISelAbortDisable |
| LLVMGlobalISelAbortDisableWithDiag |
Definition at line 71 of file TargetMachine.h.
◆ LLVMRelocMode
| Enumerator |
|---|
| LLVMRelocDefault |
| LLVMRelocStatic |
| LLVMRelocPIC |
| LLVMRelocDynamicNoPic |
| LLVMRelocROPI |
| LLVMRelocRWPI |
| LLVMRelocROPI_RWPI |
Definition at line 46 of file TargetMachine.h.
◆ LLVM_ATTRIBUTE_C_DEPRECATED() [1/2]
| LLVM_C_ABI LLVM_ATTRIBUTE_C_DEPRECATED | ( | LLVMTypeRef | _LLVMIntPtrType_LLVMTargetDataRef TD, |
|---|---|---|---|
| "Use of the global context is | deprecated, | ||
| use " "LLVMIntPtrTypeInContext instead" | ) |
◆ LLVM_ATTRIBUTE_C_DEPRECATED() [2/2]
| LLVM_C_ABI LLVM_ATTRIBUTE_C_DEPRECATED | ( | LLVMTypeRef | _LLVMIntPtrTypeForAS_LLVMTargetDataRef TD, unsigned AS, |
|---|---|---|---|
| "Use of the global context is | deprecated, | ||
| use LLVMIntPtrTypeForASInContext " "instead" | ) |
◆ LLVMABIAlignmentOfType()
Computes the ABI alignment of a type in bytes for a target.
See the method llvm::DataLayout::getTypeABISize.
Definition at line 108 of file Target.cpp.
References llvm::unwrap().
◆ LLVMABISizeOfType()
◆ LLVMAddAnalysisPasses()
◆ LLVMAddTargetLibraryInfo()
◆ LLVMByteOrder()
◆ LLVMCallFrameAlignmentOfType()
Computes the call frame alignment of a type in bytes for a target.
See the method llvm::DataLayout::getTypeABISize.
Definition at line 112 of file Target.cpp.
References llvm::unwrap().
◆ LLVMCopyStringRepOfTargetData()
◆ LLVMCreateTargetData()
◆ LLVMCreateTargetDataLayout()
◆ LLVMCreateTargetMachine()
Creates a new llvm::TargetMachine.
See llvm::Target::createTargetMachine
Definition at line 212 of file TargetMachineC.cpp.
References LLVMCreateTargetMachineOptions(), LLVMCreateTargetMachineWithOptions(), LLVMDisposeTargetMachineOptions(), LLVMTargetMachineOptionsSetCodeGenOptLevel(), LLVMTargetMachineOptionsSetCodeModel(), LLVMTargetMachineOptionsSetCPU(), LLVMTargetMachineOptionsSetFeatures(), LLVMTargetMachineOptionsSetRelocMode(), Machine, Options, and T.
◆ LLVMCreateTargetMachineOptions()
◆ LLVMCreateTargetMachineWithOptions()
◆ LLVMDisposeTargetData()
◆ LLVMDisposeTargetMachine()
◆ LLVMDisposeTargetMachineOptions()
◆ LLVMElementAtOffset()
◆ LLVMGetDefaultTargetTriple()
◆ LLVMGetFirstTarget()
◆ LLVMGetHostCPUFeatures()
◆ LLVMGetHostCPUName()
◆ LLVMGetModuleDataLayout()
◆ LLVMGetNextTarget()
◆ LLVMGetTargetDescription()
◆ LLVMGetTargetFromName()
◆ LLVMGetTargetFromTriple()
◆ LLVMGetTargetMachineCPU()
Returns the cpu used creating this target machine.
See llvm::TargetMachine::getCPU. The result needs to be disposed with LLVMDisposeMessage.
Definition at line 241 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
◆ LLVMGetTargetMachineFeatureString()
Returns the feature string used creating this target machine.
See llvm::TargetMachine::getFeatureString. The result needs to be disposed with LLVMDisposeMessage.
Definition at line 246 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
◆ LLVMGetTargetMachineTarget()
◆ LLVMGetTargetMachineTriple()
Returns the triple used creating this target machine.
See llvm::TargetMachine::getTriple. The result needs to be disposed with LLVMDisposeMessage.
Definition at line 236 of file TargetMachineC.cpp.
References T, and llvm::unwrap().
◆ LLVMGetTargetName()
◆ LLVMInitializeAllAsmParsers()
| void LLVMInitializeAllAsmParsers ( void ) | inlinestatic |
|---|
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.
Definition at line 115 of file Target.h.
◆ LLVMInitializeAllAsmPrinters()
| void LLVMInitializeAllAsmPrinters ( void ) | inlinestatic |
|---|
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.
Definition at line 106 of file Target.h.
◆ LLVMInitializeAllDisassemblers()
| void LLVMInitializeAllDisassemblers ( void ) | inlinestatic |
|---|
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.
Definition at line 124 of file Target.h.
◆ LLVMInitializeAllTargetInfos()
| void LLVMInitializeAllTargetInfos ( void ) | inlinestatic |
|---|
LLVMInitializeAllTargetInfos - The main program should call this function if it wants access to all available targets that LLVM is configured to support.
Definition at line 79 of file Target.h.
◆ LLVMInitializeAllTargetMCs()
| void LLVMInitializeAllTargetMCs ( void ) | inlinestatic |
|---|
LLVMInitializeAllTargetMCs - The main program should call this function if it wants access to all available target MC that LLVM is configured to support.
Definition at line 97 of file Target.h.
◆ LLVMInitializeAllTargets()
| void LLVMInitializeAllTargets ( void ) | inlinestatic |
|---|
LLVMInitializeAllTargets - The main program should call this function if it wants to link in all available targets that LLVM is configured to support.
Definition at line 88 of file Target.h.
◆ LLVMInitializeNativeAsmParser()
| LLVMBool LLVMInitializeNativeAsmParser ( void ) | inlinestatic |
|---|
LLVMInitializeNativeTargetAsmParser - The main program should call this function to initialize the parser for the native target corresponding to the host.
Definition at line 149 of file Target.h.
◆ LLVMInitializeNativeAsmPrinter()
| LLVMBool LLVMInitializeNativeAsmPrinter ( void ) | inlinestatic |
|---|
LLVMInitializeNativeTargetAsmPrinter - The main program should call this function to initialize the printer for the native target corresponding to the host.
Definition at line 161 of file Target.h.
◆ LLVMInitializeNativeDisassembler()
| LLVMBool LLVMInitializeNativeDisassembler ( void ) | inlinestatic |
|---|
LLVMInitializeNativeTargetDisassembler - The main program should call this function to initialize the disassembler for the native target corresponding to the host.
Definition at line 173 of file Target.h.
◆ LLVMInitializeNativeTarget()
| LLVMBool LLVMInitializeNativeTarget ( void ) | inlinestatic |
|---|
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.
Definition at line 134 of file Target.h.
◆ LLVMIntPtrTypeForASInContext()
◆ LLVMIntPtrTypeInContext()
◆ LLVMNormalizeTargetTriple()
◆ LLVMOffsetOfElement()
◆ LLVMPointerSize()
◆ LLVMPointerSizeForAS()
◆ LLVMPreferredAlignmentOfGlobal()
Computes the preferred alignment of a global variable in bytes for a target.
See the method llvm::DataLayout::getPreferredAlignment.
Definition at line 120 of file Target.cpp.
References llvm::unwrap().
◆ LLVMPreferredAlignmentOfType()
Computes the preferred alignment of a type in bytes for a target.
See the method llvm::DataLayout::getTypeABISize.
Definition at line 116 of file Target.cpp.
References llvm::unwrap().
◆ LLVMSetModuleDataLayout()
Set the data layout for a module.
See also
Module::setDataLayout()
Definition at line 45 of file Target.cpp.
References DL, and llvm::unwrap().
◆ LLVMSetTargetMachineAsmVerbosity()
◆ LLVMSetTargetMachineFastISel()
◆ LLVMSetTargetMachineGlobalISel()
◆ LLVMSetTargetMachineGlobalISelAbort()
◆ LLVMSetTargetMachineMachineOutliner()
◆ LLVMSizeOfTypeInBits()
◆ LLVMStoreSizeOfType()
◆ LLVMTargetHasAsmBackend()
◆ LLVMTargetHasJIT()
◆ LLVMTargetHasTargetMachine()
◆ LLVMTargetMachineEmitToFile()
◆ LLVMTargetMachineEmitToMemoryBuffer()
◆ LLVMTargetMachineOptionsSetABI()
◆ LLVMTargetMachineOptionsSetCodeGenOptLevel()
| LLVM_C_ABI void LLVMTargetMachineOptionsSetCodeGenOptLevel | ( | LLVMTargetMachineOptionsRef | Options, |
|---|---|---|---|
| LLVMCodeGenOptLevel | Level ) |
◆ LLVMTargetMachineOptionsSetCodeModel()
| LLVM_C_ABI void LLVMTargetMachineOptionsSetCodeModel | ( | LLVMTargetMachineOptionsRef | Options, |
|---|---|---|---|
| LLVMCodeModel | CodeModel ) |
◆ LLVMTargetMachineOptionsSetCPU()
◆ LLVMTargetMachineOptionsSetFeatures()
◆ LLVMTargetMachineOptionsSetRelocMode()
| LLVM_C_ABI void LLVMTargetMachineOptionsSetRelocMode | ( | LLVMTargetMachineOptionsRef | Options, |
|---|---|---|---|
| LLVMRelocMode | Reloc ) |
Definition at line 164 of file TargetMachineC.cpp.
References llvm::Reloc::DynamicNoPIC, LLVMRelocDefault, LLVMRelocDynamicNoPic, LLVMRelocPIC, LLVMRelocROPI, LLVMRelocROPI_RWPI, LLVMRelocRWPI, LLVMRelocStatic, Options, llvm::Reloc::PIC_, llvm::Reloc::ROPI, llvm::Reloc::ROPI_RWPI, llvm::Reloc::RWPI, llvm::Reloc::Static, and llvm::unwrap().
Referenced by LLVMCreateTargetMachine().