GPUOcelot
Public Member Functions | Public Attributes

ir::Local Class Reference

A class to represent a variable with local scope. More...

#include <Local.h>

List of all members.

Public Member Functions

 Local (const PTXStatement &statement)
 Local ()
unsigned int getSize () const
unsigned int getElementSize () const
unsigned int getAlignment () const
 Return the alignment restriction of the local.
PTXStatement statement () const
 Return a PTX statement representing the local.
std::string toString () const
 Return a parsable string representing the local.

Public Attributes

PTXInstruction::AddressSpace space
 The address space of the local.
PTXOperand::DataType type
std::string name
unsigned int alignment
 Alignment attribute.
PTXInstruction::Vec vector
 Vector attribute.
unsigned int elements
 The number of elements if this is an array.
PTXStatement::Attribute attribute
 Attribute.
size_t offset
 Where this variable is allocated in memory.

Detailed Description

A class to represent a variable with local scope.


Constructor & Destructor Documentation

ir::Local::Local ( const PTXStatement statement) [explicit]
ir::Local::Local ( )

Member Function Documentation

unsigned int ir::Local::getAlignment ( ) const

Return the alignment restriction of the local.

unsigned int ir::Local::getElementSize ( ) const

Returns the size of a single element of a local

unsigned int ir::Local::getSize ( ) const

Returns the size of a local

PTXStatement ir::Local::statement ( ) const

Return a PTX statement representing the local.

std::string ir::Local::toString ( ) const

Return a parsable string representing the local.


Member Data Documentation

unsigned int ir::Local::alignment

Alignment attribute.

Attribute.

unsigned int ir::Local::elements

The number of elements if this is an array.

std::string ir::Local::name

Name of parameter

Where this variable is allocated in memory.

The address space of the local.

Data type of parameter

Vector attribute.


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