GPUOcelot
Classes | Public Types | Public Member Functions | Public Attributes

ir::LLVMPhi Class Reference

The LLVM phi instruction. More...

#include <LLVMInstruction.h>

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

List of all members.

Classes

class  Node
 Class for a combination of an operand and a label. More...

Public Types

typedef std::vector< NodeNodeVector
 A vector of Nodes.

Public Member Functions

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

Public Attributes

Operand d
 The destination operand.
NodeVector nodes
 The list of Phi Nodes.

Detailed Description

The LLVM phi instruction.


Member Typedef Documentation

typedef std::vector< Node > ir::LLVMPhi::NodeVector

A vector of Nodes.


Constructor & Destructor Documentation

ir::LLVMPhi::LLVMPhi ( )

The default constructor sets the opcode.


Member Function Documentation

Instruction * ir::LLVMPhi::clone ( bool  copy = true) const [virtual]

Return a pointer to a new Instruction.

Implements ir::LLVMInstruction.

std::string ir::LLVMPhi::toString ( ) const [virtual]

Returns a string representation of the instruction.

Implements ir::LLVMInstruction.

std::string ir::LLVMPhi::valid ( ) const [virtual]

Determines if the instruction is valid, returns an empty string if valid otherwise an error message.

Implements ir::LLVMInstruction.


Member Data Documentation

Operand ir::LLVMPhi::d

The destination operand.

The list of Phi Nodes.


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