Lines Matching refs:Module
10 // A Module transform pass that emits a succinct version of the IR and replaces
28 #include "llvm/IR/Module.h"
62 /// Prints Module to a null buffer in order to build the map of Value pointers
64 ValueToLineMap(const Module *M) {
96 static void process(Module &M) {
111 static void process(Module &M, bool RemoveNamedInfo = true) {
124 void run(Module *M) {
137 /// Updates debug metadata in a Module:
151 /// Map of Value* (in original Module) to Value* (in optional cloned Module)
170 DIUpdater(Module &M, StringRef Filename = StringRef(),
171 StringRef Directory = StringRef(), const Module *DisplayM = 0,
182 void visitModule(Module &M) {
185 "Module.");
233 /// the line table was generated on a clone of the module on which we are
245 // Instruction has no line, it may have been removed (in the module that
454 /// Sets Filename/Directory from the Module identifier and returns true, or
456 bool getSourceInfoFromModule(const Module &M, std::string &Directory,
471 bool getSourceInfoFromDI(const Module &M, std::string &Directory,
490 bool DebugIR::getSourceInfo(const Module &M) {
526 void DebugIR::writeDebugBitcode(const Module *M, int *fd) {
533 DEBUG(dbgs() << "WRITING debug bitcode from Module " << M << " to file "
536 DEBUG(dbgs() << "WRITING debug bitcode from Module " << M << " to fd "
545 void DebugIR::createDebugInfo(Module &M, OwningPtr<Module> &DisplayM) {
568 bool DebugIR::runOnModule(Module &M) {
574 "Ensure Module contains an identifier, a valid "
588 OwningPtr<Module> DisplayM;
591 Module *OutputM = DisplayM.get() ? DisplayM.get() : &M;
599 bool DebugIR::runOnModule(Module &M, std::string &Path) {