- Jun 26, 2014
-
-
David Majnemer authored
Previously dllimport variables inside of template arguments relied on not using the C++11 codepath when -fms-compatibility was set. While this allowed us to achieve compatibility with MSVC, it did so at the expense of MingW. Instead, try to use the DeclRefExpr we dig out of the template argument. If it has the dllimport attribute, accept it and skip the C++11 null-pointer check. llvm-svn: 211766
-
Dinesh Dwivedi authored
This patch enables transforms for (x + (~(y | c) + 1) --> x - (y | c) if c is even Differential Revision: http://reviews.llvm.org/D4209 llvm-svn: 211765
-
Craig Topper authored
llvm-svn: 211764
-
Craig Topper authored
llvm-svn: 211763
-
David Majnemer authored
Folding a reference to a thread_local variable into another global variable's initializer is very problematic, there is no relocation that exists to represent such an access. llvm-svn: 211762
-
Alp Toker authored
It turns out the -fblocks option is determined by the default tooling target and not implied by the other two flags. llvm-svn: 211761
-
Justin Bogner authored
Improve the warning when building with -fprofile-instr-use and a file appears not to have been profiled at all. This keys on whether a function is defined in the main file or not to avoid false negatives when one includes a header with functions that have been profiled. llvm-svn: 211760
-
Alp Toker authored
llvm-svn: 211759
-
Alp Toker authored
Patch by Mathieu Baudet. llvm-svn: 211758
-
Matt Arsenault authored
llvm-svn: 211757
-
Reid Kleckner authored
Summary: The BSDs and Darwin all forward the whole 'u' group, but gcc only forwards -u so far as I can tell. I only forward -u, since that's a minimal change, and many people object to magically recognizing and forwarding linker arguments. Reviewers: chandlerc, joerg Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4304 llvm-svn: 211756
-
Marshall Clow authored
Patch from Albert J. Wong to make type_traits take advantage of gcc intrinsics in 4.7 and later. No functionality change when using clang. llvm-svn: 211755
-
Reid Kleckner authored
Follow up to r211749. llvm-svn: 211754
-
Hans Wennborg authored
This is a follow-up to r211331, which failed to notice that we were returning early from ValidLookupTableConstant for GEPs. llvm-svn: 211753
-
Alp Toker authored
Avoid strndup() llvm-svn: 211752
-
Nick Kledzik authored
llvm-svn: 211751
-
Adam Nemet authored
The *_alt defs for vcmp are used by the InstParser (the asm string in the main def is used by the InstPrinter) . The former was accepting vector registers as destination rather than mask registers. llvm-svn: 211750
-
Alp Toker authored
string_ostream is a safe and efficient string builder that combines opaque stack storage with a built-in ostream interface. small_string_ostream<bytes> additionally permits an explicit stack storage size other than the default 128 bytes to be provided. Beyond that, storage is transferred to the heap. This convenient class can be used in most places an std::string+raw_string_ostream pair or SmallString<>+raw_svector_ostream pair would previously have been used, in order to guarantee consistent access without byte truncation. The patch also converts much of LLVM to use the new facility. These changes include several probable bug fixes for truncated output, a programming error that's no longer possible with the new interface. llvm-svn: 211749
-
Nico Weber authored
llvm-svn: 211748
-
Argyrios Kyrtzidis authored
For CrashRecoveryContext::RunSafelyOnThread, propagate Darwin's PRIO_DARWIN_BG to the new thread if it is set on the calling thread. This allows libclang's indexing threads to propagate their priority to the clang module building threads. rdar://17459872 llvm-svn: 211747
-
Ben Langmuir authored
By using vfs::recursive_directory_iterator, this warning will now fire when some or all of a module's headers are from VFS mappings. llvm-svn: 211746
-
Nico Weber authored
llvm-svn: 211745
-
Michael Liao authored
llvm-svn: 211744
-
Nico Weber authored
This was written by: Albert Wong <ajwong@chromium.org> Antoine Labour <piman@chromium.org> Dana Jansen <danakj@chromium.org Jonathan Roelofs <jonathan@codesourcery.com> Nico Weber <thakis@chromium.org> llvm-svn: 211743
-
David Blaikie authored
The only call in this function is to the dtor, so there's no need to name a non-portable mangled function name to match it. llvm-svn: 211742
-
NAKAMURA Takumi authored
llvm-svn: 211741
-
Juergen Ributzka authored
llvm-svn: 211740
-
Nico Weber authored
The new code will be behind a LIBCXXABI_ARM_EHABI define (so that platforms that don't want it can continue using e.g. SJLJ). This commit mostly just adds the LIBCXXABI_ARM_EHABI define. llvm-svn: 211739
-
Alp Toker authored
These tests are target-independent and shouldn't ever be suppressed. llvm-svn: 211738
-
Eric Christopher authored
llvm-svn: 211737
-
Hans Wennborg authored
This is a follow-up to David's r211677. For the following code, we would end up referring to 'foo' in the initializer for 'arr', and then fail to link, because 'foo' is dllimport and needs to be accessed through the __imp_?foo. __declspec(dllimport) extern const char foo[]; const char* f() { static const char* const arr[] = { foo }; return arr[0]; } Differential Revision: http://reviews.llvm.org/D4299 llvm-svn: 211736 -
Juergen Ributzka authored
llvm-svn: 211735
-
Sanjay Patel authored
llvm-svn: 211734
-
Aaron Watry authored
The vector components were mistakenly using () instead of {}, which caused all but the last vector component to be dropped on the floor. Signed-off-by:Aaron Watry <awatry@gmail.com> Reviewed-by:
Jeroen Ketema <j.ketema@imperial.ac.uk> llvm-svn: 211733
-
Ben Langmuir authored
For now, this is only used by its unit tests. It is similar to the API in llvm::sys::fs::recursive_directory_iterator, but without some of the more complex features like requesting that the iterator not recurse into the next directory, for example. llvm-svn: 211732
-
Reid Kleckner authored
This probably explains why a lot of messages get lost for first time Phabricator users. llvm-svn: 211731
-
Juergen Ributzka authored
[FastISel][X86] Only fold the cmp into the select when both instructions are in the same basic block. If the cmp is in a different basic block, then it is possible that not all operands of that compare have defined registers. This can happen when one of the operands to the cmp is a load and the load gets folded into the cmp. In this case FastISel will skip the load instruction and the vreg is never defined. llvm-svn: 211730
-
Zachary Turner authored
llvm-svn: 211728
-
Rafael Espindola authored
This completes the refactoring of RecordStreamer. llvm-svn: 211727
-
Zachary Turner authored
Previously, only the starting locations of the candidate interval and the existing interval were compared. To correctly detect range intersections, it is necessary to compare the entire range of both intervals against each other. Reviewed by: scallanan Differential Revision: http://reviews.llvm.org/D4286 llvm-svn: 211726
-