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

ir::PTXStatement Class Reference

#include <PTXStatement.h>

Collaboration diagram for ir::PTXStatement:
Collaboration graph
[legend]

List of all members.

Classes

union  Data
class  StaticArray
class  Symbol

Public Types

enum  Directive {
  Instr, AddressSize, CallTargets, Const,
  Entry, File, Func, FunctionPrototype,
  Global, Label, Local, Loc,
  Maxnreg, Maxntid, Maxnctapersm, Minnctapersm,
  Param, Pragma, Reg, Reqntid,
  Samplerref, Section, Shared, Sreg,
  Surfref, Target, Texref, Version,
  StartScope, EndScope, StartParam, EndParam,
  FunctionName, EndFuncDec, Directive_invalid
}
enum  Attribute { Visible, Extern, NoAttribute }
enum  TextureSpace { GlobalSpace, ParameterSpace, RegisterSpace, InvalidSpace }
typedef std::vector< unsigned int > ArrayStrideVector
typedef std::vector< DataArrayVector
typedef std::vector< std::string > StringVector
typedef std::vector
< PTXOperand::DataType
TypeVector
typedef std::vector< SymbolSymbolVector

Public Member Functions

 PTXStatement (Directive directive=Directive_invalid)
 ~PTXStatement ()
unsigned int bytes () const
unsigned int initializedBytes () const
unsigned int elements () const
unsigned int accessAlignment () const
void copy (void *dest) const
 Copy all of the initial data into a packed array.
std::string toString () const

Static Public Member Functions

static std::string toString (TextureSpace)
static std::string toString (Attribute)
static std::string toString (Data, PTXOperand::DataType)
static std::string toString (Directive directive)

Public Attributes

Directive directive
PTXInstruction instruction
PTXOperand::DataType type
StaticArray array
std::string name
union {
   unsigned int   sourceFile
   int   alignment
   TextureSpace   space
   unsigned int   addressSize
}; 
std::string section_type
std::string section_name
union {
   unsigned int   sourceLine
   int   major
}; 
union {
   unsigned int   sourceColumn
   int   minor
}; 
unsigned int line
unsigned int column
Attribute attribute
StringVector targets
TypeVector returnTypes
TypeVector argumentTypes
bool isReturnArgument
SymbolVector symbols

Member Typedef Documentation

typedef std::vector< unsigned int > ir::PTXStatement::ArrayStrideVector
typedef std::vector< Data > ir::PTXStatement::ArrayVector
typedef std::vector< std::string > ir::PTXStatement::StringVector
typedef std::vector< Symbol > ir::PTXStatement::SymbolVector

Member Enumeration Documentation

Attributes for statements

Enumerator:
Visible 
Extern 
NoAttribute 

PTX directive types

Enumerator:
Instr 
AddressSize 

indicates this is an actual instruction

CallTargets 
Const 
Entry 
File 
Func 
FunctionPrototype 
Global 
Label 
Local 
Loc 
Maxnreg 
Maxntid 
Maxnctapersm 
Minnctapersm 
Param 
Pragma 
Reg 
Reqntid 
Samplerref 
Section 
Shared 
Sreg 
Surfref 
Target 
Texref 
Version 
StartScope 
EndScope 

synthetic directive to indicate start of entry

StartParam 

synthetic to indicate the end of an entry

EndParam 

synthetic to indicate start of a parameter list

FunctionName 

synthetic to indicate end of a parameter list

EndFuncDec 

synthetic to indicate the function name

Directive_invalid 

synthetic ending a function declaration

Enumerator:
GlobalSpace 
ParameterSpace 
RegisterSpace 
InvalidSpace 

Constructor & Destructor Documentation

ir::PTXStatement::PTXStatement ( Directive  directive = Directive_invalid)
ir::PTXStatement::~PTXStatement ( )

Member Function Documentation

unsigned int ir::PTXStatement::accessAlignment ( ) const
unsigned int ir::PTXStatement::bytes ( ) const
void ir::PTXStatement::copy ( void *  dest) const

Copy all of the initial data into a packed array.

unsigned int ir::PTXStatement::elements ( ) const
unsigned int ir::PTXStatement::initializedBytes ( ) const
std::string ir::PTXStatement::toString ( Data  d,
PTXOperand::DataType  t 
) [static]
std::string ir::PTXStatement::toString ( Attribute  attribute) [static]
std::string ir::PTXStatement::toString ( ) const
std::string ir::PTXStatement::toString ( Directive  directive) [static]
std::string ir::PTXStatement::toString ( TextureSpace  space) [static]

Member Data Documentation

union { ... }
union { ... }
union { ... }

Indicates type of statement

unsigned int ir::PTXStatement::line

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