GPUOcelot
|
A class for a basic LLVM Operand. More...
#include <LLVMInstruction.h>
Public Types | |
typedef std::vector< Value > | ValueVector |
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. |
A class for a basic LLVM Operand.
typedef std::vector< Value > ir::LLVMInstruction::Operand::ValueVector |
A vector of values for a constant vector type.
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.
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 ?
union { ... } |
Is this a variable or a constant.
std::string ir::LLVMInstruction::Operand::name |
The name of the operand.
The type of the operand.
If this is a constant vector type, the values.