]> granicus.if.org Git - clang/log
clang
8 years agoMark inheriting constructors as deleted if the corresponding defaulted default
Richard Smith [Wed, 29 Jun 2016 01:10:27 +0000 (01:10 +0000)]
Mark inheriting constructors as deleted if the corresponding defaulted default
constructor would be; this is effectively required by P0136R1. This has the
effect of exposing the validity of the base class initialization steps to
SFINAE checks.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274088 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoRevert "[PS4] Tighten up a test (noticed in passing)"
Sean Silva [Wed, 29 Jun 2016 00:29:23 +0000 (00:29 +0000)]
Revert "[PS4] Tighten up a test (noticed in passing)"

This reverts commit r269709.

r262285 changed this deliberately so that the test would not be
sensitive to which binaries are in the same directory as clang.
See the commit message of that commit for more background.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274084 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoFunction declarations are, in fact, permitted in the init-statement of a for
Richard Smith [Tue, 28 Jun 2016 23:26:18 +0000 (23:26 +0000)]
Function declarations are, in fact, permitted in the init-statement of a for
loop. Don't confuse Sema by saying they're not.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274080 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[Sema] Disallow ambigious base classes in template argument deduction
Erik Pilkington [Tue, 28 Jun 2016 23:05:09 +0000 (23:05 +0000)]
[Sema] Disallow ambigious base classes in template argument deduction

Fixes PR28195.

Differential revision: http://reviews.llvm.org/D21653

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274077 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoObjC Class Property: diagnostics when accessing a class property using instance.
Manman Ren [Tue, 28 Jun 2016 23:01:49 +0000 (23:01 +0000)]
ObjC Class Property: diagnostics when accessing a class property using instance.

When a class property is accessed with an object instance, before this commit,
we try to apply a typo correction of the same property:
property 'c' not found on object of type 'A *'; did you mean 'c'?

With this commit, we correctly emit a diagnostics:
property 'c' is a class property; did you mean to access it with class 'A'?

rdar://26866973

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274076 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoAvailabilityAttr: we accept "macos" as the platform name.
Manman Ren [Tue, 28 Jun 2016 20:55:30 +0000 (20:55 +0000)]
AvailabilityAttr: we accept "macos" as the platform name.

We continue accepting "macosx" but canonicalize it to "macos", When emitting
diagnostics, we use "macOS" instead of "OS X".

The PlatformName in TargetInfo is changed from "macosx" to "macos" so we can
directly compare the Platform in AvailabilityAttr with the PlatformName
in TargetInfo.

rdar://26795172
rdar://26800775

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274064 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agocxx_status: make c++17 footnote list formatting consistent with other footnote lists.
Richard Smith [Tue, 28 Jun 2016 20:37:43 +0000 (20:37 +0000)]
cxx_status: make c++17 footnote list formatting consistent with other footnote lists.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274060 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agocxx_status: fix footnote for p0136.
Richard Smith [Tue, 28 Jun 2016 20:37:00 +0000 (20:37 +0000)]
cxx_status: fix footnote for p0136.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274059 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoUpdate cxx_dr_status from test/CXX/drs.
Richard Smith [Tue, 28 Jun 2016 20:35:53 +0000 (20:35 +0000)]
Update cxx_dr_status from test/CXX/drs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274058 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[CMake] Adding USES_TERMINAL to a few additional custom targets
Chris Bieneman [Tue, 28 Jun 2016 20:30:52 +0000 (20:30 +0000)]
[CMake] Adding USES_TERMINAL to a few additional custom targets

These are all long-running commands that should be in the ninja console job pool.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274056 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoFix unreasonably-precise CHECK.
Richard Smith [Tue, 28 Jun 2016 19:09:30 +0000 (19:09 +0000)]
Fix unreasonably-precise CHECK.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274050 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoP0136R1, DR1573, DR1645, DR1715, DR1736, DR1903, DR1941, DR1959, DR1991:
Richard Smith [Tue, 28 Jun 2016 19:03:57 +0000 (19:03 +0000)]
P0136R1, DR1573, DR1645, DR1715, DR1736, DR1903, DR1941, DR1959, DR1991:

Replace inheriting constructors implementation with new approach, voted into
C++ last year as a DR against C++11.

Instead of synthesizing a set of derived class constructors for each inherited
base class constructor, we make the constructors of the base class visible to
constructor lookup in the derived class, using the normal rules for
using-declarations.

For constructors, UsingShadowDecl now has a ConstructorUsingShadowDecl derived
class that tracks the requisite additional information. We create shadow
constructors (not found by name lookup) in the derived class to model the
actual initialization, and have a new expression node,
CXXInheritedCtorInitExpr, to model the initialization of a base class from such
a constructor. (This initialization is special because it performs real perfect
forwarding of arguments.)

