summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Recommit r256322: Fix PR25898 - Check for incomplete pointers types in ↵Eric Fiselier2016-01-192-17/+189
| | | | | | | | | | | can_catch(...) This patch re-commits r256322 and r256323. They were reverted due to a OS X test failure. The test failure has been fixed by libc++ commit r258217. This patch also adds some additional tests. llvm-svn: 258249
* Revert r258222 because it's missing files. Will re-commit complete patchEric Fiselier2016-01-191-17/+17
| | | | llvm-svn: 258228
* Reinstate the second part of a comment. NFC.Davide Italiano2016-01-191-0/+1
| | | | | | | Reported by: Filipe Cabecinhas Pointy-hat to: me llvm-svn: 258223
* Recommit r256322: Fix PR25898 - Check for incomplete pointers types in ↵Eric Fiselier2016-01-191-17/+17
| | | | | | | | | | | can_catch(...) This patch re-commits r256322 and r256323. They were reverted due to a OS X test failure. The test failure has been fixed by libc++ commit r258217. This patch also adds some additional tests. llvm-svn: 258222
* [X86] Do not run shrink-wrapping on function with split-stack attribute or HiPEQuentin Colombet2016-01-192-7/+94
| | | | | | | | | | | calling convention. The implementation of the related callbacks in the x86 backend for such functions are not ready to deal with a prologue block that is not the entry block of the function. This fixes PR26107, but the longer term solution would be to fix those callbacks. llvm-svn: 258221
* StmtOpenMP.h: Fix a warning in r258177. [-Wdocumentation]NAKAMURA Takumi2016-01-191-1/+0
| | | | llvm-svn: 258220
* StmtOpenMP.h: Fix a warning in r258165. [-Wdocumentation]NAKAMURA Takumi2016-01-191-1/+0
| | | | llvm-svn: 258219
* add tests to show missing memset/malloc optimizations (PR25892)Sanjay Patel2016-01-192-0/+75
| | | | llvm-svn: 258218
* Fix enviroment variables when running shell scriptsEric Fiselier2016-01-191-1/+1
| | | | llvm-svn: 258217
* [MC, COFF] Add .reloc support for WinCOFFDavid Majnemer2016-01-1910-23/+84
| | | | | | | This adds rudimentary support for a few relocations that we will use for the CodeView debug format. llvm-svn: 258216
* [X86][SSE] Add VZEXT_MOVL target shuffle decoding.Simon Pilgrim2016-01-193-12/+9
| | | | | | Add support for decoding VZEXT_MOVL target shuffle masks, allowing it to be used as a source in target shuffle combines. llvm-svn: 258215
* [CMake] Don't apply Export set to clang toolsChris Bieneman2016-01-191-1/+0
| | | | | | | | I can't apply export to tools without getting some strange CMake spew. The behavior here is a bit unexpected. CMake is complaining about static link dependencies not being in the same export set, which shouldn't matter. In the short term it is easier to just remove the export set (which was just added in r258209) while I sort this out. llvm-svn: 258214
* Allow __attribute__((mode)) to appertain to field declarations again. ↵Aaron Ballman2016-01-195-8/+14
| | | | | | | | Corrects compile issues with LibreOffice. Patch by Stephan Bergmann llvm-svn: 258213
* Placate MVSC after my last commit.Davide Italiano2016-01-192-8/+4
| | | | | | | | Zachary introduced the 'default' case explicitly to placate a warning in the Microsoft compiler but that broke clang with -Werror. The new code should keep both compilers happy. llvm-svn: 258212
* [sancov] NFC: simplifying DumpOffsets.Mike Aizatsky2016-01-191-29/+38
| | | | | | | | | Summary: Extracting GetRangeOffset function before report-on-dump functionality. Differential Revision: http://reviews.llvm.org/D16332 llvm-svn: 258211
* Reenable -Wexpansion-to-defined.Nico Weber2016-01-191-3/+0
| | | | | | | | | I think I fixed all instances of this in the codebase (r258202, 258200, 258190). Also, the suppression didn't have an effect on bots using make anyways, and it looks like many bots still use configure/make bots. llvm-svn: 258210
* [CMake] Creating add_clang_tool macro to wrap add_clang_executable and ↵Chris Bieneman2016-01-192-13/+17
| | | | | | | | | | generate install actions and targets. This change brings forward the LLVM convention that "executables" are just runnable binaries, and "tools" are executables that are part of the project's install. Having this abstraction will allow us to simplify some of the tool CMakeLists files, and it will standardize some of the install behaviors. llvm-svn: 258209
* [Orc] Oops - lambda capture changed in r258206 was correct.Lang Hames2016-01-191-2/+2
| | | | | | | Fully qualify reference to Finalized in the body of the lambda instead to work around GCC ICE. llvm-svn: 258208
* [MachineFunction] Constify getter. NFC.Quentin Colombet2016-01-192-2/+2
| | | | llvm-svn: 258207
* [Orc] Add missing capture to lambda.Lang Hames2016-01-191-1/+1
| | | | llvm-svn: 258206
* [X86][SSE] Add INSERTPS target shuffle combines.Simon Pilgrim2016-01-194-28/+145
| | | | | | | | | | As vector shuffles can only reference two inputs many (V)INSERTPS patterns end up being split over two targets shuffles. This patch adds combines to attempt to combine (V)INSERTPS nodes with input/output nodes that are just zeroing out these additional vector elements. Differential Revision: http://reviews.llvm.org/D16072 llvm-svn: 258205
* [Orc] Qualify call to make_unique to avoid ambiguity with std::make_unique.Lang Hames2016-01-191-4/+4
| | | | | | This should fix some of the bot failures associated with r258185. llvm-svn: 258204
* [Orc] #undef a MACRO after I'm done with it.Lang Hames2016-01-191-7/+10
| | | | | | | | Suggested by Philip Reames in review of r257951. Thanks Philip! llvm-svn: 258203
* Fix another -Wexpansion-to-defined warning in compiler-rt.Nico Weber2016-01-191-1/+5
| | | | llvm-svn: 258202
* Add missing license headersEric Fiselier2016-01-192-1/+18
| | | | llvm-svn: 258201
* Fix -Wexpansion-to-defined warnings in compiler-rt.Nico Weber2016-01-192-3/+15
| | | | llvm-svn: 258200
* [Process] Remove dead code. All the switch cases are already covered.Davide Italiano2016-01-192-4/+0
| | | | llvm-svn: 258199
* Add more missing license headersEric Fiselier2016-01-1911-0/+95
| | | | llvm-svn: 258198
* Add an ObjCPass to the MachO linker.Pete Cooper2016-01-1910-32/+204
| | | | | | | | | This pass currently emits an objc image info section if one is required. This section contains the aggregated version and flags for all of the input files. llvm-svn: 258197
* Add missing license headersEric Fiselier2016-01-1917-0/+148
| | | | llvm-svn: 258196
* Mark slow ASAN/MSAN tests as XFAIL for now.Eric Fiselier2016-01-193-0/+10
| | | | llvm-svn: 258195
* Removed a bunch of spurious files from the man page Copy Files build phase.Sean Callanan2016-01-191-18/+0
| | | | | | | | | A few files were accidentally added to the Copy Files build phase for our man page, and they would appear when 'xcodebuild install' was invoked. This removes those files – they continue to be built correctly, but they aren't installed with our man page. llvm-svn: 258194
* [AArch64] Remove a bunch of useless FIXME comments.Chad Rosier2016-01-191-4/+0
| | | | llvm-svn: 258193
* [WebAssembly] Remove an unused data member. NFC.Dan Gohman2016-01-193-10/+7
| | | | llvm-svn: 258192
* [AArch64] Remove more dead code after r258093.Chad Rosier2016-01-191-12/+4
| | | | llvm-svn: 258191
* Fix undefined behavior in llvm's local changes to googletest.Nico Weber2016-01-192-1/+5
| | | | | | | | | r100895 landed an llvm-only change to add minix support to googletest. It did that by putting "defined()" in a macro, which has undefined behavior. Slightly reshuffle things to remove that undefined behavior. Also mention in README.LLVM that minix support is a local change. llvm-svn: 258190
* Rename IgnoredWeak to Ignored.Rafael Espindola2016-01-194-9/+8
| | | | | | Thanks to Rui for the suggestion. llvm-svn: 258189
* Fix a coverage reading bug Xinliang David Li2016-01-191-1/+3
| | | | | | | | | function record pointer is not advanced when duplicate entry is found. Test case to be added. llvm-svn: 258188
* [Orc] Fix a stale comment.Lang Hames2016-01-191-8/+2
| | | | llvm-svn: 258187
* [Orc] Refactor ObjectLinkingLayer::addObjectSet to defer loading objects untilLang Hames2016-01-195-107/+278
| | | | | | | | | | | | | | | | they're needed. Prior to this patch objects were loaded (via RuntimeDyld::loadObject) when they were added to the ObjectLinkingLayer, but were not relocated and finalized until a symbol address was requested. In the interim, another object could be loaded and finalized with the same memory manager, causing relocation/finalization of the first object to fail (as the first finalization call may have marked the allocated memory for the first object read-only). By deferring the loadObject call (and subsequent memory allocations) until an object file is needed we can avoid prematurely finalizing memory. llvm-svn: 258185
* [SCEV] Fix PR26207Sanjoy Das2016-01-193-1/+33
| | | | | | | | | | | | | | | | | | | | | | | In some cases, the max backedge taken count can be more conservative than the exact backedge taken count (for instance, because ScalarEvolution::getRange is not control-flow sensitive whereas computeExitLimitFromICmp can be). In these cases, computeExitLimitFromCond (specifically the bit that deals with `and` and `or` instructions) can create an ExitLimit instance with a `SCEVCouldNotCompute` max backedge count expression, but a computable exact backedge count expression. This violates an implicit SCEV assumption: a computable exact BE count should imply a computable max BE count. This change - Makes the above implicit invariant explicit by adding an assert to ExitLimit's constructor - Changes `computeExitLimitFromCond` to be more robust around conservative max backedge counts llvm-svn: 258184
* [SCEV] Use range-for; NFCSanjoy Das2016-01-191-5/+4
| | | | llvm-svn: 258183
* WebAssembly: mark known failure caused by r258125JF Bastien2016-01-191-0/+3
| | | | | | | The following test program triggers the assertion: https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/gcc.c-torture/execute/20030916-1.c llvm-svn: 258182
* Fix bootstrap -Werror builds after clang r258128Nico Weber2016-01-191-0/+3
| | | | llvm-svn: 258181
* [OpenMP] Detect implicit map type to report unspecified map type for target ↵Samuel Antao2016-01-198-44/+76
| | | | | | | | | | | | | | | | | | | | enter/exit data directives. Support for the following OpenMP 4.5 restriction on 'target enter data' and 'target exit data': - A map-type must be specified in all map clauses. I have to save 'IsMapTypeImplicit' when parsing a map clause to support this constraint and for more informative error messages. This helps me support the following case: #pragma omp target enter data map(r) // expected-error {{map type must be specified for '#pragma omp target enter data'}} and distinguish it from: #pragma omp target enter data map(tofrom: r) // expected-error {{map type 'tofrom' is not allowed for '#pragma omp target enter data'}} Patch by Arpith Jacob. Thanks! llvm-svn: 258179
* [libFuzzer] use std::mt19937 for generating random numbers by default. Fix ↵Kostya Serebryany2016-01-195-8/+43
| | | | | | MyStoll to handle negative values. Use std::any_of instead of std::find_if llvm-svn: 258178
* [OpenMP] Parsing + sema for "target exit data" directive.Samuel Antao2016-01-1927-5/+646
| | | | | | Patch by Arpith Jacob. Thanks! llvm-svn: 258177
* getParent()->getParent() == getModule() ; NFCSanjay Patel2016-01-191-15/+15
| | | | llvm-svn: 258176
* [CUDA] Handle -O options (more) correctly.Justin Lebar2016-01-192-5/+49
| | | | | | | | | | | | | | Summary: Previously we'd crash the driver if you passed -O0. Now we try to handle all of clang's various optimization flags in a sane way. Reviewers: tra Subscribers: cfe-commits, echristo, jhen Differential Revision: http://reviews.llvm.org/D16307 llvm-svn: 258174
* Set the objc constraint on the context based on the parsed files.Pete Cooper2016-01-193-0/+81
| | | | | | | | | | | | Like arch, os, etc, when we know we are going to use a file, we check that the file has compatible objc constraints to the context, throw appropriate errors where that is not the case, and hopefully set the objc constraints on the context for use later. Added 2 tests to ensure that we don't have incompatibilities between host and simulator code as both will get x86 based architectures. llvm-svn: 258173
OpenPOWER on IntegriCloud