- May 08, 2012
-
-
Jakob Stoklund Olesen authored
The getPointerRegClass() hook can return register classes that depend on the calling convention of the current function (ptr_rc_tailcall). So far, we have been able to infer the calling convention from the subtarget alone, but as we add support for multiple calling conventions per target, that no longer works. Patch by Yiannis Tsiouris! llvm-svn: 156328
-
- May 07, 2012
-
-
Jakob Stoklund Olesen authored
Test cases for this code are coming. It is not used for anything yet. llvm-svn: 156327
-
Sebastian Pop authored
llvm-svn: 156326
-
Sebastian Pop authored
llvm-svn: 156325
-
Owen Anderson authored
llvm-svn: 156324
-
Owen Anderson authored
Teach reassociate to commute FMul's and FAdd's in order to canonicalize the order of their operands across instructions. This allows for greater CSE opportunities. llvm-svn: 156323
-
Chandler Carruth authored
After discussion with several people, including Doug Gregor, we've decided to change our approach here. If you have questions about this header file, the commit removing it, etc., please reach out to me off-list. llvm-svn: 156322
-
Nuno Lopes authored
make this test a little more useful. I'll add more tests for bound checking once -fbounds-checking patch gets in llvm-svn: 156321
-
Anna Zaks authored
SValBuilder should return an UnknownVal() when comparison of int and ptr fails. Previous to this commit, it went on assuming that we are dealing with pointer arithmetic. PR12509, radar://11390991 llvm-svn: 156320
-
Preston Gurd authored
optional library support to the llvm-build tool: - Add new command line parameter to llvm-build: “--enable-optional-libraries” - Add handing of new llvm-build library type “OptionalLibrary” - Update Cmake and automake build systems to pass correct flags to llvm-build based on configuration Patch by Dan Malea! llvm-svn: 156319
-
Jordy Rose authored
This was probably intended all along. llvm-svn: 156318
-
Jakob Stoklund Olesen authored
This function is a generalization of getMatchingSuperRegClass() to the symmetric case where both sides are using a sub-register index. It will find a super-register class and sub-register indexes that make this diagram commute: PreA SuperRC ----------> RCA | | | | PreB | | SubA | | | | V V RCB ----------> SubRC SubB This can be used to coalesce copies like: %vreg1:sub16 = COPY %vreg2:sub16; GR64:%vreg1, GR32: %vreg2 llvm-svn: 156317
-
Chad Rosier authored
single use. rdar://11360370 llvm-svn: 156316
-
Anna Zaks authored
To solve the inconsistency pointed out in Erik's review, refactor class hierarchy of ProgramPoints so that PreStmtPurgeDeadSymbols and PostStmtPurgeDeadSymbols both subclass from StmtPoint instead of PostStmt. llvm-svn: 156315
-
Johnny Chen authored
Move the el_source() call after the section of code which sets up the default "ctrl-r" and "ctrl-w" bindings so that user-provided .editrc has a chance to override the lldb's default key bindings. llvm-svn: 156314
-
Matt Beaumont-Gay authored
Fixes a -Woverflow warning from gcc when building for 32-bit platforms. llvm-svn: 156313
-
Manman Ren authored
This patch will optimize -(x != 0) on X86 FROM cmpl $0x01,%edi sbbl %eax,%eax notl %eax TO negl %edi sbbl %eax %eax In order to generate negl, I added patterns in Target/X86/X86InstrCompiler.td: def : Pat<(X86sub_flag 0, GR32:$src), (NEG32r GR32:$src)>; rdar: 10961709 llvm-svn: 156312
-
Nuno Lopes authored
remove code to add bound checks for simple array accesses, since those are already covered by the check with the objectsize builtin remove the comparison of objectsize with -1. since it's an unsigned comparison, it will always succeed if objectsize returns -1, which is enough to have the check removed llvm-svn: 156311
-
Anna Zaks authored
As per Jordy's and Ted's comment, use the default StopTracking summary instead of adding all arguments to ScratchArs. llvm-svn: 156310
-
Howard Hinnant authored
SFINAE __bit_iterator such that it will only get instantiated with a container that has the nested type __storage_type. This prevents accidental instantiation such as in http://llvm.org/bugs/show_bug.cgi?id=12755. This fixes http://llvm.org/bugs/show_bug.cgi?id=12755. llvm-svn: 156308
-
Sean Callanan authored
and occasionally failure to recognize instructions. This problem affects ARM and Thumb BLX instructions. llvm-svn: 156307
-
Sebastian Pop authored
llvm-svn: 156306
-
Sebastian Pop authored
llvm-svn: 156305
-
Douglas Gregor authored
llvm-svn: 156304
-
Manuel Klimek authored
llvm-svn: 156302
-
Manuel Klimek authored
llvm-svn: 156301
-
Filipe Cabecinhas authored
llvm-svn: 156300
-
Manuel Klimek authored
The chdir is not the perfect fix, as it is thread hostile. The real fix will be to make -working-dir work correctly, which will take time to implement. Before that, the tooling library cannot be used concurrently. llvm-svn: 156299
-
Abramo Bagnara authored
llvm-svn: 156298
-
Richard Smith authored
overload candidate, and include its message in any subsequent 'candidate not viable due to substitution failure' note we may produce. To keep the note small (since the 'overload resolution failed' diagnostics are often already very verbose), the text of the SFINAE diagnostic is included as part of the text of the note, and any notes which were attached to it are discarded. There happened to be spare space in OverloadCandidate into which a PartialDiagnosticAt could be squeezed, and this patch goes to lengths to avoid unnecessary PartialDiagnostic copies, resulting in no slowdown that I could measure. (Removal in passing of some PartialDiagnostic copies has resulted in a slightly smaller clang binary overall.) Even on a torture test, I was unable to measure a memory increase of above 0.2%. llvm-svn: 156297
-
Craig Topper authored
Convert AVX non-temporal store builtins to LLVM-native IR. This was previously done for SSE builtins. llvm-svn: 156296
-
Eric Christopher authored
Patch by Jack Carter. llvm-svn: 156295
-
Eric Christopher authored
Patch by Jack Carter. llvm-svn: 156294
-
Eric Christopher authored
Patch by Jack Carter. llvm-svn: 156293
-
Eric Christopher authored
Patch by Jack Carter. llvm-svn: 156292
-
John McCall authored
so that we actually accumulate all the delayed diagnostics. Do this so that we can restore those diagnostics to good standing if it turns out that we were wrong to suppress, e.g. if the tag specifier is actually an elaborated type specifier and not a declaration. llvm-svn: 156291
-
John McCall authored
llvm-svn: 156290
-
John McCall authored
separate pools owned by the RAII objects that keep pushing decl state. This gives us quite a bit more flexibility. llvm-svn: 156289
-
John McCall authored
llvm-svn: 156288
-
Craig Topper authored
llvm-svn: 156287
-