In cases where argument forwarding is not possible (for inalloca calls,
variadic calls, and calls with callee parameter cleanup), the shadow inheriting
constructor is not emitted and instead we directly emit the initialization code
into the caller of the inherited constructor.

Note that this new model is not perfectly compatible with the old model in some
corner cases. In particular:
 * if B inherits a private constructor from A, and C uses that constructor to
   construct a B, then we previously required that A befriends B and B
   befriends C, but the new rules require A to befriend C directly, and
 * if a derived class has its own constructors (and so its implicit default
   constructor is suppressed), it may still inherit a default constructor from
   a base class

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274049 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[CMake] Connect check-compiler-rt to check-all
Chris Bieneman [Tue, 28 Jun 2016 18:32:22 +0000 (18:32 +0000)]
[CMake] Connect check-compiler-rt to check-all

When using the LLVM_BUILD_EXTERNAL_COMPILER_RT option with
LLVM_ENABLE_TESTS we should also bind check-compiler-rt to check-all so
that the compiler-rt tests run too.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274045 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoUpdate the expected masked load/store intrinsics names in tests
Artur Pilipenko [Tue, 28 Jun 2016 18:28:45 +0000 (18:28 +0000)]
Update the expected masked load/store intrinsics names in tests

The mangling of their names was changed in order to support arbitrary addrspace pointers as arguments in rL274043.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274044 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoNFC. Test commit, remove a redundant empty line in Tooling.cpp
Artur Pilipenko [Tue, 28 Jun 2016 17:56:29 +0000 (17:56 +0000)]
NFC. Test commit, remove a redundant empty line in Tooling.cpp

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274041 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[CMake] Pass LLVM_LIT_ARGS into compiler-rt build.
Chris Bieneman [Tue, 28 Jun 2016 17:00:49 +0000 (17:00 +0000)]
[CMake] Pass LLVM_LIT_ARGS into compiler-rt build.

If top-level lit args are specified, you probably want that in the sub-project too.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274035 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[CMake] [Apple Clang] Enable Compiler-RT tests on stage2 builds
Chris Bieneman [Tue, 28 Jun 2016 16:32:48 +0000 (16:32 +0000)]
[CMake] [Apple Clang] Enable Compiler-RT tests on stage2 builds

We want to be able to run the compiler-rt tests on stage2 build configurations in CI. This should enable that.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274031 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[ASTMatchers] Add isLambda() matcher.
Samuel Benzaquen [Tue, 28 Jun 2016 14:08:56 +0000 (14:08 +0000)]
[ASTMatchers] Add isLambda() matcher.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274015 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[SPARC] Allows inlining of atomics for Sparc32 with appropriate store barrier.
Chris Dewhurst [Tue, 28 Jun 2016 12:55:55 +0000 (12:55 +0000)]
[SPARC] Allows inlining of atomics for Sparc32 with appropriate store barrier.

The final change is required to extend the back-end's AtomicExpandPass that was implemented for Sparc (64 bit) and later extended for Sparc (32 bit).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274012 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[Driver] Add method to redirect output of Compilation.
Nikolay Haustov [Tue, 28 Jun 2016 08:00:42 +0000 (08:00 +0000)]
[Driver] Add method to redirect output of Compilation.

Summary:
Currently output of child process, however in my use case, it
needs to be captured and presented to the user.

Add Redirect method to Compilation and use existing infrastructure
for redirecting output of commands.

Reviewers: tstellarAMD

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D21224

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273997 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoRevert r273950, (empty). Please recommit it with readable commit message.
NAKAMURA Takumi [Tue, 28 Jun 2016 06:10:54 +0000 (06:10 +0000)]
Revert r273950, (empty). Please recommit it with readable commit message.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273994 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[clang-cl] Define _MSVC_LANG
David Majnemer [Tue, 28 Jun 2016 03:13:16 +0000 (03:13 +0000)]
[clang-cl] Define _MSVC_LANG

Recently, Microsoft added support for a flag, /std, which controls which
version of the language rules MSVC should use.
MSVC hasn't updated __cplusplus though.
Instead, they added a new macro, _MSVC_LANG, which is defined in a
similar fashion to __cplusplus.  This is used to indicate which mode the
compiler is in.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273987 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[intrin.h] Certain _Interlocked intrinsics return the old value
David Majnemer [Tue, 28 Jun 2016 02:54:43 +0000 (02:54 +0000)]
[intrin.h] Certain _Interlocked intrinsics return the old value

This fixes PR28326.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273986 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoAvoid accessing an invalid PresumedLoc.
Jordan Rose [Tue, 28 Jun 2016 01:02:31 +0000 (01:02 +0000)]
Avoid accessing an invalid PresumedLoc.

