- Dec 21, 2010
-
-
Douglas Gregor authored
inconsistent with the type that the builtin *should* have, forget about the builtin altogether: we don't want subsequence analyses, CodeGen, etc., to think that we have a proper builtin function. C is protected from errors here because it allows one to use a library builtin without having a declaration, and detects inconsistent (re-)declarations of builtins during declaration merging. C++ was unprotected, and therefore would crash. Fixes PR8839. llvm-svn: 122351
-
Douglas Gregor authored
take into account the region of interest. Otherwise, we may fail to traverse some important preprocessed entity cursors. Fixes <rdar://problem/8554072>. llvm-svn: 122350
-
Chris Lattner authored
llvm-svn: 122349
-
Douglas Gregor authored
llvm-svn: 122348
-
Douglas Gregor authored
classes, categories, protocols, and class extensions, where the methods and properties of these entities would be inserted into the DeclContext in an ordering that doesn't necessarily reflect source order. The culprits were Sema::ActOnMethodDeclaration(), which did not perform the insertion of the just-created method declaration into the DeclContext for these Objective-C entities, and Sema::ActOnAtEnd(), which inserted all method declarations at the *end* of the DeclContext. With this fix in hand, clean up the code-completion actions for property setters/getters that worked around this brokenness in the AST. Fixes <rdar://problem/8062781>, where this problem manifested as poor token-annotation information, but this would have struck again in many other places. llvm-svn: 122347
-
David Greene authored
Revert 122341. It breaks some darwin tests. llvm-svn: 122346
-
Stuart Hastings authored
llvm-svn: 122345
-
Duncan Sands authored
visit instructions before their uses, since InstructionSimplify does a better job in that case. All this prompted by Frits van Bommel. llvm-svn: 122343
-
Stuart Hastings authored
llvm-svn: 122342
-
David Greene authored
Fix PR 8199. This patch prepends the build tool dir to LLVM programs being tested. This ensures that we test the tools just built and not some random tools that might happen to be in the user's PATH. This makes LLVM testing much more stable and predictable. llvm-svn: 122341
-
Michael J. Spencer authored
llvm-svn: 122340
-
Michael J. Spencer authored
llvm-svn: 122339
-
Douglas Gregor authored
information caused token-annotation to fail in funny ways. Fixes <rdar://problem/8595386>. llvm-svn: 122338
-
Jim Grosbach authored
llvm-svn: 122337
-
Duncan Sands authored
not very important since the pass is only used for testing, but it does make it more realistic. Suggested by Frits van Bommel. llvm-svn: 122336
-
Douglas Gregor authored
llvm-svn: 122335
-
Daniel Dunbar authored
type. llvm-svn: 122334
-
Duncan Sands authored
llvm-svn: 122333
-
Duncan Sands authored
not assume this (for example in case more transforms get added below it). Suggested by Frits van Bommel. llvm-svn: 122332
-
Duncan Sands authored
llvm-svn: 122331
-
Duncan Sands authored
plenty left though!), in particular for multiplication. llvm-svn: 122330
-
Duncan Sands authored
llvm-svn: 122329
-
Duncan Sands authored
quite often, but don't make much difference in practice presumably because instcombine also knows them and more. llvm-svn: 122328
-
Duncan Sands authored
No functionality change. llvm-svn: 122327
-
Duncan Sands authored
a couple of existing transforms. This fires surprisingly often, for example when compiling gcc "(X+(-1))+1->X" fires quite a lot as well as various "and" simplifications (usually with a phi node operand). Most of the time this doesn't make a real difference since the same thing would have been done elsewhere anyway, eg: by instcombine, but there are a few places where this results in simplifications that we were not doing before. llvm-svn: 122326
-
Douglas Gregor authored
llvm-svn: 122325
-
Douglas Gregor authored
clang_getCursorLexicalParent() to cope with class and function templates, along with the parent of the translation unit. Fixes PR8761 and PR8766. llvm-svn: 122324
-
Douglas Gregor authored
looking in is complete. Fixes PR8756. llvm-svn: 122323
-
Douglas Gregor authored
checking trivial comparisons. Fixes PR8795. llvm-svn: 122322
-
Cameron Zwarich authored
of the problems with my last attempt were in the updating of LiveIntervals rather than the coalescing itself. Therefore, I decided to get that right first by essentially reimplementing the existing PHIElimination using LiveIntervals. It works correctly, with only a few tests failing (which may not be legitimate failures) and no new verifier failures (at least as far as I can tell, I didn't count the number per file). llvm-svn: 122321
-
Bob Wilson authored
Type legalization splits up i64 values into pairs of i32 values, which leads to poor quality code when inserting or extracting i64 vector elements. If the vector element is loaded or stored, it can be treated as an f64 value and loaded or stored directly from a VPR register. Use the pre-legalization DAG combiner to cast those vector elements to f64 types so that the type legalizer won't mess them up. Radar 8755338. llvm-svn: 122319
-
Douglas Gregor authored
llvm-svn: 122318
-
Douglas Gregor authored
llvm-svn: 122317
-
Johnny Chen authored
the process. The custom thread started before this point is running in a loop waiting for events to come. llvm-svn: 122316
-
Douglas Gregor authored
llvm-svn: 122315
-
Rafael Espindola authored
section. This helps because in practice sections form a dag with debug sections pointing to text sections. Finishing up the text sections first makes the debug section relaxation trivial. llvm-svn: 122314
-
Eric Christopher authored
Fixes rdar://8782223 llvm-svn: 122313
-
Bill Wendling authored
llvm-svn: 122312
-
Francois Pichet authored
Fix PR8832. llvm-svn: 122311
-
Chris Lattner authored
something that just glues two nodes together, even if it is sometimes used for flags. llvm-svn: 122310
-