LLVM  6.0.0svn
Functions
Sequential Types

Sequential types represents "arrays" of types. More...

Collaboration diagram for Sequential Types:

Functions

LLVMTypeRef LLVMGetElementType (LLVMTypeRef Ty)
 Obtain the type of elements within a sequential type. More...
 
void LLVMGetSubtypes (LLVMTypeRef Tp, LLVMTypeRef *Arr)
 Returns type's subtypes. More...
 
unsigned LLVMGetNumContainedTypes (LLVMTypeRef Tp)
 Return the number of types in the derived type. More...
 
LLVMTypeRef LLVMArrayType (LLVMTypeRef ElementType, unsigned ElementCount)
 Create a fixed size array type that refers to a specific type. More...
 
unsigned LLVMGetArrayLength (LLVMTypeRef ArrayTy)
 Obtain the length of an array type. More...
 
LLVMTypeRef LLVMPointerType (LLVMTypeRef ElementType, unsigned AddressSpace)
 Create a pointer type that points to a defined type. More...
 
unsigned LLVMGetPointerAddressSpace (LLVMTypeRef PointerTy)
 Obtain the address space of a pointer type. More...
 
LLVMTypeRef LLVMVectorType (LLVMTypeRef ElementType, unsigned ElementCount)
 Create a vector type that contains a defined type and has a specific number of elements. More...
 
unsigned LLVMGetVectorSize (LLVMTypeRef VectorTy)
 Obtain the number of elements in a vector type. More...
 

Detailed Description

Sequential types represents "arrays" of types.

This is a super class for array, vector, and pointer types.

Function Documentation

◆ LLVMArrayType()

LLVMTypeRef LLVMArrayType ( LLVMTypeRef  ElementType,
unsigned  ElementCount 
)

Create a fixed size array type that refers to a specific type.

The created type will exist in the context that its element type exists in.

See also
llvm::ArrayType::get()

Definition at line 577 of file Core.cpp.

References llvm::ArrayType::get(), llvm::unwrap(), and llvm::wrap().

◆ LLVMGetArrayLength()

unsigned LLVMGetArrayLength ( LLVMTypeRef  ArrayTy)

Obtain the length of an array type.

This only works on types that represent arrays.

See also
llvm::ArrayType::getNumElements()

Definition at line 600 of file Core.cpp.

◆ LLVMGetElementType()

LLVMTypeRef LLVMGetElementType ( LLVMTypeRef  Ty)

Obtain the type of elements within a sequential type.

This works on array, vector, and pointer types.

See also
llvm::SequentialType::getElementType()

Definition at line 589 of file Core.cpp.

References llvm::wrap().

◆ LLVMGetNumContainedTypes()

unsigned LLVMGetNumContainedTypes ( LLVMTypeRef  Tp)

Return the number of types in the derived type.

See also
llvm::Type::getNumContainedTypes()

Definition at line 596 of file Core.cpp.

References llvm::unwrap().

◆ LLVMGetPointerAddressSpace()

unsigned LLVMGetPointerAddressSpace ( LLVMTypeRef  PointerTy)

Obtain the address space of a pointer type.

This only works on types that represent pointers.

See also
llvm::PointerType::getAddressSpace()

Definition at line 604 of file Core.cpp.

◆ LLVMGetSubtypes()

void LLVMGetSubtypes ( LLVMTypeRef  Tp,
LLVMTypeRef Arr 
)

Returns type's subtypes.

See also
llvm::Type::subtypes()

Definition at line 569 of file Core.cpp.

References llvm::unwrap(), and llvm::wrap().

◆ LLVMGetVectorSize()

unsigned LLVMGetVectorSize ( LLVMTypeRef  VectorTy)

Obtain the number of elements in a vector type.

This only works on types that represent vectors.

See also
llvm::VectorType::getNumElements()

Definition at line 608 of file Core.cpp.

◆ LLVMPointerType()

LLVMTypeRef LLVMPointerType ( LLVMTypeRef  ElementType,
unsigned  AddressSpace 
)

Create a pointer type that points to a defined type.

The created type will exist in the context that its pointee type exists in.

See also
llvm::PointerType::get()

Definition at line 581 of file Core.cpp.

References llvm::PointerType::get(), llvm::unwrap(), and llvm::wrap().

◆ LLVMVectorType()

LLVMTypeRef LLVMVectorType ( LLVMTypeRef  ElementType,
unsigned  ElementCount 
)

Create a vector type that contains a defined type and has a specific number of elements.

The created type will exist in the context thats its element type exists in.

See also
llvm::VectorType::get()

Definition at line 585 of file Core.cpp.

References llvm::VectorType::get(), llvm::unwrap(), and llvm::wrap().