DiagnosticNoteRenderer asserts trying to emit its "while building
module Foo imported from bar.h:5" note when the presumed location
of the import is invalid. This assertion was added in r267914,
where most uses of 'getFilename' were updated to test 'isValid'
instead. This one must have been missed.

I can't come up with a test because this location is always valid
in C-based code, but external clients that manually import modules
(*cough*Swift*cough*) sometimes provide invalid SourceLocations.

rdar://problem/26099576

http://reviews.llvm.org/D21111

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273976 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoFrontend: clang-format a statement, NFC
Saleem Abdulrasool [Tue, 28 Jun 2016 00:19:32 +0000 (00:19 +0000)]
Frontend: clang-format a statement, NFC

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273972 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoAMDGPU: Add builtin to read exec mask
Matt Arsenault [Tue, 28 Jun 2016 00:13:17 +0000 (00:13 +0000)]
AMDGPU: Add builtin to read exec mask

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273965 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agogit-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273950 91177308-0d34-0410...
Chris Dewhurst [Mon, 27 Jun 2016 22:11:12 +0000 (22:11 +0000)]
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273950 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoAttempting to fix lit test test/Headers/opencl-c-header.cl on cygwin.
Yaxun Liu [Mon, 27 Jun 2016 21:43:00 +0000 (21:43 +0000)]
Attempting to fix lit test test/Headers/opencl-c-header.cl on cygwin.

"chmod u-x *" does not work for lit on cygwin.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273948 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoAdd simple, stupid, pattern-based fuzzer / reducer for modules bugs. I've
Richard Smith [Mon, 27 Jun 2016 19:43:46 +0000 (19:43 +0000)]
Add simple, stupid, pattern-based fuzzer / reducer for modules bugs. I've
already used this to find and reduce quite a few bugs, and it works pretty well
if you can find the right patterns.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273913 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[ExprConstant] Fix PR28314 - crash while evluating objectsize.
George Burgess IV [Mon, 27 Jun 2016 19:40:41 +0000 (19:40 +0000)]
[ExprConstant] Fix PR28314 - crash while evluating objectsize.

This fixes a crash in code like:
```
struct A {
  struct B b;
  char c[1];
}

int foo(struct A* a) { return __builtin_object_size(a->c, 0); }
```

We wouldn't check whether the structs we were examining were invalid,
and getting the layout of an invalid struct is (unsurprisingly) A Bad
Thing. With this patch, we'll always return conservatively if we see an
invalid struct, since I'm assuming the presence of an invalid struct
means that our compilation failed (so having a conservative result isn't
such a big deal).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273911 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[OpenMP] Diagnose missing cases of statements between target and teams directives
Kelvin Li [Mon, 27 Jun 2016 19:15:43 +0000 (19:15 +0000)]
[OpenMP] Diagnose missing cases of statements between target and teams directives

Clang fails to diagnose cases such as
#pragma omp target
  while(0) {
    #pragma omp teams
    {}
  }

A patch by David Sheinkman.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273908 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoResubmission of http://reviews.llvm.org/D21564 after fixes.
Carlo Bertolli [Mon, 27 Jun 2016 14:55:37 +0000 (14:55 +0000)]
Resubmission of http://reviews.llvm.org/D21564 after fixes.
[OpenMP] Initial implementation of parse and sema for composite pragma 'distribute parallel for'

This patch is an initial implementation for #distribute parallel for.
The main differences that affect other pragmas are:

The implementation of 'distribute parallel for' requires blocking of the associated loop, where blocks are "distributed" to different teams and iterations within each block are scheduled to parallel threads within each team. To implement blocking, sema creates two additional worksharing directive fields that are used to pass the team assigned block lower and upper bounds through the outlined function resulting from 'parallel'. In this way, scheduling for 'for' to threads can use those bounds.
As a consequence of blocking, the stride of 'distribute' is not 1 but it is equal to the blocking size. This is returned by the runtime and sema prepares a DistIncrExpr variable to hold that value.
As a consequence of blocking, the global upper bound (EnsureUpperBound) expression of the 'for' is not the original loop upper bound (e.g. in for(i = 0 ; i < N; i++) this is 'N') but it is the team-assigned block upper bound. Sema creates a new expression holding the calculation of the actual upper bound for 'for' as UB = min(UB, PrevUB), where UB is the loop upper bound, and PrevUB is the team-assigned block upper bound.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273884 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[clang-cl] Implement support for /std
David Majnemer [Mon, 27 Jun 2016 02:32:12 +0000 (02:32 +0000)]
[clang-cl] Implement support for /std

