GPUOcelot
|
A generic comparison instruction. More...
#include <LLVMInstruction.h>
Public Member Functions | |
LLVMComparisonInstruction (Opcode op=InvalidOpcode) | |
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 | |
Comparison | comparison |
Comparison operator. |
A generic comparison instruction.
ir::LLVMComparisonInstruction::LLVMComparisonInstruction | ( | Opcode | op = InvalidOpcode | ) |
Default constructor.
virtual Instruction* ir::LLVMComparisonInstruction::clone | ( | bool | copy = true | ) | const [pure virtual] |
Return a pointer to a new Instruction.
Implements ir::LLVMBinaryInstruction.
Implemented in ir::LLVMFcmp, and ir::LLVMIcmp.
std::string ir::LLVMComparisonInstruction::toString | ( | ) | const [virtual] |
Returns a string representation of the instruction.
Reimplemented from ir::LLVMBinaryInstruction.
std::string ir::LLVMComparisonInstruction::valid | ( | ) | const [virtual] |
Determines if the instruction is valid, returns an empty string if valid otherwise an error message.
Reimplemented from ir::LLVMBinaryInstruction.
Comparison operator.