summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-prof/llvm-prof.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Round 2 of dead private variable removal.Benjamin Kramer2012-06-061-1/+1
| | | | | | | | LLVM is now -Wunused-private-field clean except for - lib/MC/MCDisassembler/Disassembler.h. Not sure why it keeps all those unaccessible fields. - gtest. llvm-svn: 158096
* Remove all remaining uses of Value::getNameStr().Benjamin Kramer2011-11-151-9/+9
| | | | llvm-svn: 144648
* MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> ↵Michael J. Spencer2010-12-161-3/+3
| | | | | | via an out parm. llvm-svn: 121958
* Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with ↵Michael J. Spencer2010-12-091-3/+5
| | | | | | error_code &ec. And fix clients. llvm-svn: 121379
* Merge System into Support.Michael J. Spencer2010-11-291-1/+1
| | | | llvm-svn: 120298
* lets get crazy and name the header file the exact class name,Chris Lattner2010-09-021-1/+1
| | | | | | not a scrunched version of it. llvm-svn: 112904
* AsmPrinter has a formatted stream, pass it down through AsmAnnotationWriterChris Lattner2010-09-021-4/+7
| | | | llvm-svn: 112903
* Reapply r110396, with fixes to appease the Linux buildbot gods.Owen Anderson2010-08-061-1/+1
| | | | llvm-svn: 110460
* Revert r110396 to fix buildbots.Owen Anderson2010-08-061-1/+1
| | | | llvm-svn: 110410
* Don't use PassInfo* as a type identifier for passes. Instead, use the ↵Owen Anderson2010-08-051-1/+1
| | | | | | | | address of the static ID member as the sole unique type identifier. Clean up APIs related to this change. llvm-svn: 110396
* Reverting 85714, 85715, 85716, which are breaking the buildDouglas Gregor2009-11-011-1/+0
| | | | llvm-svn: 85717
* Remove the #include of Pass.h from PassManager.h. This breaks a significantDan Gohman2009-11-011-0/+1
| | | | | | #include dependency, as frontends commonly pull in PassManager.h. llvm-svn: 85714
* this doesn't use EH either.Chris Lattner2009-10-221-36/+29
| | | | llvm-svn: 84818
* Since all std::cout is gone, also remove iostream include.Andreas Neustifter2009-08-281-1/+0
| | | | | | (See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090824/085620.html) llvm-svn: 80349
* Changed std::cout to outs(), retaining formating.Andreas Neustifter2009-08-261-27/+27
| | | | llvm-svn: 80076
* remove the std::ostream version of module and type printing.Chris Lattner2009-08-231-1/+1
| | | | llvm-svn: 79823
* eliminate the "Value" printing methods that print to a std::ostream.Chris Lattner2009-08-231-1/+1
| | | | | | This required converting a bunch of stuff off DOUT and other cleanups. llvm-svn: 79819
* Update llvm-prof for ProfileInfo API changes.Daniel Dunbar2009-08-131-8/+8
| | | | | | - Patch by Erick Tryzelaar llvm-svn: 78880
* Some ProfileInfo cleanups.Daniel Dunbar2009-08-081-16/+15
| | | | | | - Part of optimal static profiling patch sequence by Andreas Neustifter. llvm-svn: 78485
* More ProfileInfo improvements.Daniel Dunbar2009-08-081-10/+25
| | | | | | | | | | | | - Part of optimal static profiling patch sequence by Andreas Neustifter. - Store edge, block, and function information separately for each functions (instead of in one giant map). - Return frequencies as double instead of int, and use a sentinel value for missing information. llvm-svn: 78477
* Make block and function count available via ProfileInfo.Daniel Dunbar2009-08-051-4/+3
| | | | | | - Part of optimal static profiling patch sequence by Andreas Neustifter. llvm-svn: 78247
* Remove unnecessary ProfileInfoLoader methods.Daniel Dunbar2009-08-051-71/+56
| | | | | | - Part of optimal static profiling patch sequence by Andreas Neustifter. llvm-svn: 78199
* One more getName -> getNameStrDaniel Dunbar2009-07-251-3/+3
| | | | llvm-svn: 77027
* Simplify / normalize some uses of Value::getName.Daniel Dunbar2009-07-211-3/+3
| | | | llvm-svn: 76553
* To simplify the upcoming context-on-type change, switch all command line ↵Owen Anderson2009-07-151-1/+1
| | | | | | | | tools to using the default global context for now. This will let us to hardwire stuff to the global context in the short term while the API is sorted out. llvm-svn: 75846
* Use errs() instead of std::cerr.Dan Gohman2009-07-151-3/+3
| | | | llvm-svn: 75791
* Move main llvm-prof functionality into a ModulePass.Daniel Dunbar2009-07-141-110/+148
| | | | | | | | | | | - To support using the ProfileInfo analysis results instead of accessing the ProfileInfoLoader directly. - Based on (part of) a patch by Andreas Neustifter. - No functionality change. llvm-svn: 75625
* Fix a bunch of other places that used operator[] to test whetherDan Gohman2009-07-021-2/+4
| | | | | | a key is present in a std::map or DenseMap to use find instead. llvm-svn: 74676
* Hold the LLVMContext by reference rather than by pointer.Owen Anderson2009-07-011-1/+1
| | | | llvm-svn: 74640
* Add a pointer to the owning LLVMContext to Module. This requires threading ↵Owen Anderson2009-07-011-2/+4
| | | | | | | | | | LLVMContext through a lot of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools. Patches for Clang and LLVM-GCC to follow. llvm-svn: 74614
* Change various llvm utilities to use PrettyStackTraceProgram inChris Lattner2009-03-061-2/+6
| | | | | | | their main routines. This makes the tools print their argc/argv commands if they crash. llvm-svn: 66248
* Switch the asmprinter (.ll) and all the stuff it requires over toChris Lattner2008-08-231-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | use raw_ostream instead of std::ostream. Among other goodness, this speeds up llvm-dis of kc++ with a release build from 0.85s to 0.49s (88% faster). Other interesting changes: 1) This makes Value::print be non-virtual. 2) AP[S]Int and ConstantRange can no longer print to ostream directly, use raw_ostream instead. 3) This fixes a bug in raw_os_ostream where it didn't flush itself when destroyed. 4) This adds a new SDNode::print method, instead of only allowing "dump". A lot of APIs have both std::ostream and raw_ostream versions, it would be useful to go through and systematically anihilate the std::ostream versions. This passes dejagnu, but there may be minor fallout, plz let me know if so and I'll fix it. llvm-svn: 55263
* remove attributions from tools.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45421
* Move the space in overview output for commands out of each of theDan Gohman2007-10-081-1/+1
| | | | | | commands and into the common code. llvm-svn: 42752
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-5/+5
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* Initialize variable to null so it has a value in the off chance that aReid Spencer2007-05-071-1/+1
| | | | | | memory buffer couldn't be allocated. llvm-svn: 36904
* use the new MemoryBuffer interfaces to simplify error reporting in clients.Chris Lattner2007-05-061-6/+4
| | | | llvm-svn: 36900
* switch tools to bitcode instead of bytecodeChris Lattner2007-05-061-15/+7
| | | | llvm-svn: 36868
* add support to llvm-prof for reading from a bitcode fileChris Lattner2007-05-061-3/+17
| | | | llvm-svn: 36836
* Unbreak VC++ build.Jeff Cohen2007-03-051-0/+1
| | | | llvm-svn: 34917
* push bytecode decompressor out through APIs. Now the bytecode readerChris Lattner2007-02-071-1/+3
| | | | | | | | | | | | | | | | | | | | api's look like this: ModuleProvider *getBytecodeModuleProvider( const std::string &Filename, ///< Name of file to be read BCDecompressor_t *BCDC = Compressor::decompressToNewBuffer, std::string* ErrMsg = 0, ///< Optional error message holder BytecodeHandler* H = 0 ///< Optional handler for reader events ); This is ugly, but allows a client to say: getBytecodeModuleProvider("foo", 0); If they do this, there is no dependency on the compression libraries, saving codesize. llvm-svn: 34012
* make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.Chris Lattner2006-12-061-0/+2
| | | | | | With this change, I can now move -stats to print when llvm_shutdown is called. llvm-svn: 32250
* For PR786:Reid Spencer2006-05-241-1/+1
| | | | | | | | Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. llvm-svn: 28453
* Revert removal of std:: prefixes and addtion of "using namespace std;".Reid Spencer2005-12-301-55/+55
| | | | | | This violates the LLVM coding standards. llvm-svn: 25050
* General cleanup:Reid Spencer2005-12-291-61/+66
| | | | | | | | 1. Don't mix C++ and C standard I/O, convert to C++ iostreams 2. Wrap long lines 3. use the std namespace to simplify/shorten the code llvm-svn: 25042
* Remove trailing whitespaceMisha Brukman2005-04-221-11/+11
| | | | llvm-svn: 21428
* For PR351:Reid Spencer2004-12-301-104/+111
| | | | | | | | | | * Place a try/catch block around the entire tool to Make sure std::string exceptions are caught and printed before exiting the tool. * Make sure we catch unhandled exceptions at the top level so that we don't abort with a useless message but indicate than an unhandled exception was generated. llvm-svn: 19192
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* The functions in Signal.h are now in the llvm::sys namespace - adjustReid Spencer2004-08-291-1/+1
| | | | llvm-svn: 16091
* Add #include <iostream> since Value.h does not include it any more.Reid Spencer2004-07-041-0/+1
| | | | llvm-svn: 14623
OpenPOWER on IntegriCloud