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

ir::PTXKernel::Prototype Class Reference

Defines a prototype for each kernel and function. More...

#include <PTXKernel.h>

List of all members.

Public Types

enum  CallType { Entry, Func, CallType_invalid }
enum  LinkingDirective { Extern, Visible, LinkingDirective_invalid }
typedef std::vector
< ir::Parameter
ArgumentVector

Public Member Functions

 Prototype ()
std::string toString () const
 emits a PTX form of the prototype
std::string getMangledName () const
 emits a mangled form of the function prototype
void clear ()

Static Public Member Functions

static std::string toString (const LinkingDirective ld)
static std::string toString (const CallType ct)

Public Attributes

CallType callType
 indicates .entry or .func
LinkingDirective linkingDirective
 indicates linking directive of function
ArgumentVector returnArguments
 set of return arguments for function
std::string identifier
 name of function
ArgumentVector arguments
 arguments for function

Detailed Description

Defines a prototype for each kernel and function.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
Entry 
Func 
CallType_invalid 
Enumerator:
Extern 

externally-defined function

Visible 

visible outside this module

LinkingDirective_invalid 

Constructor & Destructor Documentation

ir::PTXKernel::Prototype::Prototype ( )

Member Function Documentation

void ir::PTXKernel::Prototype::clear ( )
std::string ir::PTXKernel::Prototype::getMangledName ( ) const

emits a mangled form of the function prototype

emits a mangled form of the function prototype that can be used to identify the function

std::string ir::PTXKernel::Prototype::toString ( const CallType  ct) [static]
std::string ir::PTXKernel::Prototype::toString ( ) const

emits a PTX form of the prototype

std::string ir::PTXKernel::Prototype::toString ( const LinkingDirective  ld) [static]

Member Data Documentation

arguments for function

indicates .entry or .func

name of function

indicates linking directive of function

set of return arguments for function


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