1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/lib
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
..
Analysis Remove GCSE, ValueNumbering, and LoadValueNumbering. These have been deprecated for almost a year; it's finally time for them to go away. 2008-08-15 21:31:02 +00:00
Archive Fold the useful features of alist and alist_node into ilist, and 2008-07-28 21:51:04 +00:00
AsmParser Rework the routines that convert AP[S]Int into a string. Now, instead of 2008-08-17 07:19:36 +00:00
Bitcode Enable first-class aggregates support. 2008-07-23 00:34:11 +00:00
CodeGen Rework the routines that convert AP[S]Int into a string. Now, instead of 2008-08-17 07:19:36 +00:00
Debugger - Re-apply 52748 and friends with fix. GetConstantStringInfo() returns an empty string for ConstantAggregateZero case which surprises selectiondag. 2008-06-30 07:31:25 +00:00
ExecutionEngine Move SLEB/ULEB size calculation routines from AsmPrinter to TargetAsmInfo. This makes JIT asmprinter-free. 2008-08-16 12:57:46 +00:00
Linker Reimplement LinkFunctionProtos in terms of GetLinkageResult. This fixes 2008-07-14 07:23:24 +00:00
Support Rework the routines that convert AP[S]Int into a string. Now, instead of 2008-08-17 07:19:36 +00:00
System add a helper method to sys::Path for clang, patch by 2008-08-11 23:39:47 +00:00
Target Rework the routines that convert AP[S]Int into a string. Now, instead of 2008-08-17 07:19:36 +00:00
Transforms Rework the routines that convert AP[S]Int into a string. Now, instead of 2008-08-17 07:19:36 +00:00
VMCore Rework the routines that convert AP[S]Int into a string. Now, instead of 2008-08-17 07:19:36 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00