GPUOcelot
Public Member Functions | Public Attributes

ir::LLVMComparisonInstruction Class Reference

A generic comparison instruction. More...

#include <LLVMInstruction.h>

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

List of all members.

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

Public Attributes

Comparison comparison
 Comparison operator.

Detailed Description

A generic comparison instruction.


Constructor & Destructor Documentation

ir::LLVMComparisonInstruction::LLVMComparisonInstruction ( Opcode  op = InvalidOpcode)

Default constructor.


Member Function Documentation

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.


Member Data Documentation

Comparison operator.


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