summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [C++11] Add 'override' keyword to virtual methods that override their base ↵Craig Topper2014-03-119-136/+126
| | | | | | class. llvm-svn: 203547
* test: Regenerate profile data for PGO testsJustin Bogner2014-03-118-58/+56
| | | | | | | | Some of this data had gotten out of date, so we weren't quite testing what we thought we were. This also moves the outdated data test to its own file to simplify regenerating the test data. llvm-svn: 203546
* Fix use of uninitialized variable in ExternalASTSourceTest.cpp (introduced ↵David Blaikie2014-03-111-1/+1
| | | | | | in 203525) llvm-svn: 203545
* ScheduleOptimizer: Fix prevectorization.Tobias Grosser2014-03-112-2/+85
| | | | | | | | | | | | In case we are at the innermost band, we try to prepare for vectorization. This means, we look for the innermost parallel loop and strip mine this loop to the innermost level using a strip-mine factor corresponding to the number of vector iterations. For whatever reason, the code that implemented this feature was broken. We now added a comment, a test case and obviously also the right code. llvm-svn: 203544
* [C++11] Add 'override' keyword to virtual methods that override their base ↵Craig Topper2014-03-1113-234/+228
| | | | | | class. llvm-svn: 203543
* [HeaderSearch] Fix issue where if a headermap entry maps the filename to a ↵Argyrios Kyrtzidis2014-03-114-19/+44
| | | | | | | | | | framework import (non-absolute path) then we fail to find it if it is re-included later on. rdar://16285490 llvm-svn: 203542
* test: Give instrumentation based profiling tests their own directoryJustin Bogner2014-03-1112-43/+32
| | | | | | | | These tests are logically related, but they're spread about several different CodeGen directories. Consolidate them in one place to make them easier to manage. llvm-svn: 203541
* test: Fix feature test for "native" in lit.cfgJustin Bogner2014-03-112-2/+5
| | | | | | | Checking if the host arch is in the triple isn't quite correct. Change the feature test to match llvm's, which made the same change in r193459. llvm-svn: 203540
* Final bit for LWG #2263; test different allocator pointer types. Note that ↵Marshall Clow2014-03-113-1/+233
| | | | | | libc++ already does the right thing here; I've just added tests to ensure that it stays this way. llvm-svn: 203539
* De-virtualize a method since it doesn't override anything and isn't ↵Craig Topper2014-03-111-2/+1
| | | | | | overridden itself. llvm-svn: 203538
* [C++11] Add 'override' keyword to virtual methods that override their base ↵Craig Topper2014-03-116-376/+375
| | | | | | class. llvm-svn: 203537
* Speculative workaround for apparent libstdc++ bug exposed by r203534.Richard Smith2014-03-112-2/+4
| | | | llvm-svn: 203536
* Move the warning about unused relational comparison from -Wunused-value toRichard Trieu2014-03-117-24/+58
| | | | | | | -Wunused-comparison. Also, newly warn on unused result from overloaded relational comparisons, now also in -Wunused-comparison. llvm-svn: 203535
* If a visibility update record is found for a DeclContext after that Decl hasRichard Smith2014-03-119-25/+42
| | | | | | | already been loaded, apply that update record to the Decl immediately, rather than adding it to a pending list and never applying it. llvm-svn: 203534
* update for renaming in LLVMSaleem Abdulrasool2014-03-112-2/+2
| | | | llvm-svn: 203533
* build: use LLVM build routinesSaleem Abdulrasool2014-03-111-12/+10
| | | | | | | | | Check if the compiler actually supports the flags that are being added. Previously, the compiler flags would be used improperly push the flags to the compiler. Particularly, on Darwin, the option would be pushed to the compiler even if it does not support it. llvm-svn: 203532
* build: fix bleeding whitespaceSaleem Abdulrasool2014-03-112-13/+13
| | | | llvm-svn: 203531
* Object: rename ARMV7 to ARMNTSaleem Abdulrasool2014-03-114-4/+4
| | | | | | | The official specifications state the name to be ARMNT (as per the Microsoft Portable Executable and Common Object Format Specification v8.3). llvm-svn: 203530
* Cleanup whitespaceDuncan P. N. Exon Smith2014-03-111-9/+9
| | | | llvm-svn: 203529
* If a module map is found in a relative -I path, convert the filenames within itRichard Smith2014-03-115-26/+73
| | | | | | | | to absolute paths when building the includes file for the module. Without this, the module build would fail, because the relative paths we were using are not necessarily relative to a directory in our include path. llvm-svn: 203528
* R600: Calculate store mask instead of using switch.Matt Arsenault2014-03-111-17/+3
| | | | llvm-svn: 203527
* Add helpers for getting scalar sizes of vector value types.Matt Arsenault2014-03-112-0/+12
| | | | llvm-svn: 203526
* Add a unittest for the ExternalASTSource.Richard Smith2014-03-112-0/+84
| | | | llvm-svn: 203525
* X86: Enable ISel of 16-bit MOVBE instructions.Jim Grosbach2014-03-113-13/+42
| | | | | | | | | | | | | | | | | When the MOVBE instructions are available, use them for 16-bit endian swapping as well as for 32 and 64 bit. The patterns were already present on the instructions, but weren't being matched because the operation was unconditionally marked to 'Expand.' Change that to be conditional on whether the MOVBE instructions are available. Use 'rolw' to implement the in-register version (32 and 64 bit have the dedicated 'bswap' instruction for that). Patch by Louis Gerbarg <lgg@apple.com>. rdar://15479984 llvm-svn: 203524
* MultiJITTest.cpp: Tweak getPointerToNamedFunction() to be aware of also ↵NAKAMURA Takumi2014-03-111-0/+8
| | | | | | | | | | | | Windows x64. In import thunk, jmp is: - On x86, 0xFF 0x25 [disp32]. - On x64, 0xFF 0x25 [pcrel32]. See also my r144178. llvm-svn: 203523
* Basic: Add -Wswitch-bool to control warn_bool_switch_conditionDavid Majnemer2014-03-113-4/+4
| | | | | | | | This warning was missing a flag, add one. test/Misc/warning-flags.c has one fewer entry. llvm-svn: 203522
* Objective-C IRGen. Fixes several regressions caused by changes madeFariborz Jahanian2014-03-112-5/+64
| | | | | | to setting of ObjC linkages. //rdar://16206443 llvm-svn: 203521
* Follow up to r203488. Code clean up to eliminate a lot of copy+paste.Evan Cheng2014-03-111-215/+35
| | | | llvm-svn: 203520
* Fix undefined behavior in vector shift tests.Matt Arsenault2014-03-115-65/+65
| | | | | | These were all shifting the same amount as the bitwidth. llvm-svn: 203519
* Remove incomplete commentMatt Arsenault2014-03-111-2/+0
| | | | llvm-svn: 203518
* Move trivial getter into header.Matt Arsenault2014-03-112-7/+4
| | | | llvm-svn: 203517
* Use .data() instead of &x[0]Matt Arsenault2014-03-111-2/+2
| | | | llvm-svn: 203516
* Fix indentationMatt Arsenault2014-03-111-9/+8
| | | | llvm-svn: 203515
* Fix non 2-space indentation.Matt Arsenault2014-03-111-73/+73
| | | | llvm-svn: 203514
* Module: Don't rename in getOrInsertFunction()Duncan P. N. Exon Smith2014-03-103-10/+76
| | | | | | | | | | | | | | | | | | | | | | | During LTO, user-supplied definitions of C library functions often exist. -instcombine uses Module::getOrInsertFunction() to get a handle on library functions (e.g., @puts, when optimizing @printf). Previously, Module::getOrInsertFunction() would rename any matching functions with local linkage, and create a new declaration. In LTO, this is the opposite of desired behaviour, as it skips by the user-supplied version of the library function and creates a new undefined reference which the linker often cannot resolve. After some discussing with Rafael on the list, it looks like it's undesired behaviour. If a consumer actually *needs* this behaviour, we should add new API with a more explicit name. I added two testcases: one specifically for the -instcombine behaviour and one for the LTO flow. <rdar://problem/16165191> llvm-svn: 203513
* Minor fix for a logging message.Jason Molenda2014-03-101-1/+1
| | | | llvm-svn: 203512
* Add -fmodules-cache-path to test/Headers/c11.cBen Langmuir2014-03-101-1/+2
| | | | | | | | This started failing for me the last time someone modified the AST file format. It would be nice if we could just have lit take care of the module cache used during testing for us, but this helps in the meantime. llvm-svn: 203511
* Thread safety analysis: move smart pointer checks from -Wthread-safety-betaDeLesley Hutchins2014-03-101-27/+19
| | | | | | to -Wthread-safety. llvm-svn: 203510
* When analyzing vectors of element type that require legalization,Raul E. Silvera2014-03-103-18/+60
| | | | | | | | | | | | | | | | | | the legalization cost must be included to get an accurate estimation of the total cost of the scalarized vector. The inaccurate cost triggered unprofitable SLP vectorization on 32-bit X86. Summary: Include legalization overhead when computing scalarization cost Reviewers: hfinkel, nadav CC: chandlerc, rnk, llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2992 llvm-svn: 203509
* Use discriminator information in sample profiles.Diego Novillo2014-03-1011-91/+254
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: When the sample profiles include discriminator information, use the discriminator values to distinguish instruction weights in different basic blocks. This modifies the BodySamples mapping to map <line, discriminator> pairs to weights. Instructions on the same line but different blocks, will use different discriminator values. This, in turn, means that the blocks may have different weights. Other changes in this patch: - Add tests for positive values of line offset, discriminator and samples. - Change data types from uint32_t to unsigned and int and do additional validation. Reviewers: chandlerc CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2857 llvm-svn: 203508
* [analyzer] Eliminate memory leak in BugReporter::emitReport()Anton Yartsev2014-03-101-2/+5
| | | | llvm-svn: 203507
* Turn on the uncovered umbrella header warning by defaultBen Langmuir2014-03-101-1/+1
| | | | | | | | | | This warning (under -Wincomplete-umbrella) diagnoses cases that are difficult to understand without the compiler's help, since the symptom is likely to be that you are missing the contents of headers that are mistakenly omitted from a module. This seems like a good thing to have on by default (with the usual caveat for -Wsystem-headers). llvm-svn: 203506
* Fix Mingw build error by using lower case name for windows header files.Hafiz Abid Qadeer2014-03-105-5/+5
| | | | llvm-svn: 203505
* xfail a test on darwin because some of the public buildbots are stuck onAdrian Prantl2014-03-101-0/+4
| | | | | | older versions of LLDB. llvm-svn: 203504
* RTTI symbols for visible local types may need weak linkage.John McCall2014-03-102-1/+39
| | | | | | | | | | | Previously, we would always emit them with internal linkage, but with hidden visibility when the function was hidden, which is an illegal combination, which could lead LLVM to actually emit them as strong hidden symbols with hilarious results. rdar://16265084 llvm-svn: 203503
* Test commit: Remove trailing whitespace.Manuel Jacob2014-03-101-4/+4
| | | | llvm-svn: 203502
* Add a main function to the clang-format.py vim integration.Ahmed Charles2014-03-101-40/+43
| | | | | | This will allow using an early return statement in a subsequent change. llvm-svn: 203501
* Ported scoplib to use isl_val * instead of isl_intTobias Grosser2014-03-103-71/+91
| | | | | | | | | | | | | 1) The isl_int -> isl_val changes are the ones Tobias suggested. One additional isl_val_free is added (and needed) 2) Three scoplib_vector_free are added, maybe we would need even more (and matrix_free) but it's hard to place them right. 3) Cleaned the includes (and removed 'extern C') This fixes the broken compilation for the scoplib import and export. Contributed-by: Johannes Doerfert <doerfert@cs.uni-saarland.de> llvm-svn: 203500
* Fix a couple typos.Mark Lacey2014-03-101-2/+2
| | | | llvm-svn: 203499
* [lit] Bump dev version number.Daniel Dunbar2014-03-101-1/+1
| | | | llvm-svn: 203498
OpenPOWER on IntegriCloud