summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* remove debugChris Lattner2009-12-311-1/+1
| | | | llvm-svn: 92369
* teach reassociate to factor x+x+x -> x*3. While I'm at it,Chris Lattner2009-12-312-32/+102
| | | | | | fix RemoveDeadBinaryOp to actually do something. llvm-svn: 92368
* It's OK for a return type to be incomplete if it's being defined.Anders Carlsson2009-12-311-3/+6
| | | | llvm-svn: 92367
* change reassociate to use SmallVector for its key datastructuresChris Lattner2009-12-311-15/+18
| | | | | | instead of std::vector. llvm-svn: 92366
* Make sure that an overriding return type is complete before checking if it's ↵Anders Carlsson2009-12-313-0/+59
| | | | | | covariant. Fixes PR5920. llvm-svn: 92365
* change an if to an assert, fix comment.Chris Lattner2009-12-311-4/+4
| | | | llvm-svn: 92364
* move the rest of the add optimization code out to OptimizeAdd,Chris Lattner2009-12-311-93/+94
| | | | | | improve some comments, simplify a bit of code. llvm-svn: 92363
* factor statistic updating better.Chris Lattner2009-12-311-19/+9
| | | | llvm-svn: 92362
* Remove rtti.cpp, it's very fragile and has been marked XFAIL for a while ↵Anders Carlsson2009-12-311-205/+0
| | | | | | now. Between rtti-layout.cpp and rtti-linkage.cpp, RTTI testing should be covered. llvm-svn: 92361
* More RTTI builder cleanup.Anders Carlsson2009-12-311-76/+26
| | | | llvm-svn: 92360
* Silence compiler warning.Benjamin Kramer2009-12-311-1/+1
| | | | | warning: comparison between signed and unsigned integer expressions llvm-svn: 92359
* Avoid an unnecessary copy of Predefines. getMemBufferCopy does the null ↵Benjamin Kramer2009-12-311-12/+3
| | | | | | termination for us. llvm-svn: 92358
* Convert to StringRef, avoid a memcpy in the common case.Benjamin Kramer2009-12-311-19/+16
| | | | llvm-svn: 92357
* Typo correction for C++ base and member initializers, e.g.,Douglas Gregor2009-12-313-32/+99
| | | | | | | | | | | | | | | test/FixIt/typo.cpp:41:15: error: initializer 'base' does not name a non-static data member or base class; did you mean the base class 'Base'? Derived() : base(), ^~~~ Base test/FixIt/typo.cpp:42:15: error: initializer 'ember' does not name a non-static data member or base class; did you mean the member 'member'? ember() { } ^~~~~ member llvm-svn: 92355
* simple fix for an incorrect factoring which causes aChris Lattner2009-12-312-0/+18
| | | | | | miscompilation, PR5458. llvm-svn: 92354
* merge some more tests in.Chris Lattner2009-12-313-25/+28
| | | | llvm-svn: 92353
* filecheckizeChris Lattner2009-12-314-92/+101
| | | | llvm-svn: 92352
* Add another typo test for nested-name-specifiersDouglas Gregor2009-12-311-0/+2
| | | | llvm-svn: 92351
* Typo correction for identifiers within nested name specifiers, e.g.,Douglas Gregor2009-12-312-1/+24
| | | | | | | | | | typo.cpp:18:1: error: use of undeclared identifier 'other_std'; did you mean 'otherstd'? other_std::strng str1; ^~~~~~~~~ otherstd llvm-svn: 92350
* fix refactoroChris Lattner2009-12-311-1/+1
| | | | llvm-svn: 92349
* Typo correction for template names, e.g.,Douglas Gregor2009-12-313-1/+32
| | | | | | | | | | typo.cpp:27:8: error: no template named 'basic_sting' in namespace 'std'; did you mean 'basic_string'? std::basic_sting<char> b2; ~~~~~^~~~~~~~~~~ basic_string llvm-svn: 92348
* factor code out into helper functions.Chris Lattner2009-12-311-88/+109
| | | | llvm-svn: 92347
* switch some std::vector's to smallvector. Reduce nesting.Chris Lattner2009-12-311-54/+57
| | | | llvm-svn: 92346
* Typo correction for member access into classes/structs/unions, e.g.,Douglas Gregor2009-12-314-5/+33
| | | | | | s.fnd("hello") llvm-svn: 92345
* use more modern datastructures.Chris Lattner2009-12-311-4/+5
| | | | llvm-svn: 92344
* clean up -debug output.Chris Lattner2009-12-311-3/+4
| | | | llvm-svn: 92343
* Let constraint manager inform checkers that some assumption logic has happend.Zhongxing Xu2009-12-318-14/+91
| | | | | | | | | Add new states for symbolic regions tracked by malloc checker. This enables us to do malloc checking more accurately. See test case. Based on Lei Zhang's patch and discussion. llvm-svn: 92342
* Implement typo correction for id-expressions, e.g.,Douglas Gregor2009-12-318-25/+75
| | | | | | | | | | | | | typo.cpp:22:10: error: use of undeclared identifier 'radious'; did you mean 'radius'? return radious * pi; ^~~~~~~ radius This was super-easy, since we already had decent recovery by looking for names in dependent base classes. llvm-svn: 92341
* Document the edit-distance algorithm used in StringRef, switch it overDouglas Gregor2009-12-312-5/+19
| | | | | | to SmallVector, and add a unit test. llvm-svn: 92340
* improve diagnostics for case when a field type is unknown byChris Lattner2009-12-312-1/+12
| | | | | | | not emitting a follow-on error about 'int', which the user never wrote. PR5924. llvm-svn: 92339
* this #include is ok.Chris Lattner2009-12-311-1/+1
| | | | llvm-svn: 92338
* fix Analysis/DebugInfo.h to not include Metadata.h. Do thisChris Lattner2009-12-314-15/+14
| | | | | | | by moving one method out of line and eliminating redundant checks from other methods. llvm-svn: 92337
* add some basic named MD tests.Chris Lattner2009-12-311-0/+3
| | | | llvm-svn: 92336
* use early exits to reduce indentation.Chris Lattner2009-12-311-15/+16
| | | | llvm-svn: 92335
* eliminate another copy of the mdnode printing logic, simplify theChris Lattner2009-12-311-32/+23
| | | | | | one that remains. llvm-svn: 92334
* random tidying for MDNode printing.Chris Lattner2009-12-311-10/+7
| | | | llvm-svn: 92333
* eliminate a bunch of useless forwarding functions with one caller.Chris Lattner2009-12-311-21/+11
| | | | llvm-svn: 92332
* make mdnMap type safe, rename accessors for consistency with the rest of llvm.Chris Lattner2009-12-311-12/+13
| | | | llvm-svn: 92331
* metadata can't be a global var initializer.Chris Lattner2009-12-311-4/+0
| | | | llvm-svn: 92330
* simplify mdnode printing logic. Now N->dump() onlyChris Lattner2009-12-311-127/+105
| | | | | | dumps one node instead of all of them. llvm-svn: 92329
* don't unittest mdnode printing, we have disassembler tests for this.Chris Lattner2009-12-311-18/+1
| | | | llvm-svn: 92328
* unify two copies of the NamedMDNode printing code.Chris Lattner2009-12-311-25/+22
| | | | llvm-svn: 92327
* fix printing of function-local metadata to print all the operands of theChris Lattner2009-12-311-2/+2
| | | | | | mdnode, not just operand 0 over and over. llvm-svn: 92326
* simplify printing of mdstring and Argument.Chris Lattner2009-12-311-12/+5
| | | | llvm-svn: 92325
* simplify asmprinting of NamedMDNodeChris Lattner2009-12-311-34/+4
| | | | llvm-svn: 92324
* Remove #include of metadata.h from intrinsicinst.h. The onlyChris Lattner2009-12-313-4/+13
| | | | | | | method that needs it (DbgValueInst::getValue) has been moved out of line. llvm-svn: 92323
* rename "elements" of metadata to "operands". "Elements" areChris Lattner2009-12-3113-136/+136
| | | | | | | things that occur in types. "operands" are things that occur in values. llvm-svn: 92322
* Optimize MDNode to coallocate the operand list immediatelyChris Lattner2009-12-313-41/+61
| | | | | | | | | | | | | after the MDNode in memory. This eliminates the operands pointer and saves a new[] per node. Note that the code in DIDerivedType::replaceAllUsesWith is wrong and quite scary. A MDNode should not be RAUW'd with something else: this changes all uses of the mdnode, which may not be debug info related! Debug info should use something non-mdnode for declarations. llvm-svn: 92321
* tidyChris Lattner2009-12-311-3/+4
| | | | llvm-svn: 92320
* Fix a bunch of bugs with VMI RTTI building, and add a whole bunch of tests.Anders Carlsson2009-12-303-219/+257
| | | | llvm-svn: 92319
OpenPOWER on IntegriCloud