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

translator::PTXToLLVMTranslator Class Reference

A translator from PTX to LLVM. More...

#include <PTXToLLVMTranslator.h>

Inheritance diagram for translator::PTXToLLVMTranslator:
Inheritance graph
[legend]
Collaboration diagram for translator::PTXToLLVMTranslator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PTXToLLVMTranslator (OptimizationLevel l=NoOptimization, const ir::ExternalFunctionSet *s=0)
 ~PTXToLLVMTranslator ()
ir::Kerneltranslate (const ir::Kernel *i)
 Translate a kernel from the source ISA to the destination ISA.
ir::KerneltranslatedKernel () const

Protected Types

typedef std::vector
< analysis::DataflowGraph::Register
RegisterVector
typedef std::vector< std::string > StringVector
typedef std::unordered_set
< std::string > 
StringSet

Protected Member Functions

void _debug (const analysis::DataflowGraph::Block &b)
void _debug (const analysis::DataflowGraph::Instruction &i)
void _reportReads (const analysis::DataflowGraph::Instruction &i)
void _reportWrites (const analysis::DataflowGraph::Instruction &i)
void _check (ir::PTXInstruction::AddressSpace space, const ir::LLVMInstruction::Operand &address, unsigned int bytes, bool isArgument, bool isGlobalLocal, unsigned int statement)
void _addMemoryCheckingDeclarations ()
void _insertDebugSymbols ()
void _yield (unsigned int type, const ir::LLVMInstruction::Operand &continuation=ir::LLVMInstruction::Operand())
ir::LLVMInstruction::Operand _translate (const ir::PTXOperand &o)
void _swapAllExceptName (ir::LLVMInstruction::Operand &o, const ir::PTXOperand &i)
void _translateInstructions ()
void _newBlock (const std::string &name)
void _translate (const analysis::DataflowGraph::Instruction &i, const analysis::DataflowGraph::Block &block)
void _translate (const ir::PTXInstruction &i, const analysis::DataflowGraph::Block &block)
void _translateAbs (const ir::PTXInstruction &i)
void _translateAdd (const ir::PTXInstruction &i)
void _translateAddC (const ir::PTXInstruction &i)
void _translateAnd (const ir::PTXInstruction &i)
void _translateAtom (const ir::PTXInstruction &i)
void _translateBar (const ir::PTXInstruction &i)
void _translateBfi (const ir::PTXInstruction &i)
void _translateBfind (const ir::PTXInstruction &i)
void _translateBra (const ir::PTXInstruction &i, const analysis::DataflowGraph::Block &block)
void _translateBrev (const ir::PTXInstruction &i)
void _translateBrkpt (const ir::PTXInstruction &i)
void _translateCall (const ir::PTXInstruction &i, const analysis::DataflowGraph::Block &block)
void _translateClz (const ir::PTXInstruction &i)
void _translateCNot (const ir::PTXInstruction &i)
void _translateCopySign (const ir::PTXInstruction &i)
void _translateCos (const ir::PTXInstruction &i)
void _translateCvt (const ir::PTXInstruction &i)
void _translateCvta (const ir::PTXInstruction &i)
void _translateDiv (const ir::PTXInstruction &i)
void _translateEx2 (const ir::PTXInstruction &i)
void _translateExit (const ir::PTXInstruction &i)
void _translateIsspacep (const ir::PTXInstruction &i)
void _translateLd (const ir::PTXInstruction &i)
void _translateLdu (const ir::PTXInstruction &i)
void _translateLg2 (const ir::PTXInstruction &i)
void _translateMad24 (const ir::PTXInstruction &i)
void _translateMad (const ir::PTXInstruction &i)
void _translateMax (const ir::PTXInstruction &i)
void _translateMembar (const ir::PTXInstruction &i)
void _translateMin (const ir::PTXInstruction &i)
void _translateMov (const ir::PTXInstruction &i)
void _translateMul24 (const ir::PTXInstruction &i)
void _translateMul (const ir::PTXInstruction &i)
void _translateNeg (const ir::PTXInstruction &i)
void _translateNot (const ir::PTXInstruction &i)
void _translateOr (const ir::PTXInstruction &i)
void _translatePmevent (const ir::PTXInstruction &i)
void _translatePopc (const ir::PTXInstruction &i)
void _translatePrmt (const ir::PTXInstruction &i)
void _translateRcp (const ir::PTXInstruction &i)
void _translateRed (const ir::PTXInstruction &i)
void _translateRem (const ir::PTXInstruction &i)
void _translateRet (const ir::PTXInstruction &i, const analysis::DataflowGraph::Block &block)
void _translateRsqrt (const ir::PTXInstruction &i)
void _translateSad (const ir::PTXInstruction &i)
void _translateSelP (const ir::PTXInstruction &i)
void _translateSet (const ir::PTXInstruction &i)
void _translateSetP (const ir::PTXInstruction &i)
void _translateShl (const ir::PTXInstruction &i)
void _translateShr (const ir::PTXInstruction &i)
void _translateSin (const ir::PTXInstruction &i)
void _translateSlCt (const ir::PTXInstruction &i)
void _translateSqrt (const ir::PTXInstruction &i)
void _translateSt (const ir::PTXInstruction &i)
void _translateSub (const ir::PTXInstruction &i)
void _translateSubC (const ir::PTXInstruction &i)
void _translateSuld (const ir::PTXInstruction &i)
void _translateSuq (const ir::PTXInstruction &i)
void _translateSured (const ir::PTXInstruction &i)
void _translateSust (const ir::PTXInstruction &i)
void _translateTestP (const ir::PTXInstruction &i)
void _translateTex (const ir::PTXInstruction &i)
void _translateTxq (const ir::PTXInstruction &i)
void _translateTrap (const ir::PTXInstruction &i)
void _translateVote (const ir::PTXInstruction &i)
void _translateXor (const ir::PTXInstruction &i)
void _bitcast (const ir::PTXInstruction &i)
void _bitcast (const ir::PTXOperand &d, const ir::PTXOperand &s)
void _bitcast (const ir::LLVMInstruction::Operand &d, const ir::LLVMInstruction::Operand &s, bool isSigned=false)
void _convert (const ir::LLVMInstruction::Operand &d, ir::PTXOperand::DataType dType, const ir::LLVMInstruction::Operand &s, ir::PTXOperand::DataType sType, int modifier=0)
void _flushToZero (const ir::LLVMInstruction::Operand &d, const ir::LLVMInstruction::Operand &a)
void _saturate (const ir::LLVMInstruction::Operand &d, const ir::LLVMInstruction::Operand &a)
void _floatToIntSaturate (const ir::LLVMInstruction::Operand &d, const ir::LLVMInstruction::Operand &ftoint, const ir::LLVMInstruction::Operand &f, bool isSigned)
void _trunc (const ir::LLVMInstruction::Operand &d, const ir::LLVMInstruction::Operand &a)
void _nearbyint (const ir::LLVMInstruction::Operand &d, const ir::LLVMInstruction::Operand &a)
void _floor (const ir::LLVMInstruction::Operand &d, const ir::LLVMInstruction::Operand &a)
void _ceil (const ir::LLVMInstruction::Operand &d, const ir::LLVMInstruction::Operand &a)
std::string _tempRegister ()
std::string _loadSpecialRegister (ir::PTXOperand::SpecialRegister s, ir::PTXOperand::VectorIndex index)
ir::LLVMInstruction::Operand _getMemoryBasePointer (ir::PTXInstruction::AddressSpace space, bool isGlobalLocal, bool isArgument)
ir::LLVMInstruction::Operand _getMemoryExtent (ir::PTXInstruction::AddressSpace space)
ir::LLVMInstruction::Operand _getAddressableVariablePointer (ir::PTXInstruction::AddressSpace space, const ir::PTXOperand &o)
ir::LLVMInstruction::Operand _getAddressableGlobalPointer (const ir::PTXOperand &o)
ir::LLVMInstruction::Operand _getLoadOrStorePointer (const ir::PTXOperand &o, ir::PTXInstruction::AddressSpace space, ir::LLVMInstruction::DataType type, unsigned int vector)
ir::LLVMInstruction::Operand _destination (const ir::PTXInstruction &i, bool pd=false)
ir::LLVMInstruction::Operand _destinationCC (const ir::PTXInstruction &i)
ir::LLVMInstruction::Operand _conditionCodeRegister (const ir::PTXOperand &op)
void _add (const ir::LLVMInstruction &i)
void _initializeRegisters ()
void _addStackAllocations ()
void _addTextureCalls ()
void _addSurfaceCalls ()
void _addQueryCalls ()
void _addAtomicCalls ()
void _addMathCalls ()
void _addLLVMIntrinsics ()
void _addUtilityCalls ()
void _addKernelPrefix ()
void _addGlobalDeclarations ()
void _addExternalFunctionDeclarations ()
void _addKernelSuffix ()

