1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/lib/Support
Chris Lattner c0610874cc Rework the routines that convert AP[S]Int into a string. Now, instead of
returning an std::string by value, it fills in a SmallString/SmallVector
passed in.  This significantly reduces string thrashing in some cases.

More specifically, this:
 - Adds an operator<< and a print method for APInt that allows you to 
   directly send them to an ostream.
 - Reimplements APInt::toString to be much simpler and more efficient
   algorithmically in addition to not thrashing strings quite as much.

This speeds up llvm-dis on kc++ by 7%, and may also slightly speed up the
asmprinter.  This also fixes a bug I introduced into the asmwriter in a
previous patch w.r.t. alias printing.

llvm-svn: 54873
2008-08-17 07:19:36 +00:00
..
Allocator.cpp Fold the useful features of alist and alist_node into ilist, and 2008-07-28 21:51:04 +00:00
Annotation.cpp Add explicit keywords. 2008-02-20 16:44:09 +00:00
APFloat.cpp Rework the routines that convert AP[S]Int into a string. Now, instead of 2008-08-17 07:19:36 +00:00
APInt.cpp Rework the routines that convert AP[S]Int into a string. Now, instead of 2008-08-17 07:19:36 +00:00
APSInt.cpp Added FoldingSet style 'profiling' support for APSInt. 2008-01-19 04:31:12 +00:00
CommandLine.cpp Give a proper error message when a command line option is defined more than 2008-05-30 13:26:11 +00:00
ConstantRange.cpp Rework the routines that convert AP[S]Int into a string. Now, instead of 2008-08-17 07:19:36 +00:00
Debug.cpp Make these variables static. 2008-04-23 23:15:23 +00:00
Dwarf.cpp Remove uses of llvm/System/IncludeFile.h that are no longer needed. 2008-05-06 01:32:53 +00:00
FileUtilities.cpp Fix more -Wshorten-64-to-32 warnings. 2008-05-05 18:30:58 +00:00
FoldingSet.cpp Avoid repeatedly reallocating the FoldingSetNodeID when searching 2008-08-12 17:40:22 +00:00
GraphWriter.cpp Use gv's --spartan option, which trades away an extra row of UI buttons 2008-04-15 17:27:05 +00:00
IsInf.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
IsNAN.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00
ManagedStatic.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
MemoryBuffer.cpp Fix more -Wshorten-64-to-32 warnings. 2008-05-05 18:30:58 +00:00
PluginLoader.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
raw_ostream.cpp add support for a cout/cerr analog (outs()/errs()) as well as 2008-08-17 04:13:37 +00:00
SlowOperationInformer.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
SmallPtrSet.cpp Fix several const-correctness issues, resolving some -Wcast-qual warnings. 2008-08-05 14:45:15 +00:00
Statistic.cpp Clean up the use of static and anonymous namespaces. This turned up 2008-05-13 00:00:25 +00:00
Streams.cpp Remove more iostream header includes. Needed to implement a "FlushStream" 2008-05-29 21:46:33 +00:00
StringExtras.cpp Fix more -Wshorten-64-to-32 warnings. 2008-05-05 18:30:58 +00:00
StringMap.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
StringPool.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
SystemUtils.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
Timer.cpp Reapply 53476 and 53480, with a fix so that it properly updates 2008-07-14 18:19:29 +00:00