Lines Matching refs:Module
13 #include "llvm/IR/Module.h"
682 virtual void notifyObjectCompiled(const Module *M, const MemoryBuffer *Obj) {
701 // MCJIT will call this function before compiling any module
704 virtual MemoryBuffer* getObject(const Module* M) {
744 Module *getModuleForNewFunction();
747 ExecutionEngine *compileModule(Module *M);
749 void addModule(Module *M);
753 typedef std::vector<Module*> ModuleVector;
756 Module *OpenModule;
758 std::map<Module *, ExecutionEngine *> EngineMap;
774 /// from one generated module to another.
806 // See if we have an execution engine for this module.
807 std::map<Module*, ExecutionEngine*>::iterator mapIt = EngineMap.find(*it);
808 // If we have an EE, the EE owns the module so just delete the EE.
812 // Otherwise, we still own the module. Delete it now.
830 // This function is in a module that has already been JITed.
850 Module *MCJITHelper::getModuleForNewFunction() {
851 // If we have a Module that hasn't been JITed, use that.
855 // Otherwise create a new Module.
857 Module *M = new Module(ModName, Context);
864 // Look for this function in an existing module
872 std::map<Module*, ExecutionEngine*>::iterator eeIt = EngineMap.find(*it);
892 ExecutionEngine *MCJITHelper::compileModule(Module *M) {
935 // For each function in the module
936 Module::iterator it;
937 Module::iterator end = M->end();
963 std::map<Module*, ExecutionEngine*>::iterator eeIt = EngineMap.find(*it);
979 void MCJITHelper::addModule(Module* M) {
1084 // Look up the name in the global module table.
1307 Module* M = TheHelper->getModuleForNewFunction();
1491 Module* parseInputIR(std::string InputFile) {
1493 Module *M = ParseIRFile(InputFile, Err, getGlobalContext());