LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
Sequential Types
Collaboration diagram for Sequential Types:

Functions

LLVMTypeRef LLVMGetElementType (LLVMTypeRef Ty)
 
LLVMTypeRef LLVMArrayType (LLVMTypeRef ElementType, unsigned ElementCount)
 
unsigned LLVMGetArrayLength (LLVMTypeRef ArrayTy)
 
LLVMTypeRef LLVMPointerType (LLVMTypeRef ElementType, unsigned AddressSpace)
 
unsigned LLVMGetPointerAddressSpace (LLVMTypeRef PointerTy)
 
LLVMTypeRef LLVMVectorType (LLVMTypeRef ElementType, unsigned ElementCount)
 
unsigned LLVMGetVectorSize (LLVMTypeRef VectorTy)
 

Detailed Description

Sequential types represents "arrays" of types. This is a super class for array, vector, and pointer types.

Function Documentation

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 413 of file Core.cpp.

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

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 429 of file Core.cpp.

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 425 of file Core.cpp.

References llvm::wrap().

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 433 of file Core.cpp.

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 437 of file Core.cpp.

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 417 of file Core.cpp.

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

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 421 of file Core.cpp.

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