GPUOcelot
Public Member Functions | Public Attributes

ir::LLVMUnaryInstruction Class Reference

A generic 1 operand instruction. More...

#include <LLVMInstruction.h>

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

List of all members.

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 Instructionclone (bool copy=true) const =0
 Return a pointer to a new Instruction.

Public Attributes

Operand d
 The destination operand.
Operand a
 The source operand.

Detailed Description

A generic 1 operand instruction.


Constructor & Destructor Documentation

ir::LLVMUnaryInstruction::LLVMUnaryInstruction ( Opcode  op = InvalidOpcode,
const Operand &  d = Operand(),
const Operand &  a = Operand() 
)

Default constructor.


Member Function Documentation

virtual Instruction* ir::LLVMUnaryInstruction::clone ( bool  copy = true) const [pure virtual]
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.


Member Data Documentation

The 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