/std: supports two arguments, c++14 and c++latest.  Currently, c++latest
maps to c++1z but this might change down the road.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273841 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[X86] add _mm_loadu_si64
Asaf Badouh [Sun, 26 Jun 2016 13:51:54 +0000 (13:51 +0000)]
[X86] add _mm_loadu_si64

Differential Revision: http://reviews.llvm.org/D21504

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273812 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoFix unused variable warning after r273754.
James Y Knight [Sat, 25 Jun 2016 16:40:53 +0000 (16:40 +0000)]
Fix unused variable warning after r273754.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273783 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[X86] Fix pslldq/psrldq intrinsics to not fail compilation with immediates larger...
Craig Topper [Sat, 25 Jun 2016 07:31:14 +0000 (07:31 +0000)]
[X86] Fix pslldq/psrldq intrinsics to not fail compilation with immediates larger than 16. This was accidentally broken in r272246.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273775 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoFix bad test expectation.
Peter Collingbourne [Sat, 25 Jun 2016 00:37:14 +0000 (00:37 +0000)]
Fix bad test expectation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273760 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoCodeGen: Start emitting checked loads when both trapping CFI and -fwhole-program...
Peter Collingbourne [Sat, 25 Jun 2016 00:24:06 +0000 (00:24 +0000)]
CodeGen: Start emitting checked loads when both trapping CFI and -fwhole-program-vtables are enabled.

