Lines Matching full:module

28 class Module;  variable
48 std::unique_ptr<Module> Program; // The raw program, linked together
108 /// debugCodeGenerator - This method narrows down a module to a function or
117 Module &getProgram() const { return *Program; } in getProgram()
119 /// Set the current module to the specified module, returning the old one.
120 std::unique_ptr<Module> swapProgramIn(std::unique_ptr<Module> M);
131 /// bugdriver with it. This deletes the old module and sets the specified one
133 void setNewProgram(std::unique_ptr<Module> M);
135 /// Try to compile the specified module. This is used for code generation
137 Error compileProgram(Module &M) const;
141 Expected<std::string> executeProgram(const Module &Program,
151 executeProgramSafely(const Module &Program,
157 Error createReferenceFile(Module &M, const std::string &Filename =
160 /// This method executes the specified module and diffs the output against the
164 Expected<bool> diffProgram(const Module &Program,
170 void EmitProgressBitcode(const Module &M, const std::string &ID,
174 /// instruction from the cloned module. It then runs a series of cleanup
176 /// value. The modified module is then returned.
178 std::unique_ptr<Module> deleteInstructionFromProgram(const Instruction *I,
182 /// intended to get rid of extra cruft on the module. If the
186 std::unique_ptr<Module> performFinalCleanups(std::unique_ptr<Module> M,
189 /// Given a module, extract up to one loop from it into a new function. This
192 std::unique_ptr<Module> extractLoop(Module *M);
195 /// only detail is that M is actually a module cloned from the one the BBs are
198 /// null, otherwise it returns a new Module.
199 std::unique_ptr<Module>
201 Module *M);
203 /// Carefully run the specified set of pass on the specified/ module,
204 /// returning the transformed module on success, or a null pointer on failure.
205 std::unique_ptr<Module> runPassesOn(Module *M,
218 bool runPasses(Module &Program, const std::vector<std::string> &PassesToRun,
227 bool runPasses(Module &M, const std::vector<std::string> &PassesToRun) const { in runPasses()
242 bool writeProgramToFile(const std::string &Filename, const Module &M) const;
244 const Module &M) const;
245 bool writeProgramToFile(int FD, const Module &M) const;
262 std::unique_ptr<Module> parseInputFile(StringRef InputFilename,
288 /// Given a module and a list of functions in the module, split the functions
289 /// OUT of the specified module, and place them in the new module.
290 std::unique_ptr<Module>
291 SplitFunctionsOutOfModule(Module *M, const std::vector<Function *> &F,