- May 12, 2014
-
-
David Blaikie authored
llvm-svn: 208506
-
Nico Weber authored
(LLVM's lib/Option looks like it might appreciate being hit with the std::unique_ptr stick.) llvm-svn: 208505
-
David Blaikie authored
This test was using the inliner and other optimizations to test a case that's actually a bug anyway. Bug and possible fix/discussion described here ( http://reviews.llvm.org/D3714 ). But the functionality that was implemented along with this test is still desired, so simplify the test to verify a more obvious/less wrong case that the functionality addressed: looking through const sugar to the underlying type when emitting a constant (so the constant is emitted as signed/unsigned as appropriate depending on the signedness of the underlying type). llvm-svn: 208504
-
Nico Weber authored
llvm-svn: 208503
-
David Blaikie authored
Filed as PR19712, LLVM fails to detect the right type of an enum constant when a frontend does not provide an underlying type for the enumeration type. llvm-svn: 208502
-
Hal Finkel authored
The counter-loops formation pass needs to know what operations might be function calls (because they can't appear in counter-based loops). On PPC32, 128-bit shifts might be runtime calls (even though you can't use __int128 on PPC32, it seems that SROA might form them). Fixes PR19709. llvm-svn: 208501
-
David Blaikie authored
And the winner by a nose is isUnsignedDIType, for no particular reason. These two functions were just complements of each other and used in very related code, so refactor callers to just use one of them. llvm-svn: 208500
-
Alp Toker authored
llvm-svn: 208499
-
Alp Toker authored
Also correct argument/parameter terminology. No change in functionality. llvm-svn: 208498
-
Benjamin Kramer authored
llvm-svn: 208497
-
- May 11, 2014
-
-
David Blaikie authored
DwarfUnit: Factor out calling isUnsignedDIType into a utility function so each caller of emitConstantValue doesn't have to call it separately. llvm-svn: 208496
-
David Blaikie authored
DwarfUnit: Share common constant value emission between APInts of small (<= 64 bit) and MCOperand immediates. Doesn't seem a good reason to duplicate this code (it was more literally duplicated prior to r208494, and while the dataN code /does/ actually fire in this case, it doesn't seem necessary (and the DWARF standard recommends using udata/sdata pervasively instead of dataN, so as to indicate signedness of the values)) llvm-svn: 208495
-
David Blaikie authored
This code looks to have become dead at some time in the past. I tried to reproduce cases where LLVM would emit constants with dataN, but could not. Upon inspection it seems the code doesn't do that anymore - the only time a size is provided by isTypeSigned is when the type is signed, and in those cases we use sdata. dataN is only used for unsigned types and isTypeSigned doesn't provide a value for sizeInBits in that case. Remove the dead cases/size plumbing. llvm-svn: 208494
-
Benjamin Kramer authored
Some configurations of MSVC get horribly confused by the forward declaration and explode. llvm-svn: 208493
-
Benjamin Kramer authored
Turns out that there is a very cheap way of testing whether a block is dead, just look it up in the DomTree. We have to do this anyways so just ignore unreachable blocks before sorting by domination. This restores a proper ordering for std::stable_sort when dead code is present. Covered by existing tests & buildbots running in STL debug mode (MSVC). llvm-svn: 208492
-
Benjamin Kramer authored
llvm-svn: 208491
-
Simon Atanasyan authored
llvm-readobj output format. llvm-svn: 208490
-
Simon Atanasyan authored
in a human readable form. llvm-svn: 208489
-
Serge Pavlov authored
This patch enables transformations: BinOp(shuffle(v1), shuffle(v2)) -> shuffle(BinOp(v1, v2)) BinOp(shuffle(v1), const1) -> shuffle(BinOp, const2) They allow to eliminate extra shuffles in some cases. Differential Revision: http://reviews.llvm.org/D3525 llvm-svn: 208488 -
Filipe Cabecinhas authored
When lowering build_vector to an insertps, we would still lower it, even if the source vectors weren't v4x32. This would break on avx if the source was a v8x32. We now check the type of the source vectors. llvm-svn: 208487
-
Saleem Abdulrasool authored
Add ARM support for dllexport and dllimport attributes. This is a relatively conservative change. The alternative is to entirely drop the architecture requirement. The dllimport and dllexport attributes are not restricted to any architecture, simply to platforms that support this attribute (currently Windows). llvm-svn: 208486
-
Nico Weber authored
llvm-svn: 208485
-
Nico Weber authored
Also add test coverage for this case. Found by Richard Smith! llvm-svn: 208484
-
Nico Weber authored
The loop body used to contain a switch statement; it looks like r96685 replaced that with an if/else if/else but accidentally left one of the three break statements from the switch behind, skipping the clang_disposeString() call for replacements (and the rest of the loop too, which apparently doesn't make a differences for the test cases we have). r96685: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100215/027754.html This too might possibly the last leak in clang (PR19521). llvm-svn: 208483
-
Benjamin Kramer authored
llvm-svn: 208482
-
Nico Weber authored
Fixes PR19689, and possibly the last leak in clang (PR19521). PR19689 contains a few suggestions on how to make the default argument token code a bit more solid, these changes can possibly be landed in follow-ups. llvm-svn: 208481
-
Vincent Lejeune authored
llvm-svn: 208480
-
Vincent Lejeune authored
llvm-svn: 208479
-
Vincent Lejeune authored
llvm-svn: 208478
-
Nico Weber authored
This currently leaks memory (PR19689) but wasn't covered by tests, so LSan couldn't find it. llvm-svn: 208477
-
Benjamin Kramer authored
llvm-svn: 208476
-
Nico Weber authored
llvm-svn: 208475
-
Fariborz Jahanian authored
type ,and bridge attribute, checking with static_cast. // rdar://16756639 llvm-svn: 208474
-
Benjamin Kramer authored
llvm-svn: 208473
-
Jim Cownie authored
llvm-svn: 208472
-
Benjamin Kramer authored
Update for Clang API change and move ClangTidyDiagnosticRenderer into an anonymous namespace while there. llvm-svn: 208471
-
Benjamin Kramer authored
Required pulling LambdaExpr::Capture into its own header. No functionality change. llvm-svn: 208470
-
- May 10, 2014
-
-
Tim Northover authored
We were swapping the true & false results while testing for FMAX/FMIN, but not putting them back to the original state if the later checks failed. Should fix PR19700. llvm-svn: 208469
-
David Blaikie authored
Also tidy up, simplify, and extend the test coverage to demonstrate the limitations. This test should now fail if the bugs are fixed (& hopefully whoever ends up in this situation sees the FIXMEs and realizes that the test needs to be updated to positively test their change that has fixed some or all of these issues). I do wonder whether I could demonstrate breakage without a macro here, but any way I slice it I can't think of a way to get two calls to the same function on the same line/column in non-macro C++ - implicit conversions happen at the same location as an explicit function, but you'd never get an implicit conversion on the result of an explicit call to the same implicit conversion operator (since the value is already converted to the desired result)... llvm-svn: 208468
-
Richard Smith authored
Stop all the Decl classes poking at Redeclarable's data member directly, and make getNextRedeclaration follow the pattern of its friends getPreviousDecl and getMostRecentDecl. llvm-svn: 208467
-