- Sep 05, 2011
-
-
Nick Lewycky authored
instructions are more aligned than the CPU requires, and adds some additional directives, to follow in future patches. Patch by David Meyer! llvm-svn: 139125
-
Nick Lewycky authored
llvm-svn: 139124
-
Nick Lewycky authored
llvm-svn: 139122
-
Benjamin Kramer authored
InstSimplify: Don't try to replace an extractvalue/insertvalue pair with the original value if types don't match. Fixes clang selfhost. llvm-svn: 139120
-
Duncan Sands authored
exception. llvm-svn: 139117
-
Benjamin Kramer authored
Speed up BCPL comment lexing by looking aggressively for newlines and then scannig backwards to see if the newline is escaped. 3% speedup in preprocessing all of clang with -Eonly. Also includes a small testcase for coverage. llvm-svn: 139116
-
Benjamin Kramer authored
llvm-svn: 139115
-
Benjamin Kramer authored
llvm-svn: 139114
-
Duncan Sands authored
up do-nothing exception handling code produced by dragonegg. llvm-svn: 139113
-
Chandler Carruth authored
a very large chunk of code and found zero false positives. I've only found a few bugs, but that likely is because bugs of this nature actually do manifest. We've also identified several bugs that were caught by Valgrind, but would have been caught faster and more easily with this warning. If anyone has concerns, or this causes fallout on any build bots, lemme know. I'm happy to just put it under -Wmost. llvm-svn: 139112
-
Richard Smith authored
Implement the suggested resolution of WG21 N3307 issue 19: When determining whether a class is an aggregate in C++0x, treat all functions which are neither deleted nor defaulted as user-provided, not just special member functions. The wording of the standard only defines the term "user-provided" for special member functions, but the intent seems to be that any function can be user-provided. llvm-svn: 139111
-
Benjamin Kramer authored
- Drop support for X >u 0, it's equivalent to X != 0 and should be canonicalized into the latter. - Add X < 1 -> unlikely, which is what instcombine canonicalizes X <= 0 into. - Add X > -1 -> likely, which is what instcombine canonicalizes X >= 0 into. llvm-svn: 139110
-
Richard Smith authored
llvm-svn: 139109
-
Chandler Carruth authored
edis shared library in the Makefile build, also stop building it in the CMake build. Patch by arrowdodger! llvm-svn: 139108
-
Chandler Carruth authored
some CMake patch backlog... llvm-svn: 139107
-
Chandler Carruth authored
Patch by arrowdodger! llvm-svn: 139106
-
Francois Pichet authored
Pass 0 instead of a empty TemplateArgumentListInfo when creating a CXXDependentScopeMemberExpr to handle a "this->" fixit (lookup into dependent bases of class template) Otherwise the fixit doesn't really work for subsequent lookup. llvm-svn: 139105
-
- Sep 04, 2011
-
-
Benjamin Kramer authored
llvm-svn: 139104
-
Richard Smith authored
PR10458: Last part of providing 'auto' type specifier as an extension in C++98: permit it within type-ids. llvm-svn: 139103
-
Richard Smith authored
PR10458: Finesse behaviour of C++0x features when in pre-0x mode. Accept for-range and auto with an ExtWarn, and produce a -Wc++0x-compat warning in C++98 mode when auto is used as a storage class. llvm-svn: 139102
-
Sebastian Redl authored
Fix bug this uncovered. Address minor comments from Doug. Enable cxx_implicit_moves feature. llvm-svn: 139101
-
Tobias Grosser authored
llvm-svn: 139097
-
Tobias Grosser authored
llvm-svn: 139096
-
Tobias Grosser authored
llvm-svn: 139095
-
Tobias Grosser authored
llvm-svn: 139094
-
Tobias Grosser authored
llvm-svn: 139093
-
Tobias Grosser authored
It may happen that we generate the code of a basic block from the original scop is code generated several times. The new naming scheme reduces confusing that earlier appeared as the version numbers of the new basic blocks could have been interpreted as part of the name of the original basic block. llvm-svn: 139092
-
Bill Wendling authored
Use Duncan's patch to delete the instructions in reverse order (minus the landingpad and terminator). llvm-svn: 139090
-
Bill Wendling authored
call. The call may be in the same BB as the landingpad instruction. If that's the case, then inserting the loads after the landingpad inst, but before the extractvalues, causes undefined behavior. llvm-svn: 139088
-
Argyrios Kyrtzidis authored
Fixes http://llvm.org/PR10826. llvm-svn: 139087
-
Argyrios Kyrtzidis authored
Previously we would cut off the source file buffer at the code-completion point; this impeded code-completion inside C++ inline methods and, recently, with buffering ObjC methods. Have the code-completion inserted into the source buffer so that it can be buffered along with a method body. When we actually hit the code-completion point the cut-off lexing or parsing. Fixes rdar://10056932&8319466 llvm-svn: 139086
-
Argyrios Kyrtzidis authored
The function was only counting lines that included tokens and not empty lines, but MaxLines (mainly initiated to the line where the code-completion point resides) is a count of overall lines (even empty ones). llvm-svn: 139085
-
- Sep 03, 2011
-
-
Benjamin Kramer authored
llvm-svn: 139084
-
Benjamin Kramer authored
llvm-svn: 139080
-
Benjamin Kramer authored
llvm-svn: 139079
-
Benjamin Kramer authored
llvm-svn: 139078
-
Chandler Carruth authored
well. Also, clean up the flow of the code a bit, and factor things more nicely. Finally, add the test case that was missing from my previous commit (sorry), with new tests added to cover temporaries and other fun cases. llvm-svn: 139077
-
Bill Wendling authored
values that the resume instruction uses. PR10850 llvm-svn: 139076
-
Chandler Carruth authored
reference members of classes. We've had several bugs reported because of this, and there's no reason not to flag it right away in the compiler. Comments especially welcome on the strategy for implementing this warning (IE, what should trigger this?) and on the text of the warning itself. I'm going to extend this to cover obvious cases with temporaries and beef up the test cases some in subsequent patches. I'll then run it over a large codebase and make sure its not misbehaving before I add it to -Wall or turn it on by default. I think this one might be a good candidate for on by default. llvm-svn: 139075
-
Andrew Trick authored
llvm-svn: 139074
-