GPUOcelot
|
Defines a prototype for each kernel and function. More...
#include <PTXKernel.h>
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 |
Defines a prototype for each kernel and function.
typedef std::vector<ir::Parameter> ir::PTXKernel::Prototype::ArgumentVector |
ir::PTXKernel::Prototype::Prototype | ( | ) |
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] |
arguments for function
indicates .entry or .func
std::string ir::PTXKernel::Prototype::identifier |
name of function
indicates linking directive of function
set of return arguments for function