llvm-6502/lib/Transforms/Utils
Chris Lattner fad86b003a 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.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54873 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-17 07:19:36 +00:00
..
BasicBlockUtils.cpp Add some checks that got lost in the shuffle. This fixes 464.h264ref. 2008-07-18 17:46:41 +00:00
BasicInliner.cpp Clean up the use of static and anonymous namespaces. This turned up 2008-05-13 00:00:25 +00:00
BreakCriticalEdges.cpp LoopIndexSplit can sometimes result in cases where a block in its own domfrontier. 2008-06-03 18:29:48 +00:00
CloneFunction.cpp Factor code to copy global value attributes like 2008-05-26 19:58:59 +00:00
CloneLoop.cpp Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989 2008-04-25 16:53:59 +00:00
CloneModule.cpp Factor code to copy global value attributes like 2008-05-26 19:58:59 +00:00
CloneTrace.cpp Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989 2008-04-25 16:53:59 +00:00
CodeExtractor.cpp Use Instruction::eraseFromParent(). 2008-06-21 22:08:46 +00:00
DemoteRegToStack.cpp Fix warning when assertions disabled. 2008-06-21 19:49:01 +00:00
InlineCost.cpp Inliner tweak. Function calls should cost more than one instruction! 2008-07-17 01:31:49 +00:00
InlineFunction.cpp Enable first-class aggregates support. 2008-07-23 00:34:11 +00:00
LCSSA.cpp Enable first-class aggregates support. 2008-07-23 00:34:11 +00:00
Local.cpp Use Instruction::eraseFromParent(). 2008-06-21 22:08:46 +00:00
LoopSimplify.cpp Use Loop::block_iterator. 2008-06-22 20:18:58 +00:00
LowerAllocations.cpp API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.) 2008-05-16 19:29:10 +00:00
LowerInvoke.cpp Tidy up BasicBlock::getFirstNonPHI, and change a bunch of places to 2008-05-23 21:05:58 +00:00
LowerSwitch.cpp 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
Mem2Reg.cpp Change class' public PassInfo variables to by initialized with the 2008-05-13 02:05:11 +00:00
PromoteMemoryToRegister.cpp API changes for class Use size reduction, wave 1. 2008-04-06 20:25:17 +00:00
SimplifyCFG.cpp Use empty() instead of begin() == end(). 2008-08-14 18:13:49 +00:00
UnifyFunctionExitNodes.cpp Enable first-class aggregates support. 2008-07-23 00:34:11 +00:00
UnrollLoop.cpp Revert 52645, the loop unroller changes. It caused a regression in 252.eon. 2008-06-24 20:44:42 +00:00
ValueMapper.cpp rewrite operand loops to use iterators 2008-05-30 21:24:22 +00:00