Lines Matching refs:Module
12 #include "llvm/IR/Module.h"
657 Module *getModuleForNewFunction();
660 ExecutionEngine *compileModule(Module *M);
665 typedef std::vector<Module*> ModuleVector;
668 Module *OpenModule;
670 std::map<Module *, ExecutionEngine *> EngineMap;
685 /// from one generated module to another.
717 // See if we have an execution engine for this module.
718 std::map<Module*, ExecutionEngine*>::iterator mapIt = EngineMap.find(*it);
719 // If we have an EE, the EE owns the module so just delete the EE.
723 // Otherwise, we still own the module. Delete it now.
741 // This function is in a module that has already been JITed.
761 Module *MCJITHelper::getModuleForNewFunction() {
762 // If we have a Module that hasn't been JITed, use that.
766 // Otherwise create a new Module.
768 Module *M = new Module(ModName, Context);
775 // Look for this function in an existing module
783 std::map<Module*, ExecutionEngine*>::iterator eeIt = EngineMap.find(*it);
803 ExecutionEngine *MCJITHelper::compileModule(Module *M) {
838 // For each function in the module
839 Module::iterator it;
840 Module::iterator end = M->end();
865 std::map<Module*, ExecutionEngine*>::iterator eeIt = EngineMap.find(*it);
982 // Look up the name in the global module table.
1205 Module* M = TheHelper->getModuleForNewFunction();