summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't require Registry specializations to define random static variables.Gordon Henriksen2008-08-174-27/+15
| | | | llvm-svn: 54902
* Drop an unnecessary include.Gordon Henriksen2008-08-171-1/+0
| | | | llvm-svn: 54901
* Regenerate.Gordon Henriksen2008-08-173-291/+291
| | | | llvm-svn: 54900
* Rename some GC classes so that their roll will hopefully be clearer.Gordon Henriksen2008-08-1738-678/+524
| | | | | | | | | | | | | | | | | | In particular, Collector was confusing to implementors. Several thought that this compile-time class was the place to implement their runtime GC heap. Of course, it doesn't even exist at runtime. Specifically, the renames are: Collector -> GCStrategy CollectorMetadata -> GCFunctionInfo CollectorModuleMetadata -> GCModuleInfo CollectorRegistry -> GCRegistry Function::getCollector -> getGC (setGC, hasGC, clearGC) Several accessors and nested types have also been renamed to be consistent. These changes should be obvious. llvm-svn: 54899
* Make it compile on VC2005:Cedric Venet2008-08-1713-101/+135
| | | | | | | | - update VC projects. - Add an overload to llvm::Stream for <<, since std::hex and std::dec have type std::ios_base& (*)(std::ios_base&) in VC++. (templating the function don't work, due to ambiguities) - add ../ on several include in X86/AsmPrinter/ llvm-svn: 54898
* getLLVMName is only used for types now, which always pass in LocalPrefix. ↵Chris Lattner2008-08-171-15/+10
| | | | | | Specialize on it. llvm-svn: 54897
* switch valuemap's from std::map to densemap. This speeds up llvm-disChris Lattner2008-08-171-11/+8
| | | | | | on a stripped kc++ .bc file from 0.83 to 0.77s (8%) llvm-svn: 54896
* Don't instantiate GC metadata for declarations.Gordon Henriksen2008-08-172-1/+3
| | | | llvm-svn: 54895
* Set ignores.Gordon Henriksen2008-08-170-0/+0
| | | | llvm-svn: 54894
* Set ignores.Gordon Henriksen2008-08-170-0/+0
| | | | llvm-svn: 54893
* Link GC metadata printers by default to llcAnton Korobeynikov2008-08-172-0/+38
| | | | llvm-svn: 54892
* Fix merge errorAnton Korobeynikov2008-08-174-176/+0
| | | | llvm-svn: 54891
* Remove asmprinters from examples by default. This reduces their size by ~5%Anton Korobeynikov2008-08-174-4/+4
| | | | llvm-svn: 54890
* Move ARM to pluggable asmprinterAnton Korobeynikov2008-08-175-20/+71
| | | | llvm-svn: 54889
* Use correct name for PPC codegen libraryAnton Korobeynikov2008-08-171-1/+1
| | | | llvm-svn: 54888
* Factor out asmprinter out of ppcAnton Korobeynikov2008-08-175-8/+57
| | | | llvm-svn: 54887
* Move X86 assembler printers into separate directory. This allows JIT-only ↵Anton Korobeynikov2008-08-1712-9/+65
| | | | | | users not to link it in (use 'x86codegen' llvm-config arg for this) llvm-svn: 54886
* Move all assembler printing related stuff into new libAsmPrinterAnton Korobeynikov2008-08-175-1/+173
| | | | llvm-svn: 54885
* Factor out asmprinters from collector interface.Anton Korobeynikov2008-08-171-0/+18
| | | | llvm-svn: 54884
* Type::isIntegerType() returns true for types between Bool and LongLong.Argyrios Kyrtzidis2008-08-172-3/+3
| | | | | | Put WChar between them to make it integer type. llvm-svn: 54882
* Factor GC metadata table assembly generation out of Collector in preparation ↵Gordon Henriksen2008-08-1715-53/+268
| | | | | | for splitting AsmPrinter into its own library. llvm-svn: 54881
* Factor GC metadata table assembly generation out of Collector in preparation ↵Gordon Henriksen2008-08-177-26/+129
| | | | | | for splitting AsmPrinter into its own library. llvm-svn: 54880
* Get raw_ostream.cpp to compile on MSVC.Argyrios Kyrtzidis2008-08-171-5/+11
| | | | llvm-svn: 54879
* Revert 54821. It's miscompiling 252.eon and 447.dealIIEvan Cheng2008-08-171-118/+1
| | | | llvm-svn: 54878
* I found a better place for this optz'n.Nick Lewycky2008-08-171-14/+10
| | | | llvm-svn: 54877
* Xor'ing both sides of icmp by sign-bit is equivalent to swapping signedness ofNick Lewycky2008-08-172-22/+72
| | | | | | | | the predicate. Also, make this optz'n apply in more cases where it's safe to do so. llvm-svn: 54876
* avoid an extraneous std::string constructionChris Lattner2008-08-171-1/+1
| | | | llvm-svn: 54875
* various updates to match r54873 on mainline.Chris Lattner2008-08-176-15/+16
| | | | llvm-svn: 54874
* Rework the routines that convert AP[S]Int into a string. Now, instead ofChris Lattner2008-08-1713-139/+169
| | | | | | | | | | | | | | | | | 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
* printing with an unspecified dest means to print to stdout.Chris Lattner2008-08-171-1/+1
| | | | llvm-svn: 54872
* don't delete a variable on the stackChris Lattner2008-08-171-2/+2
| | | | llvm-svn: 54871
* Fix build on GCC 4.3.Nick Lewycky2008-08-171-0/+2
| | | | llvm-svn: 54870
* remove a dead APInt ctor.Chris Lattner2008-08-173-21/+2
| | | | llvm-svn: 54869
* avoid string thrashing when formatting names in output. ThisChris Lattner2008-08-171-54/+130
| | | | | | speeds up release-asserts llvm-dis on kc++ from 1.86s to 1.04s (~79%) llvm-svn: 54868
* random cleanups.Chris Lattner2008-08-171-53/+28
| | | | llvm-svn: 54866
* add support for a cout/cerr analog (outs()/errs()) as well asChris Lattner2008-08-172-1/+59
| | | | | | | a simple adaptor class to give raw output capabilities to something that wants to write to an ostream. llvm-svn: 54865
* simplify this code a bit more.Chris Lattner2008-08-171-15/+7
| | | | llvm-svn: 54864
* opening "-" automatically yields stdout.Chris Lattner2008-08-171-0/+7
| | | | llvm-svn: 54863
* Migrate the retain/release checker to not manage the RefBindings::Factory objectTed Kremenek2008-08-173-48/+31
| | | | | | directly, but instead have GRStateManager manage it. llvm-svn: 54862
* remove global variables for output stream.Chris Lattner2008-08-171-87/+69
| | | | llvm-svn: 54861
* Migrate GRState::ConstEqTy (map used from tracking constants for symbols) to ↵Ted Kremenek2008-08-172-40/+30
| | | | | | use the generic data map instead. llvm-svn: 54860
* Added GRStateTrait.h, which includes boilerplate code for creating ↵Ted Kremenek2008-08-173-39/+72
| | | | | | | | specializations of GRStateTrait<>. Modified GRStateTrait<ConstNotEq> in GRState to use the boilerplate in GRStateTrait<> for ImmutableMaps. llvm-svn: 54859
* Switch to shared raw_ostream code instead of having it be clang specific.Chris Lattner2008-08-171-101/+17
| | | | | | This also helps the eventual distcc project. llvm-svn: 54858
* rename OutputData to 'write' to match ostream.Chris Lattner2008-08-172-3/+3
| | | | llvm-svn: 54857
* remove accidental comment.Chris Lattner2008-08-171-1/+1
| | | | llvm-svn: 54856
* add a new raw_ostream class which is an extremely high performance ostream thatChris Lattner2008-08-172-0/+234
| | | | | | | | can *only* output data (no seeking, reading, etc). This is adapted from the clang "-E outputter", and is roughly 10% faster than stdio on darwin and 30% (or more) faster than std::ostream. llvm-svn: 54855
* honor EscapeSpaces in 2nd overload of EscapeText()Nico Weber2008-08-161-3/+8
| | | | llvm-svn: 54854
* Move the C++ Sema tests into a separate SemaCXX directory.Argyrios Kyrtzidis2008-08-166-1/+1
| | | | llvm-svn: 54853
* Move the type checking that Sema::ActOnCastExpr does into a new ↵Argyrios Kyrtzidis2008-08-162-33/+41
| | | | | | Sema::CheckCastTypes function so that it can be reused. llvm-svn: 54852
* Put (argument)-expression-list parsing in a separate function so that it can ↵Argyrios Kyrtzidis2008-08-162-14/+36
| | | | | | be re-used. llvm-svn: 54851
OpenPOWER on IntegriCloud