|
LLVM
8.0.1
|
|
Macros | |
| #define | LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##TargetInfo(void); |
| #define | LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target(void); |
| #define | LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##TargetMC(void); |
| #define | LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo(); |
| #define | LLVM_TARGET(TargetName) LLVMInitialize##TargetName##Target(); |
| #define | LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC(); |
| #define | LLVM_ASM_PRINTER(TargetName) void LLVMInitialize##TargetName##AsmPrinter(void); |
| #define | LLVM_ASM_PRINTER(TargetName) LLVMInitialize##TargetName##AsmPrinter(); |
| #define | LLVM_ASM_PARSER(TargetName) void LLVMInitialize##TargetName##AsmParser(void); |
| #define | LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser(); |
| #define | LLVM_DISASSEMBLER(TargetName) void LLVMInitialize##TargetName##Disassembler(void); |
| #define | LLVM_DISASSEMBLER(TargetName) LLVMInitialize##TargetName##Disassembler(); |
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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| static LLVMBool | LLVMInitializeNativeTarget (void) |
| LLVMInitializeNativeTarget - The main program should call this function to initialize the native target corresponding to the host. More... | |
| static LLVMBool | LLVMInitializeNativeAsmParser (void) |
| LLVMInitializeNativeTargetAsmParser - The main program should call this function to initialize the parser for the native target corresponding to the host. More... | |
| static LLVMBool | LLVMInitializeNativeAsmPrinter (void) |
| LLVMInitializeNativeTargetAsmPrinter - The main program should call this function to initialize the printer for the native target corresponding to the host. More... | |
| static LLVMBool | LLVMInitializeNativeDisassembler (void) |
| LLVMInitializeNativeTargetDisassembler - The main program should call this function to initialize the disassembler for the native target corresponding to the host. More... | |
| LLVMTargetDataRef | LLVMGetModuleDataLayout (LLVMModuleRef M) |
| Obtain the data layout for a module. More... | |
| void | LLVMSetModuleDataLayout (LLVMModuleRef M, LLVMTargetDataRef DL) |
| Set the data layout for a module. More... | |
| LLVMTargetDataRef | LLVMCreateTargetData (const char *StringRep) |
| Creates target data from a target layout string. More... | |
| void | LLVMDisposeTargetData (LLVMTargetDataRef TD) |
| Deallocates a TargetData. More... | |
| void | LLVMAddTargetLibraryInfo (LLVMTargetLibraryInfoRef TLI, LLVMPassManagerRef PM) |
| Adds target library information to a pass manager. More... | |
| char * | LLVMCopyStringRepOfTargetData (LLVMTargetDataRef TD) |
| Converts target data to a target layout string. More... | |
| enum LLVMByteOrdering | LLVMByteOrder (LLVMTargetDataRef TD) |
| Returns the byte order of a target, either LLVMBigEndian or LLVMLittleEndian. More... | |
| unsigned | LLVMPointerSize (LLVMTargetDataRef TD) |
| Returns the pointer size in bytes for a target. More... | |
| unsigned | LLVMPointerSizeForAS (LLVMTargetDataRef TD, unsigned AS) |
| Returns the pointer size in bytes for a target for a specified address space. More... | |
| LLVMTypeRef | LLVMIntPtrType (LLVMTargetDataRef TD) |
| Returns the integer type that is the same size as a pointer on a target. More... | |
| LLVMTypeRef | LLVMIntPtrTypeForAS (LLVMTargetDataRef TD, unsigned AS) |
| Returns the integer type that is the same size as a pointer on a target. More... | |
| LLVMTypeRef | LLVMIntPtrTypeInContext (LLVMContextRef C, LLVMTargetDataRef TD) |
| Returns the integer type that is the same size as a pointer on a target. More... | |
| LLVMTypeRef | LLVMIntPtrTypeForASInContext (LLVMContextRef C, LLVMTargetDataRef TD, unsigned AS) |
| Returns the integer type that is the same size as a pointer on a target. More... | |
| unsigned long long | LLVMSizeOfTypeInBits (LLVMTargetDataRef TD, LLVMTypeRef Ty) |
| Computes the size of a type in bytes for a target. More... | |
| unsigned long long | LLVMStoreSizeOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty) |
| Computes the storage size of a type in bytes for a target. More... | |
| unsigned long long | LLVMABISizeOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty) |
| Computes the ABI size of a type in bytes for a target. More... | |
| unsigned | LLVMABIAlignmentOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty) |
| Computes the ABI alignment of a type in bytes for a target. More... | |
| unsigned | LLVMCallFrameAlignmentOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty) |
| Computes the call frame alignment of a type in bytes for a target. More... | |
| unsigned | LLVMPreferredAlignmentOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty) |
| Computes the preferred alignment of a type in bytes for a target. More... | |
| unsigned | LLVMPreferredAlignmentOfGlobal (LLVMTargetDataRef TD, LLVMValueRef GlobalVar) |
| Computes the preferred alignment of a global variable in bytes for a target. More... | |
| unsigned | LLVMElementAtOffset (LLVMTargetDataRef TD, LLVMTypeRef StructTy, unsigned long long Offset) |
| Computes the structure element that contains the byte offset for a target. More... | |
| unsigned long long | LLVMOffsetOfElement (LLVMTargetDataRef TD, LLVMTypeRef StructTy, unsigned Element) |
| Computes the byte offset of the indexed struct element for a target. More... | |
| #define LLVM_ASM_PARSER | ( | TargetName | ) | void LLVMInitialize##TargetName##AsmParser(void); |
| #define LLVM_ASM_PARSER | ( | TargetName | ) | LLVMInitialize##TargetName##AsmParser(); |
| #define LLVM_ASM_PRINTER | ( | TargetName | ) | void LLVMInitialize##TargetName##AsmPrinter(void); |
| #define LLVM_ASM_PRINTER | ( | TargetName | ) | LLVMInitialize##TargetName##AsmPrinter(); |
| #define LLVM_DISASSEMBLER | ( | TargetName | ) | void LLVMInitialize##TargetName##Disassembler(void); |
| #define LLVM_DISASSEMBLER | ( | TargetName | ) | LLVMInitialize##TargetName##Disassembler(); |
| #define LLVM_TARGET | ( | TargetName | ) | void LLVMInitialize##TargetName##TargetInfo(void); |
| #define LLVM_TARGET | ( | TargetName | ) | void LLVMInitialize##TargetName##Target(void); |
| #define LLVM_TARGET | ( | TargetName | ) | void LLVMInitialize##TargetName##TargetMC(void); |
| #define LLVM_TARGET | ( | TargetName | ) | LLVMInitialize##TargetName##TargetInfo(); |
| #define LLVM_TARGET | ( | TargetName | ) | LLVMInitialize##TargetName##Target(); |
| #define LLVM_TARGET | ( | TargetName | ) | LLVMInitialize##TargetName##TargetMC(); |
| typedef struct LLVMOpaqueTargetData* LLVMTargetDataRef |
| typedef struct LLVMOpaqueTargetLibraryInfotData* LLVMTargetLibraryInfoRef |
| enum LLVMByteOrdering |
| unsigned LLVMABIAlignmentOfType | ( | LLVMTargetDataRef | TD, |
| LLVMTypeRef | Ty | ||
| ) |
Computes the ABI alignment of a type in bytes for a target.
See the method llvm::DataLayout::getTypeABISize.
Definition at line 114 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| unsigned long long LLVMABISizeOfType | ( | LLVMTargetDataRef | TD, |
| LLVMTypeRef | Ty | ||
| ) |
Computes the ABI size of a type in bytes for a target.
See the method llvm::DataLayout::getTypeAllocSize.
Definition at line 110 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| 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.
Definition at line 64 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| enum LLVMByteOrdering LLVMByteOrder | ( | LLVMTargetDataRef | TD | ) |
Returns the byte order of a target, either LLVMBigEndian or LLVMLittleEndian.
See the method llvm::DataLayout::isLittleEndian.
Definition at line 74 of file Target.cpp.
References LLVMBigEndian, LLVMLittleEndian, and llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| unsigned LLVMCallFrameAlignmentOfType | ( | LLVMTargetDataRef | TD, |
| LLVMTypeRef | Ty | ||
| ) |
Computes the call frame alignment of a type in bytes for a target.
See the method llvm::DataLayout::getTypeABISize.
Definition at line 118 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| 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.
Definition at line 69 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| LLVMTargetDataRef LLVMCreateTargetData | ( | const char * | StringRep | ) |
Creates target data from a target layout string.
See the constructor llvm::DataLayout::DataLayout.
Definition at line 56 of file Target.cpp.
References llvm::wrap().
Referenced by LLVMInitializeNativeDisassembler().
| void LLVMDisposeTargetData | ( | LLVMTargetDataRef | TD | ) |
Deallocates a TargetData.
See the destructor llvm::DataLayout::~DataLayout.
Definition at line 60 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| unsigned LLVMElementAtOffset | ( | LLVMTargetDataRef | TD, |
| LLVMTypeRef | StructTy, | ||
| unsigned long long | Offset | ||
| ) |
Computes the structure element that contains the byte offset for a target.
See the method llvm::StructLayout::getElementContainingOffset.
Definition at line 131 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| LLVMTargetDataRef LLVMGetModuleDataLayout | ( | LLVMModuleRef | M | ) |
Obtain the data layout for a module.
Definition at line 48 of file Target.cpp.
References llvm::unwrap(), and llvm::wrap().
Referenced by LLVMInitializeNativeDisassembler().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
LLVMInitializeNativeTargetDisassembler - The main program should call this function to initialize the disassembler for the native target corresponding to the host.
Definition at line 175 of file Target.h.
References C, llvm::lltok::GlobalVar, LLVMABIAlignmentOfType(), LLVMABISizeOfType(), LLVMAddTargetLibraryInfo(), LLVMByteOrder(), LLVMCallFrameAlignmentOfType(), LLVMCopyStringRepOfTargetData(), LLVMCreateTargetData(), LLVMDisposeTargetData(), LLVMElementAtOffset(), LLVMGetModuleDataLayout(), LLVMIntPtrType(), LLVMIntPtrTypeForAS(), LLVMIntPtrTypeForASInContext(), LLVMIntPtrTypeInContext(), LLVMOffsetOfElement(), LLVMPointerSize(), LLVMPointerSizeForAS(), LLVMPreferredAlignmentOfGlobal(), LLVMPreferredAlignmentOfType(), LLVMSetModuleDataLayout(), LLVMSizeOfTypeInBits(), and LLVMStoreSizeOfType().
|
inlinestatic |
| 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.
Definition at line 86 of file Target.cpp.
References LLVMGetGlobalContext(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVMInitializeNativeDisassembler().
| LLVMTypeRef LLVMIntPtrTypeForAS | ( | LLVMTargetDataRef | TD, |
| unsigned | 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.
Definition at line 90 of file Target.cpp.
References LLVMGetGlobalContext(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVMInitializeNativeDisassembler().
| LLVMTypeRef LLVMIntPtrTypeForASInContext | ( | LLVMContextRef | C, |
| LLVMTargetDataRef | TD, | ||
| unsigned | 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.
Definition at line 98 of file Target.cpp.
References llvm::unwrap(), and llvm::wrap().
Referenced by LLVMInitializeNativeDisassembler().
| 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.
Definition at line 94 of file Target.cpp.
References llvm::unwrap(), and llvm::wrap().
Referenced by LLVMInitializeNativeDisassembler().
| unsigned long long LLVMOffsetOfElement | ( | LLVMTargetDataRef | TD, |
| LLVMTypeRef | StructTy, | ||
| unsigned | Element | ||
| ) |
Computes the byte offset of the indexed struct element for a target.
See the method llvm::StructLayout::getElementContainingOffset.
Definition at line 137 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| unsigned LLVMPointerSize | ( | LLVMTargetDataRef | TD | ) |
Returns the pointer size in bytes for a target.
See the method llvm::DataLayout::getPointerSize.
Definition at line 78 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| unsigned LLVMPointerSizeForAS | ( | LLVMTargetDataRef | TD, |
| unsigned | AS | ||
| ) |
Returns the pointer size in bytes for a target for a specified address space.
See the method llvm::DataLayout::getPointerSize.
Definition at line 82 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| unsigned LLVMPreferredAlignmentOfGlobal | ( | LLVMTargetDataRef | TD, |
| LLVMValueRef | GlobalVar | ||
| ) |
Computes the preferred alignment of a global variable in bytes for a target.
See the method llvm::DataLayout::getPreferredAlignment.
Definition at line 126 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| unsigned LLVMPreferredAlignmentOfType | ( | LLVMTargetDataRef | TD, |
| LLVMTypeRef | Ty | ||
| ) |
Computes the preferred alignment of a type in bytes for a target.
See the method llvm::DataLayout::getTypeABISize.
Definition at line 122 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| void LLVMSetModuleDataLayout | ( | LLVMModuleRef | M, |
| LLVMTargetDataRef | DL | ||
| ) |
Set the data layout for a module.
Definition at line 52 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| unsigned long long LLVMSizeOfTypeInBits | ( | LLVMTargetDataRef | TD, |
| LLVMTypeRef | Ty | ||
| ) |
Computes the size of a type in bytes for a target.
See the method llvm::DataLayout::getTypeSizeInBits.
Definition at line 102 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
| unsigned long long LLVMStoreSizeOfType | ( | LLVMTargetDataRef | TD, |
| LLVMTypeRef | Ty | ||
| ) |
Computes the storage size of a type in bytes for a target.
See the method llvm::DataLayout::getTypeStoreSize.
Definition at line 106 of file Target.cpp.
References llvm::unwrap().
Referenced by LLVMInitializeNativeDisassembler().
1.8.13