Differential Revision: http://reviews.llvm.org/D21122

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273757 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoImplement C++17 P0386R2, inline variables. (The 'inline' specifier gives a
Richard Smith [Sat, 25 Jun 2016 00:15:56 +0000 (00:15 +0000)]
Implement C++17 P0386R2, inline variables. (The 'inline' specifier gives a
variable weak discardable linkage and partially-ordered initialization, and is
implied for constexpr static data members.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273754 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoAdd support for musl-libc on ARM Linux.
Rafael Espindola [Fri, 24 Jun 2016 21:35:06 +0000 (21:35 +0000)]
Add support for musl-libc on ARM Linux.

Patch by Lei Zhang!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273735 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoCodeGen: Update Clang to use the new type metadata.
Peter Collingbourne [Fri, 24 Jun 2016 21:21:46 +0000 (21:21 +0000)]
CodeGen: Update Clang to use the new type metadata.

Differential Revision: http://reviews.llvm.org/D21054

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273730 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[CMake] Remove CLANG_APPEND_VC_REV option
Chris Bieneman [Fri, 24 Jun 2016 20:21:12 +0000 (20:21 +0000)]
[CMake] Remove CLANG_APPEND_VC_REV option

I added this option in r257827 to try and add compatibility with autoconf. At the time I misunderstood the problem.

Our CMake automatically generates the SVN revision information and generates a build action to update it so builds don't need to be re-configured on SCM update (which is a better solution than we had in autoconf).

The problem I was actually seeing was isolated cases where SVN revision information isn't available because the repository structures have been removed. This happens in some automated testing systems.

This patch allows SVN_REVISION to be overridden if the build configuration could not find the SCM repository structures, and removes the code from my original patch because it is unnecessary.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273714 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoRevert r273705
Carlo Bertolli [Fri, 24 Jun 2016 19:20:02 +0000 (19:20 +0000)]
Revert r273705

 [OpenMP] Initial implementation of parse and sema for composite pragma 'distribute parallel for'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273709 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[OpenMP] Initial implementation of parse and sema for composite pragma 'distribute...
Carlo Bertolli [Fri, 24 Jun 2016 18:53:35 +0000 (18:53 +0000)]
[OpenMP] Initial implementation of parse and sema for composite pragma 'distribute parallel for'

http://reviews.llvm.org/D21564

This patch is an initial implementation for #distribute parallel for.
The main differences that affect other pragmas are:

The implementation of 'distribute parallel for' requires blocking of the associated loop, where blocks are "distributed" to different teams and iterations within each block are scheduled to parallel threads within each team. To implement blocking, sema creates two additional worksharing directive fields that are used to pass the team assigned block lower and upper bounds through the outlined function resulting from 'parallel'. In this way, scheduling for 'for' to threads can use those bounds.
As a consequence of blocking, the stride of 'distribute' is not 1 but it is equal to the blocking size. This is returned by the runtime and sema prepares a DistIncrExpr variable to hold that value.
As a consequence of blocking, the global upper bound (EnsureUpperBound) expression of the 'for' is not the original loop upper bound (e.g. in for(i = 0 ; i < N; i++) this is 'N') but it is the team-assigned block upper bound. Sema creates a new expression holding the calculation of the actual upper bound for 'for' as UB = min(UB, PrevUB), where UB is the loop upper bound, and PrevUB is the team-assigned block upper bound.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273705 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoclang-format: [JS] Fix build breakage.
Martin Probst [Fri, 24 Jun 2016 17:45:13 +0000 (17:45 +0000)]
clang-format: [JS] Fix build breakage.

Checking Line.MustBeDeclaration does actually break the field and param initializer use case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273694 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoDeadStoresChecker: Don't warn about dead stores into volatile variables
Stephan Bergmann [Fri, 24 Jun 2016 16:26:43 +0000 (16:26 +0000)]
DeadStoresChecker: Don't warn about dead stores into volatile variables

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273689 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoCorrect error in change description.
Richard Smith [Fri, 24 Jun 2016 14:23:32 +0000 (14:23 +0000)]
Correct error in change description.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273683 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoRemaining motions pass.
Richard Smith [Fri, 24 Jun 2016 14:10:58 +0000 (14:10 +0000)]
Remaining motions pass.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273681 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoInline variables tentatively approved for C++17.
Richard Smith [Fri, 24 Jun 2016 14:04:07 +0000 (14:04 +0000)]
Inline variables tentatively approved for C++17.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273680 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoUpdates from further motions.
Richard Smith [Fri, 24 Jun 2016 13:25:08 +0000 (13:25 +0000)]
Updates from further motions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273676 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoFix make-check issues
Strahinja Petrovic [Fri, 24 Jun 2016 13:11:15 +0000 (13:11 +0000)]
Fix make-check issues

Fixing build issue for test test/CodeGen/struct-union-BE.c.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273675 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoMore approved features for C++17.
Richard Smith [Fri, 24 Jun 2016 12:21:30 +0000 (12:21 +0000)]
More approved features for C++17.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273668 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoDynamic memory allocation with alignment has been approved for C++17.
Richard Smith [Fri, 24 Jun 2016 12:16:11 +0000 (12:16 +0000)]
Dynamic memory allocation with alignment has been approved for C++17.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273667 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoUsing for attributes voted into C++17.
Richard Smith [Fri, 24 Jun 2016 12:15:12 +0000 (12:15 +0000)]
Using for attributes voted into C++17.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273666 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoThis patch fixes problem with passing structures and unions
Strahinja Petrovic [Fri, 24 Jun 2016 12:12:41 +0000 (12:12 +0000)]
This patch fixes problem with passing structures and unions
smaller than register as argument in variadic functions on
big endian architectures.
Differential Revision: http://reviews.llvm.org/D21611

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273665 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoAdd (commented out) status entries for the upcoming WG21 motions.
Richard Smith [Fri, 24 Jun 2016 11:20:31 +0000 (11:20 +0000)]
Add (commented out) status entries for the upcoming WG21 motions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273662 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoIgnoringImplicit matcher.
Cong Liu [Fri, 24 Jun 2016 09:38:03 +0000 (09:38 +0000)]
IgnoringImplicit matcher.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273659 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agotry to fix the MSVC build
David Majnemer [Fri, 24 Jun 2016 05:48:59 +0000 (05:48 +0000)]
try to fix the MSVC build

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273651 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoUse even more ArrayRefs
David Majnemer [Fri, 24 Jun 2016 05:33:44 +0000 (05:33 +0000)]
Use even more ArrayRefs

No functional change is intended, just a small refactoring.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273650 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoUse more ArrayRefs
David Majnemer [Fri, 24 Jun 2016 04:05:48 +0000 (04:05 +0000)]
Use more ArrayRefs

No functional change is intended, just a small refactoring.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273647 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoUse the same underlying type for bitfields
David Majnemer [Fri, 24 Jun 2016 04:05:35 +0000 (04:05 +0000)]
Use the same underlying type for bitfields

MSVC allocates fresh storage for consecutive bitfields with different
underlying types.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273646 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoParser::ParseCXXCondition(): Prune \param in r273548 [-Wdocumentation]
NAKAMURA Takumi [Thu, 23 Jun 2016 22:47:59 +0000 (22:47 +0000)]
Parser::ParseCXXCondition(): Prune \param in r273548 [-Wdocumentation]

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273624 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoclang-format: [JS] handle conditionals in fields, default params.
Martin Probst [Thu, 23 Jun 2016 21:51:49 +0000 (21:51 +0000)]
clang-format: [JS] handle conditionals in fields, default params.

Summary:

Reviewers: djasper

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D21658

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273619 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoInvoke simplifycfg and sroa before instcombine.
Dehao Chen [Thu, 23 Jun 2016 20:13:10 +0000 (20:13 +0000)]
Invoke simplifycfg and sroa before instcombine.

Summary: InstCombine needs to be performed after simplifycfg and sroa, otherwise it may make bad optimization decisions.

Reviewers: davidxl, wmi, dnovillo

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D21568

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273606 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoclang-format: [JS] recognize more type locations.
Martin Probst [Thu, 23 Jun 2016 19:52:32 +0000 (19:52 +0000)]
clang-format: [JS] recognize more type locations.

Summary: Includes parenthesized type expressions and type aliases.

Reviewers: djasper

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D21597

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273603 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoImplement p0292r2 (constexpr if), a likely C++1z feature.
Richard Smith [Thu, 23 Jun 2016 19:16:49 +0000 (19:16 +0000)]
Implement p0292r2 (constexpr if), a likely C++1z feature.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273602 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoRe-commit r273548, reverted in r273589, with a fix to not produce
Richard Smith [Thu, 23 Jun 2016 19:02:52 +0000 (19:02 +0000)]
Re-commit r273548, reverted in r273589, with a fix to not produce
-Wfor-loop-analysis warnings for a for-loop with a condition variable. In such
a case, the loop condition variable is modified on each iteration of the loop
by definition.

Original commit message:

Rearrange condition handling so that semantic checks on a condition variable
are performed before the other substatements of the construct are parsed,
rather than deferring them until the end. This allows better error recovery
from semantic errors in the condition, improves diagnostic order, and is a
prerequisite for C++17 constexpr if.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273600 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoAdd a test case for the regression in -Wfor-loop-analysis caused by r273548.
Peter Collingbourne [Thu, 23 Jun 2016 18:11:19 +0000 (18:11 +0000)]
Add a test case for the regression in -Wfor-loop-analysis caused by r273548.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273590 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoRevert r273548, "Rearrange condition handling so that semantic checks on a condition...
Peter Collingbourne [Thu, 23 Jun 2016 18:11:15 +0000 (18:11 +0000)]
Revert r273548, "Rearrange condition handling so that semantic checks on a condition variable"
as it caused a regression in -Wfor-loop-analysis.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273589 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[Analyzer] Don't cache report generation ExplodedNodes
Ben Craig [Thu, 23 Jun 2016 15:47:12 +0000 (15:47 +0000)]
[Analyzer] Don't cache report generation ExplodedNodes

During the core analysis, ExplodedNodes are added to the
ExplodedGraph, and those nodes are cached for deduplication purposes.

After core analysis, reports are generated. Here, trimmed copies of
the ExplodedGraph are made. Since the ExplodedGraph has already been
deduplicated, there is no need to deduplicate again.

This change makes it possible to add ExplodedNodes to an
ExplodedGraph without the overhead of deduplication. "Uncached" nodes
also cannot be iterated over, but none of the report generation code
attempts to iterate over all nodes. This change reduces the analysis
time of a large .C file from 3m43.941s to 3m40.256s (~1.6% speedup).
It should slightly reduce memory consumption. Gains should be roughly
proportional to the number (and path length) of static analysis
warnings.

This patch enables future work that should remove the need for an
InterExplodedGraphMap inverse map. I plan on using the (now unused)
ExplodedNode link to connect new nodes to the original nodes.

http://reviews.llvm.org/D21229

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273572 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoRestructure the propagation of -fPIC/-fPIE.
Rafael Espindola [Thu, 23 Jun 2016 15:07:32 +0000 (15:07 +0000)]
Restructure the propagation of -fPIC/-fPIE.

The PIC and PIE levels are not independent. In fact, if PIE is defined
it is always the same as PIC.

This is clear in the driver where ParsePICArgs returns a PIC level and
a IsPIE boolean. Unfortunately that is currently lost and we pass two
redundant levels down the pipeline.

This patch keeps a bool and a PIC level all the way down to codegen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273566 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoFixing a FIXME related to Unicode support on Windows. Converted the Win32 APIs to...
Aaron Ballman [Thu, 23 Jun 2016 14:33:53 +0000 (14:33 +0000)]
Fixing a FIXME related to Unicode support on Windows. Converted the Win32 APIs to explicitly use the W version when it involves strings that can hold non-ASCII characters (like file paths). Now explicitly using the A version for strings that will always be ASCII (like registry key paths).

No extra tests required as this is currently covered by existing testing, and this is basically impossible to write Unicode-specific tests for.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273563 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoCodeGen: support linker options on Windows ARM
Saleem Abdulrasool [Thu, 23 Jun 2016 13:45:33 +0000 (13:45 +0000)]
CodeGen: support linker options on Windows ARM

We would incorrectly emit the directive sections due to the missing overridden
methods.  We now emit the expected "/DEFAULTLIB" rather than "-l" options for
requested linkage

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273558 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoclang-format: [Proto] Use more compact format for text-formatted options
Daniel Jasper [Thu, 23 Jun 2016 09:40:19 +0000 (09:40 +0000)]
clang-format: [Proto] Use more compact format for text-formatted options

Before:
  enum Type {
    UNKNOWN = 0 [(some_options) = {
      a: aa,
      b: bb
    }];
  };

After:
  enum Type {
    UNKNOWN = 0 [(some_options) = {a: aa, b: bb}];
  };

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273553 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoAttempt to fix MIPS buildbots after r273425.
Daniel Sanders [Thu, 23 Jun 2016 09:29:38 +0000 (09:29 +0000)]
Attempt to fix MIPS buildbots after r273425.

MIPS has a 'signext' attribute that was causing the check to fail.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273552 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoRearrange condition handling so that semantic checks on a condition variable
Richard Smith [Thu, 23 Jun 2016 08:41:20 +0000 (08:41 +0000)]
Rearrange condition handling so that semantic checks on a condition variable
are performed before the other substatements of the construct are parsed,
rather than deferring them until the end. This allows better error recovery
from semantic errors in the condition, improves diagnostic order, and is a
prerequisite for C++17 constexpr if.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273548 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[AVX512] Replace masked unpack builtins with shufflevector and selects.
Craig Topper [Thu, 23 Jun 2016 06:36:42 +0000 (06:36 +0000)]
[AVX512] Replace masked unpack builtins with shufflevector and selects.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273533 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoUse ranges to concisely express iteration
David Majnemer [Thu, 23 Jun 2016 00:15:04 +0000 (00:15 +0000)]
Use ranges to concisely express iteration

No functional change is intended, this should just clean things up a
little.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273522 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[driver] Remove one more bunch of empty 'test inputs' folders. NFC
Simon Atanasyan [Wed, 22 Jun 2016 20:30:26 +0000 (20:30 +0000)]
[driver] Remove one more bunch of empty 'test inputs' folders. NFC

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273471 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[driver] Remove empty folders from the Inputs folder for the driver's tests. NFC
Simon Atanasyan [Wed, 22 Jun 2016 20:20:51 +0000 (20:20 +0000)]
[driver] Remove empty folders from the Inputs folder for the driver's tests. NFC

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273468 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[driver][mips] Factor out findMIPSMultilibs code into separate functions. NFC
Simon Atanasyan [Wed, 22 Jun 2016 20:00:50 +0000 (20:00 +0000)]
[driver][mips] Factor out findMIPSMultilibs code into separate functions. NFC

The findMIPSMultilibs is too long. One more reason for splitting is to
escape redundant calls of MultilibSet::FilterOut method which lead to
disk access.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273465 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[Coverage] Push a new region when handling CXXTryStmts
Vedant Kumar [Wed, 22 Jun 2016 19:57:58 +0000 (19:57 +0000)]
[Coverage] Push a new region when handling CXXTryStmts

Push a new region for the try block and propagate execution counts
through it. This ensures that catch statements get a region counter
distinct from the try block's counter.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273463 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[codeview] Set the new IntroducedVirtual debug info flag
Reid Kleckner [Wed, 22 Jun 2016 18:34:45 +0000 (18:34 +0000)]
[codeview] Set the new IntroducedVirtual debug info flag

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273454 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoMake this test a bit more strict and fix it.
Rafael Espindola [Wed, 22 Jun 2016 18:04:52 +0000 (18:04 +0000)]
Make this test a bit more strict and fix it.

We do pass -pic-level to cc1 when targeting darwin. Given that codegen
itself doesn't use it, the only difference is whether __PIE__ and
__pie__ are defined.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273450 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[analyzer] Teach ObjCDeallocChecker about XCTestCase
Devin Coughlin [Wed, 22 Jun 2016 17:03:10 +0000 (17:03 +0000)]
[analyzer] Teach ObjCDeallocChecker about XCTestCase

Like with SenTestCase, subclasses of XCTestCase follow a "tear down" idiom to
release instance variables and so typically do not release ivars in -dealloc.
This commit applies the existing special casing for SenTestCase to XCTestCase
as well.

rdar://problem/25884696

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273441 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoAdd support for /Ob1 and -finline-hint-functions flags
Hans Wennborg [Wed, 22 Jun 2016 16:56:16 +0000 (16:56 +0000)]
Add support for /Ob1 and -finline-hint-functions flags

Add support for /Ob1 (and equivalent -finline-hint-functions), which enable
inlining only for functions marked inline, either explicitly (via inline
keyword, for example), or implicitly (function definition in class body,
for example).

This works by enabling inlining pass, and adding noinline attribute to
every function not marked inline.

Patch by Rudy Pons <rudy.pons@ilod.org>!

Differential Revision: http://reviews.llvm.org/D20647

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273440 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoWiden EHScope::ClenupBitFields::FixupDepth to avoid overflowing it (PR23490)
Hans Wennborg [Wed, 22 Jun 2016 16:21:14 +0000 (16:21 +0000)]
Widen EHScope::ClenupBitFields::FixupDepth to avoid overflowing it (PR23490)

It currently only takes 2048 gotos to overflow the FixupDepth bitfield,
causing silent miscompilation. Apparently some parser generators run into
this (see PR).

I don't know that that data structure is terribly size sensitive anyway,
and since there's no room to widen the bitfield, let's just use a separate
word in EHCatchScope for it.

Differential Revision: http://reviews.llvm.org/D21566

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273434 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[OpenCL] Use function metadata to represent kernel attributes
Yaxun Liu [Wed, 22 Jun 2016 14:56:35 +0000 (14:56 +0000)]
[OpenCL] Use function metadata to represent kernel attributes

This patch uses function metadata to represent reqd_work_group_size, work_group_size_hint and vector_type_hint kernel attributes and kernel argument info.

Differential Revision: http://reviews.llvm.org/D20979

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273425 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoclang-format: [JS] Do not break before 'as'.
Martin Probst [Wed, 22 Jun 2016 14:35:14 +0000 (14:35 +0000)]
clang-format: [JS] Do not break before 'as'.

Summary:
'as' is a pseudo operator, so automatic semicolon insertion kicks in and the
code fails to part.

Reviewers: djasper

Subscribers: klimek

Differential Revision: http://reviews.llvm.org/D21576

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273422 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[Clang][bmi][intrinsics] Adding _mm_tzcnt_64 _mm_tzcnt_32 intrinsics to clang.
Michael Zuckerman [Wed, 22 Jun 2016 12:32:43 +0000 (12:32 +0000)]
[Clang][bmi][intrinsics] Adding _mm_tzcnt_64 _mm_tzcnt_32 intrinsics to clang.

Differential Revision: http://reviews.llvm.org/D21373

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273401 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[AVX512] Use a __v8hi vector inside of _mm_setzero_hi to match its name. Probably...
Craig Topper [Wed, 22 Jun 2016 06:36:23 +0000 (06:36 +0000)]
[AVX512] Use a __v8hi vector inside of _mm_setzero_hi to match its name. Probably no real functional change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273389 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[AVX512] Fix _mm_setzero_di to not require avx512vl since its used by the avx512dqint...
Craig Topper [Wed, 22 Jun 2016 06:36:21 +0000 (06:36 +0000)]
[AVX512] Fix _mm_setzero_di to not require avx512vl since its used by the avx512dqintrin.h. Also update the avx512dq test to not enable avx512vl feature so we can ensure correct dependencies.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273388 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[AVX512] __builtin_ia32_reducesd_mask and __builtin_ia32_reducess_mask should not...
Craig Topper [Wed, 22 Jun 2016 06:36:18 +0000 (06:36 +0000)]
[AVX512] __builtin_ia32_reducesd_mask and __builtin_ia32_reducess_mask should not require avx512vl.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273387 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[AVX512] Add missing typecasts to intrinsics.
Craig Topper [Wed, 22 Jun 2016 06:36:16 +0000 (06:36 +0000)]
[AVX512] Add missing typecasts to intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273386 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[AVX512] Replace masked integer cmp and ucmp builtins with native IR.
Craig Topper [Wed, 22 Jun 2016 04:47:58 +0000 (04:47 +0000)]
[AVX512] Replace masked integer cmp and ucmp builtins with native IR.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273378 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[AVX512] Use correct types for mask parameters in avx512vlbw cmp builtin tests.
Craig Topper [Wed, 22 Jun 2016 04:47:55 +0000 (04:47 +0000)]
[AVX512] Use correct types for mask parameters in avx512vlbw cmp builtin tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273377 91177308-0d34-0410-b5e6-96231b3b80d8

8 years ago[OpenMP] Add the depend clause to target update construct (sema and parsing)
Kelvin Li [Wed, 22 Jun 2016 03:10:32 +0000 (03:10 +0000)]
[OpenMP] Add the depend clause to target update construct (sema and parsing)

Differential Revision: http://reviews.llvm.org/D21532

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273369 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoRequire an x86 target for the thinlto_backend.ll test.
Peter Collingbourne [Wed, 22 Jun 2016 01:40:47 +0000 (01:40 +0000)]
Require an x86 target for the thinlto_backend.ll test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273361 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoSpecify a target triple to fix the test on non-Linux.
Peter Collingbourne [Wed, 22 Jun 2016 01:17:30 +0000 (01:17 +0000)]
Specify a target triple to fix the test on non-Linux.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273356 91177308-0d34-0410-b5e6-96231b3b80d8

8 years agoAdd missing test dependency.
Peter Collingbourne [Wed, 22 Jun 2016 01:03:15 +0000 (01:03 +0000)]
Add missing test dependency.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273351 91177308-0d34-0410-b5e6-96231b3b80d8