GPUOcelot
Classes | Public Member Functions | Static Public Member Functions

parser::PTXParser Class Reference

An implementation of the Parser interface for PTX. More...

#include <PTXParser.h>

Inheritance diagram for parser::PTXParser:
Inheritance graph
[legend]
Collaboration diagram for parser::PTXParser:
Collaboration graph
[legend]

List of all members.

Classes

class  Exception
class  State

Public Member Functions

 PTXParser ()
void parse (std::istream &input, ir::Instruction::Architecture language=ir::Instruction::PTX)
 Parse a file, generating an internal representation of the program.
ir::Module::StatementVector && statements ()

Static Public Member Functions

static std::string toString (YYLTYPE &, State &)
static ir::PTXOperand::DataType tokenToDataType (int)
static ir::PTXOperand::VectorIndex tokenToVectorIndex (int)
static ir::PTXInstruction::Vec tokenToVec (int)
static ir::PTXInstruction::Opcode stringToOpcode (std::string)
static
ir::PTXOperand::SpecialRegister 
stringToSpecial (std::string)
static ir::PTXInstruction::Modifier tokenToModifier (int)
static
ir::PTXInstruction::AddressSpace 
tokenToAddressSpace (int)
static ir::PTXStatement::Directive tokenToDirective (int)
static
ir::PTXInstruction::ReductionOperation 
tokenToReductionOperation (int)
static
ir::PTXInstruction::AtomicOperation 
tokenToAtomicOperation (int)
static ir::PTXInstruction::CmpOp tokenToCmpOp (int)
static
ir::PTXInstruction::BarrierOperation 
tokenToBarrierOp (int)
static
ir::PTXInstruction::CacheOperation 
tokenToCacheOperation (int)
static
ir::PTXInstruction::ClampOperation 
tokenToClampOperation (int)
static
ir::PTXInstruction::FormatMode 
tokenToFormatMode (int)
static
ir::PTXInstruction::SurfaceQuery 
tokenToSurfaceQuery (int)
static
ir::PTXInstruction::ColorComponent 
tokenToColorComponent (int)
static ir::PTXInstruction::BoolOp tokenToBoolOp (int)
static ir::PTXInstruction::Geometry tokenToGeometry (int)
static ir::PTXInstruction::VoteMode tokenToVoteMode (int)
static ir::PTXInstruction::Level tokenToLevel (int)
static
ir::PTXInstruction::PermuteMode 
tokenToPermuteMode (int)
static
ir::PTXInstruction::FloatingPointMode 
tokenToFloatingPointMode (int)
static
ir::PTXStatement::TextureSpace 
tokenToTextureSpace (int)
static ir::PTXOperand::DataType smallestType (long long int)
static ir::PTXOperand::DataType smallestType (long long unsigned int)

Detailed Description

An implementation of the Parser interface for PTX.


Constructor & Destructor Documentation

parser::PTXParser::PTXParser ( )

Member Function Documentation

void parser::PTXParser::parse ( std::istream &  input,
ir::Instruction::Architecture  language = ir::Instruction::PTX 
) [virtual]

Parse a file, generating an internal representation of the program.

Parameters:
inputThe stream being parsed
languageWhat is the language of the file being parsed?
Returns:
A module containing the the internal representation of the parsed program

Implements parser::Parser.

ir::PTXOperand::DataType parser::PTXParser::smallestType ( long long int  value) [static]
ir::PTXOperand::DataType parser::PTXParser::smallestType ( long long unsigned int  value) [static]
ir::Module::StatementVector && parser::PTXParser::statements ( )
ir::PTXInstruction::Opcode parser::PTXParser::stringToOpcode ( std::string  string) [static]
static ir::PTXOperand::SpecialRegister parser::PTXParser::stringToSpecial ( std::string  ) [static]
ir::PTXInstruction::AddressSpace parser::PTXParser::tokenToAddressSpace ( int  token) [static]
ir::PTXInstruction::AtomicOperation parser::PTXParser::tokenToAtomicOperation ( int  token) [static]
ir::PTXInstruction::BarrierOperation parser::PTXParser::tokenToBarrierOp ( int  token) [static]
ir::PTXInstruction::BoolOp parser::PTXParser::tokenToBoolOp ( int  token) [static]
ir::PTXInstruction::CacheOperation parser::PTXParser::tokenToCacheOperation ( int  token) [static]
ir::PTXInstruction::ClampOperation parser::PTXParser::tokenToClampOperation ( int  token) [static]
ir::PTXInstruction::CmpOp parser::PTXParser::tokenToCmpOp ( int  token) [static]
ir::PTXInstruction::ColorComponent parser::PTXParser::tokenToColorComponent ( int  token) [static]
ir::PTXOperand::DataType parser::PTXParser::tokenToDataType ( int  token) [static]
ir::PTXStatement::Directive parser::PTXParser::tokenToDirective ( int  token) [static]
ir::PTXInstruction::FloatingPointMode parser::PTXParser::tokenToFloatingPointMode ( int  token) [static]
ir::PTXInstruction::FormatMode parser::PTXParser::tokenToFormatMode ( int  token) [static]
ir::PTXInstruction::Geometry parser::PTXParser::tokenToGeometry ( int  token) [static]
ir::PTXInstruction::Level parser::PTXParser::tokenToLevel ( int  token) [static]
ir::PTXInstruction::Modifier parser::PTXParser::tokenToModifier ( int  token) [static]
ir::PTXInstruction::PermuteMode parser::PTXParser::tokenToPermuteMode ( int  token) [static]
ir::PTXInstruction::ReductionOperation parser::PTXParser::tokenToReductionOperation ( int  token) [static]
ir::PTXInstruction::SurfaceQuery parser::PTXParser::tokenToSurfaceQuery ( int  token) [static]
ir::PTXStatement::TextureSpace parser::PTXParser::tokenToTextureSpace ( int  token) [static]
ir::PTXOperand::Vec parser::PTXParser::tokenToVec ( int  token) [static]
ir::PTXOperand::VectorIndex parser::PTXParser::tokenToVectorIndex ( int  token) [static]
ir::PTXInstruction::VoteMode parser::PTXParser::tokenToVoteMode ( int  token) [static]
std::string parser::PTXParser::toString ( YYLTYPE &  location,
State state 
) [static]

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