- May 11, 2014
-
-
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
-
Logan Chien authored
This commit implements the ARM zero-cost exception handling support for libc++abi. llvm-svn: 208466
-
Logan Chien authored
To allow the compilation with gcc, we can't use the __has_feature(cxx_noexcept) to detect the default destructor exception specification, which is noexcept(true) by default in C++11. We should use __cplusplus >= 201103L instead. llvm-svn: 208465
-
Duncan P. N. Exon Smith authored
llvm-svn: 208464
-
Kevin Enderby authored
The implementation might be better to have a method is64Bit() in the class SymbolicFile instead of having the static routine isSymbolList64Bit() in llvm-nm.cpp . But this is very much in the sprit of isObject() and getNMTypeChar() in llvm-nm.cpp that has a series of if else statements based on the specific class of the SymbolicFile. I can update this if folks would like. Also the tests were updated to be explicit about checking the address for 64-bits or 32-bits from object files. llvm-svn: 208463
-
Duncan P. N. Exon Smith authored
llvm-svn: 208462
-
Benjamin Kramer authored
There is no total ordering if the CFG is disconnected. We don't care if we catch all CSE opportunities in dead code either so just exclude ignore them in the assert. PR19646 llvm-svn: 208461
-
Duncan P. N. Exon Smith authored
Check that the profile runtime works as expected. This tests the functions that are meant to be available to advanced users. In particular, check that the `atexit()` hook can be disabled by defining a custom `__llvm_profile_runtime` variable, that the libc dependencies are optional, and that the various functions for writing out files work for basic cases. llvm-svn: 208460
-
Reid Kleckner authored
This reverts commit r200561. This calling convention was an attempt to match the MSVC C++ ABI for methods that return structures by value. This solution didn't scale, because it would have required splitting every CC available on Windows into two: one for methods and one for free functions. Now that we can put sret on the second arg (r208453), and Clang does that (r208458), revert this hack. llvm-svn: 208459
-
Reid Kleckner authored
Summary: MSVC always passes 'sret' after 'this', unlike GCC. This required changing a number of places in Clang that assumed the sret parameter was always first in LLVM IR. This fixes win64 MSVC ABI compatibility for methods returning structs. Reviewers: rsmith, majnemer Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3618 llvm-svn: 208458
-
Sebastian Pop authored
llvm-svn: 208457
-
Sebastian Pop authored
we do not use the information from SCEVAddRecExpr to compute the shape of the array, so a better place for this function is in ScalarEvolution. llvm-svn: 208456
-
Sebastian Pop authored
llvm-svn: 208455
-