GPUOcelot
Public Member Functions

executive::LLVMModuleManager::ModuleDatabase Class Reference

A thread safe-class for actually maintaining the modules. More...

#include <LLVMModuleManager.h>

Collaboration diagram for executive::LLVMModuleManager::ModuleDatabase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ModuleDatabase ()
 Create and initialize the database.
 ~ModuleDatabase ()
 Destroy the database.
void loadModule (const ir::Module *module, translator::Translator::OptimizationLevel l, Device *device)
 Load module into the database.
bool isModuleLoaded (const std::string &moduleName)
 Is a module loaded?
void unloadModule (const std::string &moduleName)
 unLoad module from the database
unsigned int totalFunctionCount () const
 Gets the total number of functions in all modules.
void setExternalFunctionSet (const ir::ExternalFunctionSet &s)
 Sets the current external function set for linking.
void clearExternalFunctionSet ()
 Clears the current external function set for linking.
FunctionId getFunctionId (const std::string &moduleName, const std::string &kernelName) const
 Get the id of a kernel by module and kernel name.
const ir::ExternalFunctionSetgetExternalFunctionSet () const
 Get the external function set.

Detailed Description

A thread safe-class for actually maintaining the modules.


Constructor & Destructor Documentation

executive::LLVMModuleManager::ModuleDatabase::ModuleDatabase ( )

Create and initialize the database.

executive::LLVMModuleManager::ModuleDatabase::~ModuleDatabase ( )

Destroy the database.


Member Function Documentation

void executive::LLVMModuleManager::ModuleDatabase::clearExternalFunctionSet ( )

Clears the current external function set for linking.

const ir::ExternalFunctionSet & executive::LLVMModuleManager::ModuleDatabase::getExternalFunctionSet ( ) const

Get the external function set.

LLVMModuleManager::FunctionId executive::LLVMModuleManager::ModuleDatabase::getFunctionId ( const std::string &  moduleName,
const std::string &  kernelName 
) const

Get the id of a kernel by module and kernel name.

bool executive::LLVMModuleManager::ModuleDatabase::isModuleLoaded ( const std::string &  moduleName)

Is a module loaded?

void executive::LLVMModuleManager::ModuleDatabase::loadModule ( const ir::Module module,
translator::Translator::OptimizationLevel  l,
Device device 
)

Load module into the database.

void executive::LLVMModuleManager::ModuleDatabase::setExternalFunctionSet ( const ir::ExternalFunctionSet s)

Sets the current external function set for linking.

unsigned int executive::LLVMModuleManager::ModuleDatabase::totalFunctionCount ( ) const

Gets the total number of functions in all modules.

void executive::LLVMModuleManager::ModuleDatabase::unloadModule ( const std::string &  moduleName)

unLoad module from the database


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