Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								1f97a5a671 
								
							 
						 
						
							
							
								
								Remove all remaining uses of Value::getNameStr().  
							
							 
							
							... 
							
							
							
							llvm-svn: 144648 
							
						 
						
							2011-11-15 16:27:03 +00:00  
						
					 
				
					
						
							
							
								 
								Michael J. Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								39a0ffc394 
								
							 
						 
						
							
							
								
								MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> via an out parm.  
							
							 
							
							... 
							
							
							
							llvm-svn: 121958 
							
						 
						
							2010-12-16 03:29:14 +00:00  
						
					 
				
					
						
							
							
								 
								Michael J. Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								7b6fef82d4 
								
							 
						 
						
							
							
								
								Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code &ec. And fix clients.  
							
							 
							
							... 
							
							
							
							llvm-svn: 121379 
							
						 
						
							2010-12-09 17:36:48 +00:00  
						
					 
				
					
						
							
							
								 
								Michael J. Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								447762da85 
								
							 
						 
						
							
							
								
								Merge System into Support.  
							
							 
							
							... 
							
							
							
							llvm-svn: 120298 
							
						 
						
							2010-11-29 18:16:10 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ad074cb3f2 
								
							 
						 
						
							
							
								
								lets get crazy and name the header file the exact class name,  
							
							 
							
							... 
							
							
							
							not a scrunched version of it.
llvm-svn: 112904 
							
						 
						
							2010-09-02 23:09:42 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								82570a04df 
								
							 
						 
						
							
							
								
								AsmPrinter has a formatted stream, pass it down through AsmAnnotationWriter  
							
							 
							
							... 
							
							
							
							llvm-svn: 112903 
							
						 
						
							2010-09-02 23:07:12 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								a7aed18624 
								
							 
						 
						
							
							
								
								Reapply r110396, with fixes to appease the Linux buildbot gods.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110460 
							
						 
						
							2010-08-06 18:33:48 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								bda59bd247 
								
							 
						 
						
							
							
								
								Revert r110396 to fix buildbots.  
							
							 
							
							... 
							
							
							
							llvm-svn: 110410 
							
						 
						
							2010-08-06 00:23:35 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								755aceb5d0 
								
							 
						 
						
							
							
								
								Don't use PassInfo* as a type identifier for passes.  Instead, use the address of the static  
							
							 
							
							... 
							
							
							
							ID member as the sole unique type identifier.  Clean up APIs related to this change.
llvm-svn: 110396 
							
						 
						
							2010-08-05 23:42:04 +00:00  
						
					 
				
					
						
							
							
								 
								Douglas Gregor
							
						 
						
							 
							
							
							
							
								
							
							
								291f6145b8 
								
							 
						 
						
							
							
								
								Reverting 85714, 85715, 85716, which are breaking the build  
							
							 
							
							... 
							
							
							
							llvm-svn: 85717 
							
						 
						
							2009-11-01 16:42:53 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								576ac96367 
								
							 
						 
						
							
							
								
								Remove the #include of Pass.h from PassManager.h. This breaks a significant  
							
							 
							
							... 
							
							
							
							#include dependency, as frontends commonly pull in PassManager.h.
llvm-svn: 85714 
							
						 
						
							2009-11-01 15:20:19 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								e6be8ce419 
								
							 
						 
						
							
							
								
								this doesn't use EH either.  
							
							 
							
							... 
							
							
							
							llvm-svn: 84818 
							
						 
						
							2009-10-22 00:50:24 +00:00  
						
					 
				
					
						
							
							
								 
								Andreas Neustifter
							
						 
						
							 
							
							
							
							
								
							
							
								5155fc1b69 
								
							 
						 
						
							
							
								
								Since all std::cout is gone, also remove iostream include.  
							
							 
							
							... 
							
							
							
							(See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090824/085620.html )
llvm-svn: 80349 
							
						 
						
							2009-08-28 06:48:25 +00:00  
						
					 
				
					
						
							
							
								 
								Andreas Neustifter
							
						 
						
							 
							
							
							
							
								
							
							
								5f4e42ef9c 
								
							 
						 
						
							
							
								
								Changed std::cout to outs(), retaining formating.  
							
							 
							
							... 
							
							
							
							llvm-svn: 80076 
							
						 
						
							2009-08-26 09:05:21 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								3924bb5792 
								
							 
						 
						
							
							
								
								remove the std::ostream version of module and type printing.  
							
							 
							
							... 
							
							
							
							llvm-svn: 79823 
							
						 
						
							2009-08-23 04:52:46 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								b25de3ff60 
								
							 
						 
						
							
							
								
								eliminate the "Value" printing methods that print to a std::ostream.  
							
							 
							
							... 
							
							
							
							This required converting a bunch of stuff off DOUT and other cleanups.
