GPUOcelot
|
The LLVM malloc instruction. More...
#include <LLVMInstruction.h>
Public Member Functions | |
LLVMMalloc () | |
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. | |
Instruction * | clone (bool copy=true) const |
Return a pointer to a new Instruction. | |
Public Attributes | |
Operand | elements |
The number of elements allocated. | |
LLVMI32 | alignment |
The alignment of elements. | |
Operand | d |
The destination operand. |
The LLVM malloc instruction.
ir::LLVMMalloc::LLVMMalloc | ( | ) |
The default constructor sets the opcode.
Instruction * ir::LLVMMalloc::clone | ( | bool | copy = true | ) | const [virtual] |
Return a pointer to a new Instruction.
Implements ir::LLVMInstruction.
std::string ir::LLVMMalloc::toString | ( | ) | const [virtual] |
Returns a string representation of the instruction.
Implements ir::LLVMInstruction.
std::string ir::LLVMMalloc::valid | ( | ) | const [virtual] |
Determines if the instruction is valid, returns an empty string if valid otherwise an error message.
Implements ir::LLVMInstruction.
The alignment of elements.
Operand ir::LLVMMalloc::d |
The destination operand.
Operand ir::LLVMMalloc::elements |
The number of elements allocated.