1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/lib/AsmParser
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
..
LLLexer.cpp Add read/write support for X86's sseregparm. 2008-08-13 18:40:23 +00:00
LLLexer.h Add explicit keywords. 2008-03-25 22:06:05 +00:00
llvmAsmParser.cpp.cvs Generated files for 54744. 2008-08-13 18:41:46 +00:00
llvmAsmParser.h.cvs Generated files for 54744. 2008-08-13 18:41:46 +00:00
llvmAsmParser.y Add read/write support for X86's sseregparm. 2008-08-13 18:40:23 +00:00
llvmAsmParser.y.cvs Generated files for 54744. 2008-08-13 18:41:46 +00:00
Makefile
Parser.cpp Change the MemoryBuffer::getFile* methods to take just a pointer to the 2008-04-01 18:04:03 +00:00
ParserInternals.h Rework the routines that convert AP[S]Int into a string. Now, instead of 2008-08-17 07:19:36 +00:00