llvm-svn: 79819 
							
						 
						
							2009-08-23 04:37:46 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								7ee9649097 
								
							 
						 
						
							
							
								
								Update llvm-prof for ProfileInfo API changes.  
							
							 
							
							... 
							
							
							
							- Patch by Erick Tryzelaar
llvm-svn: 78880 
							
						 
						
							2009-08-13 01:55:43 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								2f140834cf 
								
							 
						 
						
							
							
								
								Some ProfileInfo cleanups.  
							
							 
							
							... 
							
							
							
							- Part of optimal static profiling patch sequence by Andreas Neustifter.
llvm-svn: 78485 
							
						 
						
							2009-08-08 18:59:03 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								3b5008e23a 
								
							 
						 
						
							
							
								
								More ProfileInfo improvements.  
							
							 
							
							... 
							
							
							
							- 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 
							
						 
						
							2009-08-08 17:43:09 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								4f6f6d080f 
								
							 
						 
						
							
							
								
								Make block and function count available via ProfileInfo.  
							
							 
							
							... 
							
							
							
							- Part of optimal static profiling patch sequence by Andreas Neustifter.
llvm-svn: 78247 
							
						 
						
							2009-08-05 21:51:16 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								b6fec38426 
								
							 
						 
						
							
							
								
								Remove unnecessary ProfileInfoLoader methods.  
							
							 
							
							... 
							
							
							
							- Part of optimal static profiling patch sequence by Andreas Neustifter.
llvm-svn: 78199 
							
						 
						
							2009-08-05 15:55:56 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								67395e7c2c 
								
							 
						 
						
							
							
								
								One more getName -> getNameStr  
							
							 
							
							... 
							
							
							
							llvm-svn: 77027 
							
						 
						
							2009-07-25 00:43:31 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								5899e340f3 
								
							 
						 
						
							
							
								
								Simplify / normalize some uses of Value::getName.  
							
							 
							
							... 
							
							
							
							llvm-svn: 76553 
							
						 
						
							2009-07-21 08:54:24 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								19251ec836 
								
							 
						 
						
							
							
								
								To simplify the upcoming context-on-type change, switch all command line 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 
							
						 
						
							2009-07-15 22:16:10 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								d8db376071 
								
							 
						 
						
							
							
								
								Use errs() instead of std::cerr.  
							
							 
							
							... 
							
							
							
							llvm-svn: 75791 
							
						 
						
							2009-07-15 16:35:29 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Dunbar
							
						 
						
							 
							
							
							
							
								
							
							
								277e11b116 
								
							 
						 
						
							
							
								
								Move main llvm-prof functionality into a ModulePass.  
							
							 
							
							... 
							
							
							
							- 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 
							
						 
						
							2009-07-14 07:41:11 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								43f33dd550 
								
							 
						 
						
							
							
								
								Fix a bunch of other places that used operator[] to test whether  
							
							 
							
							... 
							
							
							
							a key is present in a std::map or DenseMap to use find instead.
llvm-svn: 74676 
							
						 
						
							2009-07-02 00:17:47 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								1cf085d558 
								
							 
						 
						
							
							
								
								Hold the LLVMContext by reference rather than by pointer.  
							
							 
							
							... 
							
							
							
							llvm-svn: 74640 
							
						 
						
							2009-07-01 21:22:36 +00:00  
						
					 
				
					
						
							
							
								 
								Owen Anderson
							
						 
						
							 
							
							
							
							
								
							
							
								6773d388aa 
								
							 
						 
						
							
							
								
								Add a pointer to the owning LLVMContext to Module.  This requires threading 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 
							
						 
						
							2009-07-01 16:58:40 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								e3fc2d13be 
								
							 
						 
						
							
							
								
								Change various llvm utilities to use PrettyStackTraceProgram in  
							
							 
							
							... 
							
							
							
							their main routines.  This makes the tools print their argc/argv
commands if they crash.
llvm-svn: 66248 
							
						 
						
							2009-03-06 05:34:10 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								0c19df4871 
								
							 
						 
						
							
							
								
								Switch the asmprinter (.ll) and all the stuff it requires over to  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2008-08-23 22:23:09 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								345353d6b4 
								
							 
						 
						
							
							
								
								remove attributions from tools.  
							
							 
							
							... 
							
							
							
							llvm-svn: 45421 
							
						 
						
							2007-12-29 20:44:31 +00:00  
						
					 
				
					
						
							
							
								 
								Dan Gohman
							
						 
						
							 
							
							
							
							
								
							
							
								2c6a821fd7 
								
							 
						 
						
							
							
								
								Move the space in overview output for commands out of each of the  
							
							 
							
							... 
							
							
							
							commands and into the common code.
