GPUOcelot
Classes | Functions

translator Namespace Reference

A namespace for IR to IR translators. More...

Classes

class  PTXToILTranslator
 A translator from PTX to IL. More...
class  PTXToLLVMTranslator
 A translator from PTX to LLVM. More...
class  Translator
 An interface for a translator from one ISA to another. More...

Functions

ir::PTXInstructiongetLastIns (const CT::Node *node)
 returns the last instruction in a control tree node
bool _isPowerOf2 (unsigned int n)
 returns true if n is a power of 2
int _Log2 (unsigned int n)
 returns the log base 2 of a power of 2 number

Detailed Description

A namespace for IR to IR translators.


Function Documentation

bool translator::_isPowerOf2 ( unsigned int  n) [inline]

returns true if n is a power of 2

int translator::_Log2 ( unsigned int  n) [inline]

returns the log base 2 of a power of 2 number

ir::PTXInstruction * translator::getLastIns ( const CT::Node node)

returns the last instruction in a control tree node

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines