/external/llvm/tools/bugpoint/ |
FindBugs.cpp | 64 std::string Filename; 65 if(runPasses(Program, PassesToRun, Filename, false)) { 92 bool Diff = diffProgram(Program, Filename, "", false, &Error); 106 sys::Path(Filename).eraseFromDisk();
|
OptimizerDriver.cpp | 51 bool BugDriver::writeProgramToFile(const std::string &Filename, 54 tool_output_file Out(Filename.c_str(), ErrInfo, 78 std::string Filename = OutputPrefix + "-" + ID + ".bc"; 79 if (writeProgramToFile(Filename, M)) { 80 errs() << "Error opening file '" << Filename << "' for writing!\n"; 84 outs() << "Emitted bitcode to '" << Filename << "'\n"; 88 outs() << "opt " << Filename; 103 /// and writing the filename into OutputFile if successful. If the 106 /// deleted on success, and the filename string is undefined. This prints to 120 errs() << getToolName() << ": Error making unique filename: [all...] |
BugDriver.h | 111 /// ReferenceOutput contains the filename of the file containing the output we 170 /// program to a file. A recommended filename may be optionally specified. 193 bool createReferenceFile(Module *M, const std::string &Filename 250 /// file and writting the filename into OutputFile if successful. If the 253 /// deleted on success, and the filename string is undefined. This prints to 277 bool writeProgramToFile(const std::string &Filename, const Module *M) const; 287 std::string Filename; 288 return runPasses(M, PassesToRun, Filename, DeleteOutput); 297 /// ParseInputFile - Given a bitcode or assembly input filename, parse and
|
/external/llvm/include/llvm/Support/ |
FileUtilities.h | 37 /// If an exception is thrown from a region, the object removes the filename 41 SmallString<128> Filename; 46 explicit FileRemover(const Twine& filename, bool deleteIt = true) 48 filename.toVector(Filename); 55 sys::fs::remove(Filename.str(), existed); 62 void setFile(const Twine& filename, bool deleteIt = true) { 66 sys::fs::remove(Filename.str(), existed); 69 Filename.clear(); 70 filename.toVector(Filename) [all...] |
ToolOutputFile.h | 32 /// Filename - The name of the file. 33 std::string Filename; 38 explicit CleanupInstaller(const char *filename); 49 tool_output_file(const char *filename, std::string &ErrorInfo,
|
/external/llvm/include/llvm/Analysis/ |
DOTGraphTraitsPass.h | 55 std::string Filename = Name + "." + F.getName().str() + ".dot"; 58 errs() << "Writing '" << Filename << "'..."; 60 raw_fd_ostream File(Filename.c_str(), ErrorInfo); 114 std::string Filename = Name + ".dot"; 117 errs() << "Writing '" << Filename << "'..."; 119 raw_fd_ostream File(Filename.c_str(), ErrorInfo);
|
ProfileInfoLoader.h | 30 const std::string &Filename; 40 ProfileInfoLoader(const char *ToolName, const std::string &Filename); 47 const std::string &getFileName() const { return Filename; }
|
ProfileDataLoader.h | 100 const std::string &Filename; 113 ProfileDataLoader(const char *ToolName, const std::string &Filename); 127 const std::string &getFileName() const { return Filename; } 135 /// the profiling information for the module from the specified filename. 136 ModulePass *createProfileMetadataLoaderPass(const std::string &Filename);
|
/external/llvm/lib/Analysis/ |
CFGPrinter.cpp | 79 std::string Filename = "cfg." + F.getName().str() + ".dot"; 80 errs() << "Writing '" << Filename << "'..."; 83 raw_fd_ostream File(Filename.c_str(), ErrorInfo); 113 std::string Filename = "cfg." + F.getName().str() + ".dot"; 114 errs() << "Writing '" << Filename << "'..."; 117 raw_fd_ostream File(Filename.c_str(), ErrorInfo);
|
ProfileInfoLoader.cpp | 86 const std::string &Filename) 87 : Filename(Filename) { 88 FILE *F = fopen(Filename.c_str(), "rb"); 90 errs() << ToolName << ": Error opening '" << Filename << "': ";
|
ProfileDataLoaderPass.cpp | 41 cl::value_desc("filename"), 48 std::string Filename; 51 explicit ProfileMetadataLoaderPass(const std::string &filename = "") 52 : ModulePass(ID), Filename(filename) { 54 if (filename.empty()) Filename = ProfileMetadataFilename; 83 /// the profiling information for the module from the specified filename, 88 ModulePass *llvm::createProfileMetadataLoaderPass(const std::string &Filename) { 89 return new ProfileMetadataLoaderPass(Filename); [all...] |
ProfileInfoLoaderPass.cpp | 36 cl::value_desc("filename"), 41 std::string Filename; 47 explicit LoaderPass(const std::string &filename = "") 48 : ModulePass(ID), Filename(filename) { 50 if (filename.empty()) Filename = ProfileInfoFilename; 91 /// profiling information for the module from the specified filename, making it 93 Pass *llvm::createProfileLoaderPass(const std::string &Filename) { 94 return new LoaderPass(Filename); [all...] |
/external/llvm/lib/ExecutionEngine/ |
EventListenerCommon.h | 28 // Holds the filename of each Scope, so that we can pass a null-terminated 36 std::string &Filename = Filenames[Scope]; 37 if (Filename.empty()) { 39 Filename = DIScope.getFilename(); 41 return Filename.c_str(); 49 StringRef FileName = DIScope.getFilename(); 54 if (FileName != "") { 55 sys::path::append(FullPath, FileName);
|
/external/llvm/tools/llvm-link/ |
llvm-link.cpp | 36 OutputFilename("o", cl::desc("Override output filename"), cl::init("-"), 37 cl::value_desc("filename")); 58 sys::Path Filename; 59 if (!Filename.set(FN)) { 65 if (Verbose) errs() << "Loading '" << Filename.c_str() << "'\n"; 68 const std::string &FNStr = Filename.str();
|
/external/clang/include/clang/Frontend/ |
LogDiagnosticPrinter.h | 28 std::string Filename;
|
/external/clang/lib/AST/ |
InheritViz.cpp | 139 sys::Path Filename = sys::Path::GetTemporaryDirectory(&ErrMsg); 140 if (Filename.isEmpty()) { 144 Filename.appendComponent(Self.getAsString() + ".dot"); 145 if (Filename.makeUnique(true,&ErrMsg)) { 150 llvm::errs() << "Writing '" << Filename.c_str() << "'... "; 152 llvm::raw_fd_ostream O(Filename.c_str(), ErrMsg); 162 DisplayGraph(Filename);
|
/frameworks/compile/libbcc/tools/bcc_strip_attr/ |
bcc_strip_attr.cpp | 37 OutputFilename("o", cl::desc("Override output filename"), cl::init("-"), 38 cl::value_desc("filename")); 93 sys::Path Filename; 94 if (!Filename.set(FN)) { 102 const std::string &FNStr = Filename.str();
|
/external/clang/lib/Driver/ |
InputInfo.h | 31 Filename, 37 const char *Filename; 50 : Kind(Filename), Type(_Type), BaseInput(_BaseInput) { 51 Data.Filename = _Filename; 59 bool isFilename() const { return Kind == Filename; } 66 return Data.Filename;
|
/external/clang/lib/Frontend/ |
DependencyFile.cpp | 41 bool FileMatchesDepCriteria(const char *Filename, 43 void AddFilename(StringRef Filename); 60 StringRef FileName, 88 /// FileMatchesDepCriteria - Determine whether the given Filename should be 90 bool DependencyFileCallback::FileMatchesDepCriteria(const char *Filename, 92 if (strcmp("<built-in>", Filename) == 0) 117 StringRef Filename = FE->getName(); 118 if (!FileMatchesDepCriteria(Filename.data(), FileType)) 122 while (Filename.size() > 2 && Filename[0] == '.' & [all...] |
FrontendActions.cpp | 222 StringRef Filename) { 224 const FileEntry *ModuleMap = CI.getFileManager().getFile(Filename); 227 << Filename; 251 << CI.getLangOpts().CurrentModule << Filename;
|
/external/clang/lib/Rewrite/Frontend/ |
FixItRewriter.cpp | 88 std::string Filename = FixItOpts->RewriteFilename(Entry->getName(), fd); 94 OS.reset(new llvm::raw_fd_ostream(Filename.c_str(), Err, 99 << Filename << Err; 107 RewrittenFiles->push_back(std::make_pair(Entry->getName(), Filename));
|
InclusionRewriter.cpp | 58 StringRef FileName, 65 void WriteLineInfo(const char *Filename, int Line, 92 /// markers depending on what mode we're in, including the \p Filename and 95 void InclusionRewriter::WriteLineInfo(const char *Filename, int Line, 101 OS << "#line" << ' ' << Line << ' ' << '"' << Filename << '"'; 105 OS << '#' << ' ' << Line << ' ' << '"' << Filename << '"'; 154 StringRef /*FileName*/, 257 const char *FileName = FromFile.getBufferIdentifier(); 264 WriteLineInfo(FileName, 1, FileType, EOL, " 1"); 300 WriteLineInfo(FileName, Line, FileType, EOL, " 2") [all...] |
/external/clang/lib/Serialization/ |
ASTReaderInternals.h | 192 /// filename, and support "deep" comparisons of file names based on current 207 const char *Filename;
|
/external/llvm/lib/TableGen/ |
TGLexer.cpp | 296 PrintError(getLoc(), "Expected filename after include"); 301 std::string Filename = CurStrVal; 305 CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr), 308 PrintError(getLoc(), "Could not find include file '" + Filename + "'");
|
/external/clang/lib/Basic/ |
FileManager.cpp | 56 /// represent a filename that doesn't exist on the disk. 241 /// Filename can point to either a real file or a virtual file. 243 StringRef Filename, 245 if (Filename.empty()) 248 if (llvm::sys::path::is_separator(Filename[Filename.size() - 1])) 249 return NULL; // If Filename is a directory. 251 StringRef DirName = llvm::sys::path::parent_path(Filename); 340 const FileEntry *FileManager::getFile(StringRef Filename, bool openFile, 346 SeenFileEntries.GetOrCreateValue(Filename); [all...] |