GPUOcelot
Public Member Functions | Public Attributes

ir::LLVMBinaryInstruction Class Reference

A generic 2 operand instruction. More...

#include <LLVMInstruction.h>

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

List of all members.

Public Member Functions

 LLVMBinaryInstruction (Opcode op=InvalidOpcode, const Operand &_d=Operand(), const Operand &_a=Operand(), const Operand &_b=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 Instructionclone (bool copy=true) const =0
 Return a pointer to a new Instruction.

Public Attributes

Operand d
 The destination operand.
Operand a
 The first source operand.
Operand b
 The second source operand.

Detailed Description

A generic 2 operand instruction.


Constructor & Destructor Documentation

ir::LLVMBinaryInstruction::LLVMBinaryInstruction ( Opcode  op = InvalidOpcode,
const Operand _d = Operand(),
const Operand _a = Operand(),
const Operand _b = Operand() 
)

Default constructor.


Member Function Documentation

virtual Instruction* ir::LLVMBinaryInstruction::clone ( bool  copy = true) const [pure virtual]
std::string ir::LLVMBinaryInstruction::toString ( ) const [virtual]
std::string ir::LLVMBinaryInstruction::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::LLVMComparisonInstruction, ir::LLVMAdd, ir::LLVMAshr, ir::LLVMExtractelement, ir::LLVMInsertelement, ir::LLVMLshr, ir::LLVMSelect, ir::LLVMShl, and ir::LLVMShufflevector.


Member Data Documentation

The first source operand.

The second source operand.

The destination operand.


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