GPUOcelot
Public Types | Public Member Functions | Public Attributes

ir::LLVMInstruction::Operand Class Reference

A class for a basic LLVM Operand. More...

#include <LLVMInstruction.h>

Inheritance diagram for ir::LLVMInstruction::Operand:
Inheritance graph
[legend]
Collaboration diagram for ir::LLVMInstruction::Operand:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector< ValueValueVector
 A vector of values for a constant vector type.

Public Member Functions

 Operand (const std::string &n=std::string(), const Type &t=Type())
 The constructor sets the type and pointer flag.
 Operand (LLVMI64 value)
 The constructor sets the type and pointer flag.
 Operand (LLVMI32 value)
 The constructor sets the type and pointer flag.
 Operand (LLVMF32 value)
 The constructor sets the type and pointer flag.
 Operand (LLVMF64 value)
 The constructor sets the type and pointer flag.
 Operand (LLVMI1 value)
 The constructor sets the type and pointer flag.
bool valid () const
 Is this a valid operand ?
std::string toString () const
 Return a parsable represention of the Operand.

Public Attributes

std::string name
 The name of the operand.
bool constant
 Is this a variable or a constant.
Type type
 The type of the operand.
union {
   LLVMI1   i1
   LLVMI8   i8
   LLVMI16   i16
   LLVMI32   i32
   LLVMI64   i64
   LLVMI128   i128
   LLVMF32   f32
   LLVMF64   f64
   LLVMF128   f128
}; 
ValueVector values
 If this is a constant vector type, the values.

Detailed Description

A class for a basic LLVM Operand.


Member Typedef Documentation

A vector of values for a constant vector type.


Constructor & Destructor Documentation

ir::LLVMInstruction::Operand::Operand ( const std::string &  n = std::string(),
const Type t = Type() 
)

The constructor sets the type and pointer flag.

ir::LLVMInstruction::Operand::Operand ( LLVMI64  value)

The constructor sets the type and pointer flag.

ir::LLVMInstruction::Operand::Operand ( LLVMI32  value)

The constructor sets the type and pointer flag.

ir::LLVMInstruction::Operand::Operand ( LLVMF32  value)

The constructor sets the type and pointer flag.

ir::LLVMInstruction::Operand::Operand ( LLVMF64  value)

The constructor sets the type and pointer flag.

ir::LLVMInstruction::Operand::Operand ( LLVMI1  value)

The constructor sets the type and pointer flag.


Member Function Documentation

std::string ir::LLVMInstruction::Operand::toString ( ) const

Return a parsable represention of the Operand.

bool ir::LLVMInstruction::Operand::valid ( ) const

Is this a valid operand ?


Member Data Documentation

union { ... }

Is this a variable or a constant.

The name of the operand.

The type of the operand.

If this is a constant vector type, the values.


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