GPUOcelot
Public Member Functions | Public Attributes

ir::LLVMAlloca Class Reference

The LLVM alloca instruction. More...

#include <LLVMInstruction.h>

Inheritance diagram for ir::LLVMAlloca:
Inheritance graph
[legend]
Collaboration diagram for ir::LLVMAlloca:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLVMAlloca (LLVMI32 e=1, LLVMI32 a=1)
 The default constructor sets the opcode.
std::string toString () const
 Returns a string representation of the instruction.
std::string valid () const
 Determines if the instruction is valid, returns an empty string if valid otherwise an error message.
Instructionclone (bool copy=true) const
 Return a pointer to a new Instruction.

Public Attributes

LLVMI32 elements
 The number of elements allocated.
LLVMI32 alignment
 The alignment of elements.
Operand d
 The destination operand.

Detailed Description

The LLVM alloca instruction.


Constructor & Destructor Documentation

ir::LLVMAlloca::LLVMAlloca ( LLVMI32  e = 1,
LLVMI32  a = 1 
)

The default constructor sets the opcode.


Member Function Documentation

Instruction * ir::LLVMAlloca::clone ( bool  copy = true) const [virtual]

Return a pointer to a new Instruction.

Implements ir::LLVMInstruction.

std::string ir::LLVMAlloca::toString ( ) const [virtual]

Returns a string representation of the instruction.

Implements ir::LLVMInstruction.

std::string ir::LLVMAlloca::valid ( ) const [virtual]

Determines if the instruction is valid, returns an empty string if valid otherwise an error message.

Implements ir::LLVMInstruction.


Member Data Documentation

The alignment of elements.

The destination operand.

The number of elements allocated.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines