GPUOcelot
|
A generic 1 operand instruction. More...
#include <LLVMInstruction.h>
Public Member Functions | |
LLVMUnaryInstruction (Opcode op=InvalidOpcode, const Operand &d=Operand(), const Operand &a=Operand()) | |
Default constructor. | |
virtual std::string | toString () const |
Returns a string representation of the instruction. | |
virtual std::string | valid () const |
Determines if the instruction is valid, returns an empty string if valid otherwise an error message. | |
virtual Instruction * | clone (bool copy=true) const =0 |
Return a pointer to a new Instruction. | |
Public Attributes | |
Operand | d |
The destination operand. | |
Operand | a |
The source operand. |
A generic 1 operand instruction.
ir::LLVMUnaryInstruction::LLVMUnaryInstruction | ( | Opcode | op = InvalidOpcode , |
const Operand & | d = Operand() , |
||
const Operand & | a = Operand() |
||
) |
Default constructor.
virtual Instruction* ir::LLVMUnaryInstruction::clone | ( | bool | copy = true | ) | const [pure virtual] |
Return a pointer to a new Instruction.
Implements ir::LLVMInstruction.
Implemented in ir::LLVMConversionInstruction, ir::LLVMBitcast, ir::LLVMFpext, ir::LLVMFptosi, ir::LLVMFptoui, ir::LLVMFptrunc, ir::LLVMInttoptr, ir::LLVMLoad, ir::LLVMPtrtoint, ir::LLVMSext, ir::LLVMSitofp, ir::LLVMStore, ir::LLVMTrunc, ir::LLVMUitofp, ir::LLVMVaArg, and ir::LLVMZext.
std::string ir::LLVMUnaryInstruction::toString | ( | ) | const [virtual] |
Returns a string representation of the instruction.
Implements ir::LLVMInstruction.
Reimplemented in ir::LLVMConversionInstruction, ir::LLVMLoad, ir::LLVMStore, and ir::LLVMVaArg.
std::string ir::LLVMUnaryInstruction::valid | ( | ) | const [virtual] |
Determines if the instruction is valid, returns an empty string if valid otherwise an error message.
Implements ir::LLVMInstruction.
Reimplemented in ir::LLVMConversionInstruction, ir::LLVMLoad, ir::LLVMStore, and ir::LLVMVaArg.
Operand ir::LLVMUnaryInstruction::a |
The source operand.
Operand ir::LLVMUnaryInstruction::d |
The destination operand.