llvm-svn: 42752 
							
						 
						
							2007-10-08 15:45:12 +00:00  
						
					 
				
					
						
							
							
								 
								Gabor Greif
							
						 
						
							 
							
							
							
							
								
							
							
								e16561cd5d 
								
							 
						 
						
							
							
								
								Here is the bulk of the sanitizing.  
							
							 
							
							... 
							
							
							
							Almost all occurrences of "bytecode" in the sources have been eliminated.
llvm-svn: 37913 
							
						 
						
							2007-07-05 17:07:56 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								c32d55e17c 
								
							 
						 
						
							
							
								
								Initialize variable to null so it has a value in the off chance that a  
							
							 
							
							... 
							
							
							
							memory buffer couldn't be allocated.
llvm-svn: 36904 
							
						 
						
							2007-05-07 18:50:07 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								9e9a34c6bf 
								
							 
						 
						
							
							
								
								use the new MemoryBuffer interfaces to simplify error reporting in clients.  
							
							 
							
							... 
							
							
							
							llvm-svn: 36900 
							
						 
						
							2007-05-06 23:45:49 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								6d80e21a1d 
								
							 
						 
						
							
							
								
								switch tools to bitcode instead of bytecode  
							
							 
							
							... 
							
							
							
							llvm-svn: 36868 
							
						 
						
							2007-05-06 09:29:57 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								c424ba7ebd 
								
							 
						 
						
							
							
								
								add support to llvm-prof for reading from a bitcode file  
							
							 
							
							... 
							
							
							
							llvm-svn: 36836 
							
						 
						
							2007-05-06 04:43:00 +00:00  
						
					 
				
					
						
							
							
								 
								Jeff Cohen
							
						 
						
							 
							
							
							
							
								
							
							
								b622c11f77 
								
							 
						 
						
							
							
								
								Unbreak VC++ build.  
							
							 
							
							... 
							
							
							
							llvm-svn: 34917 
							
						 
						
							2007-03-05 00:00:42 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								a0e49f2ead 
								
							 
						 
						
							
							
								
								push bytecode decompressor out through APIs.  Now the bytecode reader  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2007-02-07 21:41:02 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								76d4632d92 
								
							 
						 
						
							
							
								
								make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.  
							
							 
							
							... 
							
							
							
							With this change, I can now move -stats to print when llvm_shutdown is called.
llvm-svn: 32250 
							
						 
						
							2006-12-06 01:18:01 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								6e64180f03 
								
							 
						 
						
							
							
								
								For PR786:  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2006-05-24 19:21:13 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								60c1a12019 
								
							 
						 
						
							
							
								
								Revert removal of std:: prefixes and addtion of "using namespace std;".  
							
							 
							
							... 
							
							
							
							This violates the LLVM coding standards.
llvm-svn: 25050 
							
						 
						
							2005-12-30 09:07:29 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								9695ae00bf 
								
							 
						 
						
							
							
								
								General cleanup:  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2005-12-29 21:13:45 +00:00  
						
					 
				
					
						
							
							
								 
								Misha Brukman
							
						 
						
							 
							
							
							
							
								
							
							
								650ba8eb56 
								
							 
						 
						
							
							
								
								Remove trailing whitespace  
							
							 
							
							... 
							
							
							
							llvm-svn: 21428 
							
						 
						
							2005-04-22 00:00:37 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								996ec72d48 
								
							 
						 
						
							
							
								
								For PR351:  
							
							 
							
							... 
							
							
							
							* 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 
							
						 
						
							2004-12-30 05:36:08 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								7c16caa336 
								
							 
						 
						
							
							
								
								Changes For Bug 352  
							
							 
							
							... 
							
							
							
							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 
							
						 
						
							2004-09-01 22:55:40 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								e3263ecaf0 
								
							 
						 
						
							
							
								
								The functions in Signal.h are now in the llvm::sys namespace - adjust  
							
							 
							
							... 
							
							
							
							llvm-svn: 16091 
							
						 
						
							2004-08-29 19:28:55 +00:00  
						
					 
				
					
						
							
							
								 
								Reid Spencer
							
						 
						
							 
							
							
							
							
								
							
							
								f0ebb25d2b 
								
							 
						 
						
							
							
								
								Add #include <iostream> since Value.h does not include it any more.  
							
							 
							
							... 
							
							
							
							llvm-svn: 14623 
							
						 
						
							2004-07-04 12:20:55 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								278f5152d3 
								
							 
						 
						
							
							
								
								Header file moved  
							
							 
							
							... 
							
							
							
							llvm-svn: 13813 
							
						 
						
							2004-05-27 05:41:36 +00:00