Static Protected Member Functions

static
ir::LLVMInstruction::DataType 
_translate (ir::PTXOperand::DataType type)
static void _doubleWidth (ir::LLVMInstruction::DataType &v)
static
ir::LLVMInstruction::Comparison 
_translate (ir::PTXInstruction::CmpOp, bool isInt, bool isSigned)
static ir::LLVMInstruction::Type _getCtaContextType ()
static ir::LLVMInstruction::Operand _context ()

Protected Attributes

ir::LLVMKernel_llvmKernel
unsigned int _tempRegisterCount
unsigned int _tempCCRegisterCount
unsigned int _tempBlockCount
bool _usesTextures
StringSet _usedExternalCalls
RegisterVector _uninitialized
const ir::PTXKernel_ptx
analysis::DataflowGraph_dfg
const ir::ExternalFunctionSet_externals

Detailed Description

A translator from PTX to LLVM.


Member Typedef Documentation

typedef std::unordered_set< std::string > translator::PTXToLLVMTranslator::StringSet [protected]
typedef std::vector< std::string > translator::PTXToLLVMTranslator::StringVector [protected]

Constructor & Destructor Documentation

translator::PTXToLLVMTranslator::PTXToLLVMTranslator ( OptimizationLevel  l = NoOptimization,
const ir::ExternalFunctionSet s = 0 
)
translator::PTXToLLVMTranslator::~PTXToLLVMTranslator ( )

