|
LLVM 22.0.0git
|
These functions relate to LLVMTypeRef instances. More...
Functions | |
| LLVM_C_ABI LLVMTypeRef | LLVMStructTypeInContext (LLVMContextRef C, LLVMTypeRef *ElementTypes, unsigned ElementCount, LLVMBool Packed) |
| Create a new structure type in a context. | |
| LLVM_C_ABI LLVMTypeRef | LLVMStructType (LLVMTypeRef *ElementTypes, unsigned ElementCount, LLVMBool Packed) |
| Create a new structure type in the global context. | |
| LLVM_C_ABI LLVMTypeRef | LLVMStructCreateNamed (LLVMContextRef C, const char *Name) |
| Create an empty structure in a context having a specified name. | |
| LLVM_C_ABI const char * | LLVMGetStructName (LLVMTypeRef Ty) |
| Obtain the name of a structure. | |
| LLVM_C_ABI void | LLVMStructSetBody (LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, unsigned ElementCount, LLVMBool Packed) |
| Set the contents of a structure type. | |
| LLVM_C_ABI unsigned | LLVMCountStructElementTypes (LLVMTypeRef StructTy) |
| Get the number of elements defined inside the structure. | |
| LLVM_C_ABI void | LLVMGetStructElementTypes (LLVMTypeRef StructTy, LLVMTypeRef *Dest) |
| Get the elements within a structure. | |
| LLVM_C_ABI LLVMTypeRef | LLVMStructGetTypeAtIndex (LLVMTypeRef StructTy, unsigned i) |
| Get the type of the element at a given index in the structure. | |
| LLVM_C_ABI LLVMBool | LLVMIsPackedStruct (LLVMTypeRef StructTy) |
| Determine whether a structure is packed. | |
| LLVM_C_ABI LLVMBool | LLVMIsOpaqueStruct (LLVMTypeRef StructTy) |
| Determine whether a structure is opaque. | |
| LLVM_C_ABI LLVMBool | LLVMIsLiteralStruct (LLVMTypeRef StructTy) |
| Determine whether a structure is literal. | |
These functions relate to LLVMTypeRef instances.
| LLVM_C_ABI unsigned LLVMCountStructElementTypes | ( | LLVMTypeRef | StructTy | ) |
Get the number of elements defined inside the structure.
Definition at line 821 of file Core.cpp.
References llvm::unwrap().
| LLVM_C_ABI void LLVMGetStructElementTypes | ( | LLVMTypeRef | StructTy, |
| LLVMTypeRef * | Dest ) |
Get the elements within a structure.
The function is passed the address of a pre-allocated array of LLVMTypeRef at least LLVMCountStructElementTypes() long. After invocation, this array will be populated with the structure's elements. The objects in the destination array will have a lifetime of the structure type itself, which is the lifetime of the context it is contained in.
Definition at line 825 of file Core.cpp.
References T, llvm::unwrap(), and llvm::wrap().
| LLVM_C_ABI const char * LLVMGetStructName | ( | LLVMTypeRef | Ty | ) |
Obtain the name of a structure.
Definition at line 807 of file Core.cpp.
References llvm::unwrap().
| LLVM_C_ABI LLVMBool LLVMIsLiteralStruct | ( | LLVMTypeRef | StructTy | ) |
Determine whether a structure is literal.
Definition at line 844 of file Core.cpp.
References llvm::unwrap().
| LLVM_C_ABI LLVMBool LLVMIsOpaqueStruct | ( | LLVMTypeRef | StructTy | ) |
Determine whether a structure is opaque.
Definition at line 840 of file Core.cpp.
References llvm::unwrap().
| LLVM_C_ABI LLVMBool LLVMIsPackedStruct | ( | LLVMTypeRef | StructTy | ) |
Determine whether a structure is packed.
Definition at line 836 of file Core.cpp.
References llvm::unwrap().
| LLVM_C_ABI LLVMTypeRef LLVMStructCreateNamed | ( | LLVMContextRef | C, |
| const char * | Name ) |
Create an empty structure in a context having a specified name.
Definition at line 802 of file Core.cpp.
References llvm::CallingConv::C, llvm::StructType::create(), llvm::unwrap(), and llvm::wrap().
| LLVM_C_ABI LLVMTypeRef LLVMStructGetTypeAtIndex | ( | LLVMTypeRef | StructTy, |
| unsigned | i ) |
Get the type of the element at a given index in the structure.
Definition at line 831 of file Core.cpp.
References llvm::unwrap(), and llvm::wrap().
| LLVM_C_ABI void LLVMStructSetBody | ( | LLVMTypeRef | StructTy, |
| LLVMTypeRef * | ElementTypes, | ||
| unsigned | ElementCount, | ||
| LLVMBool | Packed ) |
Set the contents of a structure type.
Definition at line 815 of file Core.cpp.
References llvm::unwrap().
| LLVM_C_ABI LLVMTypeRef LLVMStructType | ( | LLVMTypeRef * | ElementTypes, |
| unsigned | ElementCount, | ||
| LLVMBool | Packed ) |
Create a new structure type in the global context.
Definition at line 796 of file Core.cpp.
References LLVMGetGlobalContext(), and LLVMStructTypeInContext().
| LLVM_C_ABI LLVMTypeRef LLVMStructTypeInContext | ( | LLVMContextRef | C, |
| LLVMTypeRef * | ElementTypes, | ||
| unsigned | ElementCount, | ||
| LLVMBool | Packed ) |
Create a new structure type in a context.
A structure is specified by a list of inner elements/types and whether these can be packed together.
Definition at line 790 of file Core.cpp.
References llvm::CallingConv::C, llvm::StructType::get(), llvm::unwrap(), and llvm::wrap().
Referenced by LLVMStructType().