summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* PR24595: Ignore calling convention modifiers for structors in MS ABI.Andrey Bokhanko2015-09-148-17/+68
| | | | | | | | | | MS compiler ignores calling convention modifiers for structors. This patch makes clang do the same (for MS ABI). This fixes PR24595 and makes vswriter.h header (from Windows SDK 8.1) compilable. Differential Revision: http://reviews.llvm.org/D12402 llvm-svn: 247619
* C11 _Bool bitfield diagnosticRachel Craik2015-09-1412-39/+43
| | | | | | | | | | | | Summary: Implement DR262 (for C). This patch will mainly affect bitfields of type _Bool Reviewers: fraggamuffin, rsmith Subscribers: hubert.reinterpretcast, cfe-commits Differential Revision: http://reviews.llvm.org/D10018 llvm-svn: 247618
* [analyzer] Update SATestBuild.py to set -isysroot for preprocessed filesDevin Coughlin2015-09-141-2/+19
| | | | | | | | | Update the static analyzer buildbot script to set -isysroot to the OS X SDK path when analyzing preprocessed files on OS X. Differential Revision: http://reviews.llvm.org/D12769 llvm-svn: 247617
* RegisterPressure: constify getRegSetPressureAtPos()Matthias Braun2015-09-141-1/+3
| | | | llvm-svn: 247616
* ClangExpressionDeclMap should only disable the Clang parser-specific state onSean Callanan2015-09-141-2/+2
| | | | | | Clang persistent variables. llvm-svn: 247615
* [Static Analyzer] Turn on some nullability checks by default.Gabor Horvath2015-09-141-0/+5
| | | | | | Differential Revision: http://reviews.llvm.org/D12858 llvm-svn: 247614
* Use C++11 member initializers. NFC.Rui Ueyama2015-09-141-5/+4
| | | | llvm-svn: 247613
* [Static Analyzer] Nullability checker optimization.Gabor Horvath2015-09-141-1/+6
| | | | | | Differential Revision: http://reviews.llvm.org/D12848 llvm-svn: 247612
* Driver should forward at most one gdwarf-N flag to cc1as.Douglas Katzman2015-09-142-15/+11
| | | | llvm-svn: 247611
* [opaque pointer types] Switch a few cases of getElementType over, since I ↵David Blaikie2015-09-145-26/+21
| | | | | | had them lying around anyway llvm-svn: 247610
* Start adding the .hash output section.Rafael Espindola2015-09-142-1/+59
| | | | | | It is still empty. Content will be added in the next patch. llvm-svn: 247609
* Final unexpected success cleanup for OS X.Todd Fiala2015-09-141-2/+0
| | | | | | | Top of tree is running with no unexpected successes with this change, on latest available El Capitan and Xcode betas. llvm-svn: 247608
* [CMake] Add options to control building sanitizers and builtins.Chris Bieneman2015-09-142-36/+45
| | | | | | There are situations where a user may want to build only the compiler-rt builtins, or only the sanitizer runtimes. This exposes options to do that. Both default to On, so there should be no implicit change in behavior. llvm-svn: 247607
* [CMake] If COMPILER_RT_INCLUDE_TESTS is off we shouldn't include the root ↵Chris Bieneman2015-09-141-1/+1
| | | | | | test directory. llvm-svn: 247606
* Fixes lldb-server commandline test xpass for OS X and Linux; resolves ↵Todd Fiala2015-09-142-4/+1
| | | | | | llvm.org/pr20273 llvm-svn: 247605
* Make AsmPrinter::EmitJumpTableInfo virtualDan Gohman2015-09-141-1/+1
| | | | | | | | | | | Targets that have non-traditional jump table mechanisms may need to do something substantially different for jump tables than what AsmPrinter::EmitJumpTableInfo does. This patch makes that function virtual so that targets can override it. Differential Revision: http://reviews.llvm.org/D12786 llvm-svn: 247604
* [Solaris] Add -lc also when linking shared librariesRafael Espindola2015-09-142-1/+18
| | | | | | | | | | This is actually needed, otherwise libc won't be added at all. For instance when building libclang.so all the libc symbols won't be found, with ld warning about libc being an "implicit dependency". Patch by Xan López! llvm-svn: 247603
* Another round of macosx unexpected success corrections.Todd Fiala2015-09-144-6/+2
| | | | llvm-svn: 247602
* OS X unexpected success cleanupTodd Fiala2015-09-143-6/+11
| | | | | | | | | | TestPersistObjCPointeeType and TestObjCNewSyntax marked up to expect success on clang >= 7.0.0. TestMultipleDebuggers passed 25/25 times, taking off intermittent. If this changes, I'll make sure it goes into a flaky/flakey category. llvm-svn: 247601
* Run polly-check-format with unit testsMichael Kruse2015-09-141-0/+8
| | | | | | | | | Add polly-check-format as dependency of check-polly if clang-format is available in the same build. Differential Revision: http://reviews.llvm.org/D12850 llvm-svn: 247600
* Correctly align sections.Rafael Espindola2015-09-142-2/+17
| | | | | | | | | We have to align the start, not the end. This should fix crashes on systems where memcpy enforces the expected alignment. llvm-svn: 247599
* [Static Analyzer] Relaxing a caching out related assert.Gabor Horvath2015-09-141-1/+4
| | | | | | Differential Revision: http://reviews.llvm.org/D12818 llvm-svn: 247598
* Fix a nasty bug with the partial destruction of nested arrays;John McCall2015-09-143-2/+66
| | | | | | | | | it escaped notice because it's only used for heterogeneous initialization. rdar://21397946 llvm-svn: 247597
* Remove expectedFailureFreeBSD from now-passing testEd Maste2015-09-141-1/+0
| | | | | | | | ExprCommandCallUserDefinedFunction::test_with_dwarf llvm.org/pr20274 llvm-svn: 247596
* [Static Analyzer] Moving nullability checkers out of alpha.Gabor Horvath2015-09-143-4/+4
| | | | llvm-svn: 247595
* Correct XFAIL OS list after r247576Ed Maste2015-09-141-2/+2
| | | | | | | In ConstVariableTestCase::test_with_dwarf_and_run_command - the test fails with Clang (and presumably ICC) also on FreeBSD. llvm-svn: 247594
* [opaque pointer type] Fix a few uses of PointerType::getElementType in favor ↵David Blaikie2015-09-144-12/+10
| | | | | | | | | | of uses of types already available elsewhere These are a few cleanups I happened to have from trying to go in a different direction recently, so just flushing them out while I have them. llvm-svn: 247593
* [CMake] Add llvm-ar subdirectory explicitly.Chris Bieneman2015-09-141-2/+3
| | | | | | This is required because ExternalProject_Add requires all targets specified in the DEPENDS argument must exist before calling ExternalProject_Add. llvm-svn: 247592
* Fix up bad compiler spec on ConstVariableTestCase; fixup two more OS X ↵Todd Fiala2015-09-143-5/+12
| | | | | | unexpected successes. llvm-svn: 247591
* [Static Analyzer] Moving nullability checkers to a top level package.Gabor Horvath2015-09-144-13/+117
| | | | | | Differential Revision: http://reviews.llvm.org/D12852 llvm-svn: 247590
* Remove a debugging printf that got left in SymbolFileDWARFDebugMap.Jim Ingham2015-09-141-1/+0
| | | | llvm-svn: 247589
* RegisterPressure: Simplify close{Top|Bottom}()Matthias Braun2015-09-141-12/+2
| | | | | | | | | | | - There are no duplicate registers in LiveRegs list we are copying from and so we do not need to sort the registers. - Simply use SmallVector::apend instead of a loop between begin() and end() with push_back(). Differential Revision: http://reviews.llvm.org/D12813 llvm-svn: 247588
* [InstCombineCalls] Use isKnownNonNullAt() to check nullness of passing ↵Chen Li2015-09-143-2/+26
| | | | | | | | | | | | | | arguments at callsite Summary: This patch replaces isKnownNonNull() with isKnownNonNullAt() when checking nullness of passing arguments at callsite. In this way it can handle cases where the argument does not have nonnull attribute but has a dominating null check from the CFG. It also adds assertions in isKnownNonNull() and isKnownNonNullFromDominatingCondition() to make sure the value checked is pointer type (as defined in LLVM document). These assertions might trip failures in things which are not covered under llvm/test, but fixes should be pretty obvious. Reviewers: reames Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12779 llvm-svn: 247587
* Revert "[opaque pointer type] update for LLVM API change"David Blaikie2015-09-145-10/+11
| | | | | | | | | | This was the wrong direction to take anyway (because ultimately the GlobalValue needed the pointee type again and /it/ used PointerType::getElementType eventually anyway)... let's go a different way. This reverts commit r236161. llvm-svn: 247586
* Revert "[opaque pointer type] Pass GlobalAlias the actual pointer type ↵David Blaikie2015-09-1411-43/+59
| | | | | | | | | | | | | | | | | rather than decomposing it into pointee type + address space" This was a flawed change - it just caused the getElementType call to be deferred until later, when we really need to remove it. Now that the IR for GlobalAliases has been updated, the root cause is addressed that way instead and this change is no longer needed (and in fact gets in the way - because we want to pass the pointee type directly down further). Follow up patches to push this through GlobalValue, bitcode format, etc, will come along soon. This reverts commit 236160. llvm-svn: 247585
* Update cxx-irgen.cpp test to allow signext in alwaysinline functions.Samuel Antao2015-09-141-1/+1
| | | | | | This was causing an error in Power8 targets. llvm-svn: 247584
* Removing the Makefile/Perl build system.Jonathan Peyton2015-09-1433-7357/+80
| | | | | | | | | | | | This change deletes the Makefile+Perl build system and all files used by it which aren't used by the CMake build system. This included many Perl files, *.mk files, iomp* files. This change also updates the README's and index.html to instruct the user to use the CMake build system. All mentioning of the Perl+Makefile based system are removed. Differential Revision: http://reviews.llvm.org/D12331 llvm-svn: 247583
* [llvm-mc] Better error handling in ENOENT case + test.Davide Italiano2015-09-142-6/+3
| | | | | | | | | | | | | This is a follow up to r247518. As a general note, I think we could do a much better job testing for error conditions in tools. I already anticipated in a previous mail, but while implementing this I noticed that the code coverage we have for error checking is pretty low. I can arbitrarily remove checks from several tools and the suite still passes. Differential Revision: http://reviews.llvm.org/D12846 llvm-svn: 247582
* Revise polly-{update|check}-format targetsMichael Kruse2015-09-143-55/+25
| | | | | | | | | | | | | | | | | | Summary: Make clang-format run on each file independently using add_custom_format (instead using a shell script in utils/). The targets polly-{update|check}-format depend on these. The primary motivation is to make them work on Windows, but also improves them generally: - Each file update/check can run in parallel (Although they do not take long to run anyway) - Implicit dependency on clang-format, so it recompiles if necessary - polly-check-format shows the formatting difference if failing Differential Revision: http://reviews.llvm.org/D12837 llvm-svn: 247581
* [clang-tidy] updated misc-sizeof-container docs.Alexander Kornienko2015-09-141-2/+7
| | | | llvm-svn: 247580
* Use SI_KERNEL on platforms defining itStephane Sezer2015-09-141-2/+3
| | | | | | | | | | | | | | | | | Summary: Linux and FreeBSD occasionally send SI_KERNEL codes, nonexistent on other platforms. Problem caught on NetBSD. Reviewers: joerg, sas Subscribers: sas, lldb-commits, emaste Differential Revision: http://reviews.llvm.org/D12659 Change by Kamil Rytarowski <n54@gmx.com> llvm-svn: 247579
* [clang-tidy] misc-sizeof-container: remove fix-it hintsAlexander Kornienko2015-09-142-45/+3
| | | | | | | This turned out to be a rather noisy check, so automated fixes will only do harm. Remove them completely. llvm-svn: 247578
* dsymutil: Factor out the DIE cloning into a DIECloner class. (NFC)Adrian Prantl2015-09-141-161/+169
| | | | llvm-svn: 247577
* Cleaned up a few unexpected successes on OS XTodd Fiala2015-09-144-7/+1
| | | | | | | | | TestCallStdStringFunction TestCallWithTimeout TestConstVariables TestClassTypes llvm-svn: 247576
* Improve ISel using across lane min/max reductionJun Bum Lim2015-09-143-61/+485
| | | | | | | | | | | | | | | | | | | | In vectorized integer min/max reduction code, the final "reduce" step is sub-optimal. In AArch64, this change wll combine : %svn0 = vector_shuffle %0, undef<2,3,u,u> %smax0 = smax %0, svn0 %svn3 = vector_shuffle %smax0, undef<1,u,u,u> %sc = setcc %smax0, %svn3, gt %n0 = extract_vector_elt %sc, #0 %n1 = extract_vector_elt %smax0, #0 %n2 = extract_vector_elt $smax0, #1 %result = select %n0, %n1, n2 becomes : %1 = smaxv %0 %result = extract_vector_elt %1, 0 This change extends r246790. llvm-svn: 247575
* Skip TestBatchMode for remote platformsPavel Labath2015-09-141-0/+2
| | | | | | the test does not know how to run executables on the remote platform. llvm-svn: 247574
* [mips] Unified the MipsMemSimm9GPRAsmOperand and MipsMemSimm9AsmOperand ↵Daniel Sanders2015-09-143-24/+10
| | | | | | | | | | | | | | | | | | | operands, NFC. Summary: These operands had the same purpose, however the MipsMemSimm9GPRAsmOperand operand was only for micromips32r6 and the MipsMemSimm9AsmOperand did not have a ParserMatchClass. Patch by Scott Egerton Reviewers: vkalintiris, dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12730 llvm-svn: 247573
* Replace some SmallVector-typed parameters by ArrayRefMichael Kruse2015-09-142-14/+14
| | | | | | ArrayRef avoids making implementation details such as the number of stack elements to be part of the function signature. llvm-svn: 247572
* Fix a possible SEGV in SymbolFileDWARFTamas Berghammer2015-09-141-4/+5
| | | | | | | | The iterator pointing to an element of a dense map was used after the element from was removed from the map what isn't guaranteed to be valid at that time. llvm-svn: 247571
* [MergeFuncs] Fix bug in merging GetElementPointersJF Bastien2015-09-142-2/+48
| | | | | | | | | | | | | | | | GetElementPointers must have the first argument's type compared for structural equivalence. Previously the code erroneously compared the pointer's type, but this code was dead because all pointer types (of the same address space) are the same. The pointee must be compared instead (using the type stored in the GEP, not from the pointer type which will be erased anyway). Author: jrkoenig Reviewers: dschuff, nlewycky, jfb Subscribers: nlewycky, llvm-commits Differential revision: http://reviews.llvm.org/D12820 llvm-svn: 247570
OpenPOWER on IntegriCloud