GPUOcelot
|
A class containing a complete representation of an LLVM kernel. More...
#include <LLVMKernel.h>
Public Types | |
typedef std::vector < LLVMInstruction * > | LLVMInstructionVector |
A vector of LLVM instructions. | |
typedef std::deque< LLVMStatement > | LLVMStatementVector |
A vector of LLVM Statements. | |
Public Member Functions | |
LLVMKernel () | |
Sets the ISA. | |
LLVMKernel (const Kernel &k) | |
Initialized the base class from a kernel and executive. | |
void | push_back (const LLVMStatement &statement) |
Add a statement to the end. | |
void | push_front (const LLVMStatement &statement) |
Add a statement to the beginning. | |
void | assemble () |
Assemble the LLVM kernel from the set of statements. | |
bool | assembled () const |
Is the kernel assembled? | |
const std::string & | code () const |
Get the assembly code. | |
std::string | numberedCode () const |
Get the assembly code with line numbers. | |
const LLVMStatementVector & | llvmStatements () const |
Get the set of statements. |
A class containing a complete representation of an LLVM kernel.
typedef std::vector< LLVMInstruction* > ir::LLVMKernel::LLVMInstructionVector |
A vector of LLVM instructions.
typedef std::deque< LLVMStatement > ir::LLVMKernel::LLVMStatementVector |
A vector of LLVM Statements.
ir::LLVMKernel::LLVMKernel | ( | ) |
Sets the ISA.
ir::LLVMKernel::LLVMKernel | ( | const Kernel & | k | ) |
Initialized the base class from a kernel and executive.
void ir::LLVMKernel::assemble | ( | ) |
Assemble the LLVM kernel from the set of statements.
bool ir::LLVMKernel::assembled | ( | ) | const |
Is the kernel assembled?
const std::string & ir::LLVMKernel::code | ( | ) | const |
Get the assembly code.
const LLVMKernel::LLVMStatementVector & ir::LLVMKernel::llvmStatements | ( | ) | const |
Get the set of statements.
std::string ir::LLVMKernel::numberedCode | ( | ) | const |
Get the assembly code with line numbers.
void ir::LLVMKernel::push_back | ( | const LLVMStatement & | statement | ) |
Add a statement to the end.
void ir::LLVMKernel::push_front | ( | const LLVMStatement & | statement | ) |
Add a statement to the beginning.