Member Function Documentation

void translator::PTXToLLVMTranslator::_add ( const ir::LLVMInstruction i) [protected]
void translator::PTXToLLVMTranslator::_addAtomicCalls ( ) [protected]
void translator::PTXToLLVMTranslator::_addExternalFunctionDeclarations ( ) [protected]
void translator::PTXToLLVMTranslator::_addGlobalDeclarations ( ) [protected]
void translator::PTXToLLVMTranslator::_addKernelPrefix ( ) [protected]
void translator::PTXToLLVMTranslator::_addKernelSuffix ( ) [protected]
void translator::PTXToLLVMTranslator::_addLLVMIntrinsics ( ) [protected]
void translator::PTXToLLVMTranslator::_addMathCalls ( ) [protected]
void translator::PTXToLLVMTranslator::_addMemoryCheckingDeclarations ( ) [protected]
void translator::PTXToLLVMTranslator::_addQueryCalls ( ) [protected]
void translator::PTXToLLVMTranslator::_addStackAllocations ( ) [protected]
void translator::PTXToLLVMTranslator::_addSurfaceCalls ( ) [protected]
void translator::PTXToLLVMTranslator::_addTextureCalls ( ) [protected]
void translator::PTXToLLVMTranslator::_addUtilityCalls ( ) [protected]
void translator::PTXToLLVMTranslator::_bitcast ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_bitcast ( const ir::PTXOperand d,
const ir::PTXOperand s 
) [protected]
void translator::PTXToLLVMTranslator::_bitcast ( const ir::LLVMInstruction::Operand d,
const ir::LLVMInstruction::Operand s,
bool  isSigned = false 
) [protected]
void translator::PTXToLLVMTranslator::_ceil ( const ir::LLVMInstruction::Operand d,
const ir::LLVMInstruction::Operand a 
) [protected]
void translator::PTXToLLVMTranslator::_check ( ir::PTXInstruction::AddressSpace  space,
const ir::LLVMInstruction::Operand address,
unsigned int  bytes,
bool  isArgument,
bool  isGlobalLocal,
unsigned int  statement 
) [protected]
ir::LLVMInstruction::Operand translator::PTXToLLVMTranslator::_conditionCodeRegister ( const ir::PTXOperand op) [protected]
ir::LLVMInstruction::Operand translator::PTXToLLVMTranslator::_context ( ) [static, protected]
void translator::PTXToLLVMTranslator::_convert ( const ir::LLVMInstruction::Operand d,
ir::PTXOperand::DataType  dType,
const ir::LLVMInstruction::Operand s,
ir::PTXOperand::DataType  sType,
int  modifier = 0 
) [protected]
void translator::PTXToLLVMTranslator::_debug ( const analysis::DataflowGraph::Instruction i) [protected]
void translator::PTXToLLVMTranslator::_debug ( const analysis::DataflowGraph::Block b) [protected]
ir::LLVMInstruction::Operand translator::PTXToLLVMTranslator::_destination ( const ir::PTXInstruction i,
bool  pd = false 
) [protected]
ir::LLVMInstruction::Operand translator::PTXToLLVMTranslator::_destinationCC ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_doubleWidth ( ir::LLVMInstruction::DataType v) [static, protected]
void translator::PTXToLLVMTranslator::_floatToIntSaturate ( const ir::LLVMInstruction::Operand d,
const ir::LLVMInstruction::Operand ftoint,
const ir::LLVMInstruction::Operand f,
bool  isSigned 
) [protected]
void translator::PTXToLLVMTranslator::_floor ( const ir::LLVMInstruction::Operand d,
const ir::LLVMInstruction::Operand a 
) [protected]
void translator::PTXToLLVMTranslator::_flushToZero ( const ir::LLVMInstruction::Operand d,
const ir::LLVMInstruction::Operand a 
) [protected]
ir::LLVMInstruction::Operand translator::PTXToLLVMTranslator::_getAddressableGlobalPointer ( const ir::PTXOperand o) [protected]
ir::LLVMInstruction::Operand translator::PTXToLLVMTranslator::_getAddressableVariablePointer ( ir::PTXInstruction::AddressSpace  space,
const ir::PTXOperand o 
) [protected]
ir::LLVMInstruction::Type translator::PTXToLLVMTranslator::_getCtaContextType ( ) [static, protected]
ir::LLVMInstruction::Operand translator::PTXToLLVMTranslator::_getLoadOrStorePointer ( const ir::PTXOperand o,
ir::PTXInstruction::AddressSpace  space,
ir::LLVMInstruction::DataType  type,
unsigned int  vector 
) [protected]
ir::LLVMInstruction::Operand translator::PTXToLLVMTranslator::_getMemoryBasePointer ( ir::PTXInstruction::AddressSpace  space,
bool  isGlobalLocal,
bool  isArgument 
) [protected]
ir::LLVMInstruction::Operand translator::PTXToLLVMTranslator::_getMemoryExtent ( ir::PTXInstruction::AddressSpace  space) [protected]
void translator::PTXToLLVMTranslator::_initializeRegisters ( ) [protected]
void translator::PTXToLLVMTranslator::_insertDebugSymbols ( ) [protected]
std::string translator::PTXToLLVMTranslator::_loadSpecialRegister ( ir::PTXOperand::SpecialRegister  s,
ir::PTXOperand::VectorIndex  index 
) [protected]
void translator::PTXToLLVMTranslator::_nearbyint ( const ir::LLVMInstruction::Operand d,
const ir::LLVMInstruction::Operand a 
) [protected]
void translator::PTXToLLVMTranslator::_newBlock ( const std::string &  name) [protected]
void translator::PTXToLLVMTranslator::_reportReads ( const analysis::DataflowGraph::Instruction i) [protected]
void translator::PTXToLLVMTranslator::_reportWrites ( const analysis::DataflowGraph::Instruction i) [protected]
void translator::PTXToLLVMTranslator::_saturate ( const ir::LLVMInstruction::Operand d,
const ir::LLVMInstruction::Operand a 
) [protected]
void translator::PTXToLLVMTranslator::_swapAllExceptName ( ir::LLVMInstruction::Operand o,
const ir::PTXOperand i 
) [protected]
std::string translator::PTXToLLVMTranslator::_tempRegister ( ) [protected]
ir::LLVMInstruction::Operand translator::PTXToLLVMTranslator::_translate ( const ir::PTXOperand o) [protected]
ir::LLVMInstruction::DataType translator::PTXToLLVMTranslator::_translate ( ir::PTXOperand::DataType  type) [static, protected]
ir::LLVMInstruction::Comparison translator::PTXToLLVMTranslator::_translate ( ir::PTXInstruction::CmpOp  op,
bool  isInt,
bool  isSigned 
) [static, protected]
void translator::PTXToLLVMTranslator::_translate ( const analysis::DataflowGraph::Instruction i,
const analysis::DataflowGraph::Block block 
) [protected]
void translator::PTXToLLVMTranslator::_translate ( const ir::PTXInstruction i,
const analysis::DataflowGraph::Block block 
) [protected]
void translator::PTXToLLVMTranslator::_translateAbs ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateAdd ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateAddC ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateAnd ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateAtom ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateBar ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateBfi ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateBfind ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateBra ( const ir::PTXInstruction i,
const analysis::DataflowGraph::Block block 
) [protected]
void translator::PTXToLLVMTranslator::_translateBrev ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateBrkpt ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateCall ( const ir::PTXInstruction i,
const analysis::DataflowGraph::Block block 
) [protected]
void translator::PTXToLLVMTranslator::_translateClz ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateCNot ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateCopySign ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateCos ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateCvt ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateCvta ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateDiv ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateEx2 ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateExit ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateInstructions ( ) [protected]
void translator::PTXToLLVMTranslator::_translateIsspacep ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateLd ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateLdu ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateLg2 ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateMad ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateMad24 ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateMax ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateMembar ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateMin ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateMov ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateMul ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateMul24 ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateNeg ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateNot ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateOr ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translatePmevent ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translatePopc ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translatePrmt ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateRcp ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateRed ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateRem ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateRet ( const ir::PTXInstruction i,
const analysis::DataflowGraph::Block block 
) [protected]
void translator::PTXToLLVMTranslator::_translateRsqrt ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSad ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSelP ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSet ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSetP ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateShl ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateShr ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSin ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSlCt ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSqrt ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSt ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSub ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSubC ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSuld ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSuq ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSured ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateSust ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateTestP ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateTex ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateTrap ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateTxq ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateVote ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_translateXor ( const ir::PTXInstruction i) [protected]
void translator::PTXToLLVMTranslator::_trunc ( const ir::LLVMInstruction::Operand d,
const ir::LLVMInstruction::Operand a 
) [protected]
void translator::PTXToLLVMTranslator::_yield ( unsigned int  type,
const ir::LLVMInstruction::Operand continuation = ir::LLVMInstruction::Operand() 
) [protected]
ir::Kernel * translator::PTXToLLVMTranslator::translate ( const ir::Kernel i) [virtual]

Translate a kernel from the source ISA to the destination ISA.

Parameters:
iThe input kernel. Must be in the source ISA.
Returns:
A newly allocated kernel that is functionally equivalent to i in the target ISA.

Note that this will allocate a new kernel and return it to the caller. It is the caller's resposibility to free it.

Implements translator::Translator.

ir::Kernel * translator::PTXToLLVMTranslator::translatedKernel ( ) const

Member Data Documentation


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