GPUOcelot
|
The LLVM add instruction. More...
#include <LLVMInstruction.h>
Public Member Functions | |
LLVMAdd (const Operand &d=Operand(), const Operand &a=Operand(), const Operand &b=Operand(), bool nur=false, bool nsr=false) | |
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 | |
LLVMI1 | noUnsignedWrap |
No unsigned wrap. | |
LLVMI1 | noSignedWrap |
No signed wrap. |
The LLVM add instruction.
ir::LLVMAdd::LLVMAdd | ( | const Operand & | d = Operand() , |
const Operand & | a = Operand() , |
||
const Operand & | b = Operand() , |
||
bool | nur = false , |
||
bool | nsr = false |
||
) |
The default constructor sets the opcode.
Instruction * ir::LLVMAdd::clone | ( | bool | copy = true | ) | const [virtual] |
Return a pointer to a new Instruction.
Implements ir::LLVMBinaryInstruction.
std::string ir::LLVMAdd::toString | ( | ) | const [virtual] |
Returns a string representation of the instruction.
Reimplemented from ir::LLVMBinaryInstruction.
std::string ir::LLVMAdd::valid | ( | ) | const [virtual] |
Determines if the instruction is valid, returns an empty string if valid otherwise an error message.
Reimplemented from ir::LLVMBinaryInstruction.
No signed wrap.
No unsigned wrap.