]> granicus.if.org Git - clang/log
clang
10 years agoFix test OpenMP/parallel_if_codegen.cpp.
Alexey Bataev [Mon, 13 Oct 2014 06:21:04 +0000 (06:21 +0000)]
Fix test OpenMP/parallel_if_codegen.cpp.

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

10 years ago[OPENMP] Codegen for 'if' clause in 'parallel' directive.
Alexey Bataev [Mon, 13 Oct 2014 06:02:40 +0000 (06:02 +0000)]
[OPENMP] Codegen for 'if' clause in 'parallel' directive.
Adds codegen for 'if' clause. Currently only for 'if' clause used with the 'parallel' directive.
If condition evaluates to true, the code executes parallel version of the code by calling __kmpc_fork_call(loc, 1, microtask, captured_struct/*context*/), where loc - debug location, 1 - number of additional parameters after "microtask" argument, microtask - is outlined finction for the code associated with the 'parallel' directive, captured_struct - list of variables captured in this outlined function.
If condition evaluates to false, the code executes serial version of the code by executing the following code:

global_thread_id.addr = alloca i32
store i32 global_thread_id, global_thread_id.addr
zero.addr = alloca i32
store i32 0, zero.addr
kmpc_serialized_parallel(loc, global_thread_id);
microtask(global_thread_id.addr, zero.addr, captured_struct/*context*/);
kmpc_end_serialized_parallel(loc, global_thread_id);

Where loc - debug location, global_thread_id - global thread id, returned by __kmpc_global_thread_num() call or passed as a first parameter in microtask() call, global_thread_id.addr - address of the variable, where stored global_thread_id value, zero.addr - implicit bound thread id (should be set to 0 for serial call), microtask() and captured_struct are the same as in parallel call.

Also this patch checks if the condition is constant and if it is constant it evaluates its value and then generates either parallel version of the code (if the condition evaluates to true), or the serial version of the code (if the condition evaluates to false).
Differential Revision: http://reviews.llvm.org/D4716

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

10 years agoPredefinedExpr deserialization test in dependent context.
Alexey Bataev [Mon, 13 Oct 2014 03:27:35 +0000 (03:27 +0000)]
PredefinedExpr deserialization test in dependent context.
For commit r219561 - Fix deserialization of PredefinedExpr in dependent context.

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

10 years ago[Modules] Make header standalone. NFC.
Benjamin Kramer [Sun, 12 Oct 2014 22:49:21 +0000 (22:49 +0000)]
[Modules] Make header standalone. NFC.

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

10 years agoFixed a problem in r19589.
Tyler Nowicki [Sun, 12 Oct 2014 21:28:02 +0000 (21:28 +0000)]
Fixed a problem in r19589.

Several systems failed to compile the array allocation of the TokenArray.

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

10 years agoAllow constant expressions in pragma loop hints.
Tyler Nowicki [Sun, 12 Oct 2014 20:46:07 +0000 (20:46 +0000)]
Allow constant expressions in pragma loop hints.

Previously loop hints such as #pragma loop vectorize_width(#) required a constant. This patch allows a constant expression to be used as well. Such as a non-type template parameter or an expression (2 * c + 1).

Reviewed by Richard Smith

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

10 years agoCodeGen: Strip qualifiers from qualified array types in catches
David Majnemer [Sun, 12 Oct 2014 06:58:22 +0000 (06:58 +0000)]
CodeGen: Strip qualifiers from qualified array types in catches

While we ran getUnqualifiedType over the catch type,
it isn't enough for array types.  Use getUnqualifiedArrayType instead.

This fixes PR21252.

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

10 years agoclang/test/Driver: Some tests don't REQUIRE asserts any more. Remove them.
NAKAMURA Takumi [Sun, 12 Oct 2014 06:44:05 +0000 (06:44 +0000)]
clang/test/Driver: Some tests don't REQUIRE asserts any more. Remove them.

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

10 years agoSuppress a warning about an unused variable in NDEBUG builds.
Chandler Carruth [Sat, 11 Oct 2014 11:29:26 +0000 (11:29 +0000)]
Suppress a warning about an unused variable in NDEBUG builds.

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

10 years ago[complex] Teach the other two binary operators on complex numbers (==
Chandler Carruth [Sat, 11 Oct 2014 11:03:30 +0000 (11:03 +0000)]
[complex] Teach the other two binary operators on complex numbers (==
and !=) to support mixed complex and real operand types.

This requires removing an assert from SemaChecking, and adding support
both to the constant evaluator and the code generator to synthesize the
imaginary part when needed. This seemed somewhat cleaner than having
just the comparison operators force real-to-complex conversions.

I've added test cases for these operations. I'm really terrified that
there were *no* tests in-tree which exercised this.

This turned up when trying to build R after my change to the complex
type lowering.

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

10 years agoFix typo in ARM reserved-r9 test case
Renato Golin [Sat, 11 Oct 2014 10:34:18 +0000 (10:34 +0000)]
Fix typo in ARM reserved-r9 test case

Patch by Charlie Turner.

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

10 years ago[complex] Use the much more powerful EmitCall routine to call libcalls
Chandler Carruth [Sat, 11 Oct 2014 09:24:41 +0000 (09:24 +0000)]
[complex] Use the much more powerful EmitCall routine to call libcalls
for complex math.

This should fix the windows build bots that started having trouble here
and generally fix complex libcall emission on targets which use sret for
complex data types. It also makes the code a bit simpler (despite
calling into a much more complex bucket of code).

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

10 years agoclang-format: [ObjC] Wrap ObjC method declarations before annotations.
Daniel Jasper [Sat, 11 Oct 2014 08:24:56 +0000 (08:24 +0000)]
clang-format: [ObjC] Wrap ObjC method declarations before annotations.

Before:
  - (instancetype)initXxxxxxxxxxxxxxxxxxxxxxxxx:(id<x>)x
                                              y:(id<yyyyyyyyyyyyyyyyyyyy>)
                                                    y NS_DESIGNATED_INITIALIZER;
After:
  - (instancetype)initXxxxxxxxxxxxxxxxxxxxxxxxx:(id<x>)x
                                              y:(id<yyyyyyyyyyyyyyyyyyyy>)y
      NS_DESIGNATED_INITIALIZER;

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

10 years agoFix deserialization of PredefinedExpr in dependent context.
Alexey Bataev [Sat, 11 Oct 2014 05:07:24 +0000 (05:07 +0000)]
Fix deserialization of PredefinedExpr in dependent context.

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

10 years ago[complex] Teach Clang to preserve different-type operands to arithmetic
Chandler Carruth [Sat, 11 Oct 2014 00:57:18 +0000 (00:57 +0000)]
[complex] Teach Clang to preserve different-type operands to arithmetic
operators where one type is a C complex type, and to emit both the
efficient and correct implementation for complex arithmetic according to
C11 Annex G using this extra information.

For both multiply and divide the old code was writing a long-hand
reduced version of the math without any of the special handling of inf
and NaN recommended by the standard here. Instead of putting more
complexity here, this change does what GCC does which is to emit
a libcall for the fully general case.

However, the old code also failed to do the proper minimization of the
set of operations when there was a mixed complex and real operation. In
those cases, C provides a spec for much more minimal operations that are
valid. Clang now emits the exact suggested operations. This change isn't
*just* about performance though, without minimizing these operations, we
again lose the correct handling of infinities and NaNs. It is critical
that this happen in the frontend based on assymetric type operands to
complex math operations.

The performance implications of this change aren't trivial either. I've
run a set of benchmarks in Eigen, an open source mathematics library
that makes heavy use of complex. While a few have slowed down due to the
libcall being introduce, most sped up and some by a huge amount: up to
100% and 140%.

In order to make all of this work, also match the algorithm in the
constant evaluator to the one in the runtime library. Currently it is
a broken port of the simplifications from C's Annex G to the long-hand
formulation of the algorithm.

Splitting this patch up is very hard because none of this works without
the AST change to preserve non-complex operands. Sorry for the enormous
change.

Follow-up changes will include support for sinking the libcalls onto
cold paths in common cases and fastmath improvements to allow more
aggressive backend folding.

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

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

10 years ago[modules] When instantiating a class member, don't expect to find the previous
Richard Smith [Sat, 11 Oct 2014 00:37:16 +0000 (00:37 +0000)]
[modules] When instantiating a class member, don't expect to find the previous
declaration in the instantiation if the previous declaration came from another
definition of the class template that got merged into the pattern definition.

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

10 years agoclang-cl: Don't warn for unused private fields when encountering a late parsed templa...
Ehsan Akhgari [Sat, 11 Oct 2014 00:24:15 +0000 (00:24 +0000)]
clang-cl: Don't warn for unused private fields when encountering a late parsed template member

Summary: This fixes PR21235.

Test Plan: Includes an automated test.

Reviewers: hansw

Subscribers: cfe-commits

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

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

10 years agoTreat -mios-simulator-version-min option as an alias for -mios-version-min.
Bob Wilson [Fri, 10 Oct 2014 23:10:10 +0000 (23:10 +0000)]
Treat -mios-simulator-version-min option as an alias for -mios-version-min.

We can safely rely on the architecture to distinguish iOS device builds from
iOS simulator builds. We already have code to do that, in fact. This simplifies
some of the error checking for the option handling.

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

10 years ago[modules] Delay loading the field declared with an anonymous tag declaration
Richard Smith [Fri, 10 Oct 2014 22:37:41 +0000 (22:37 +0000)]
[modules] Delay loading the field declared with an anonymous tag declaration
until after we've had a chance to merge that tag.

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

10 years agoCorrectly handle reading locations from serialized diagnostics
Justin Bogner [Fri, 10 Oct 2014 22:20:26 +0000 (22:20 +0000)]
Correctly handle reading locations from serialized diagnostics

When reading a serialized diagnostic location with no file ID, we were
failing to increment the cursor past the rest of the location. This
would lead to the flags and category always appearing blank in such
diagnostics.

This changes the function to unconditionally increment the cursor and
updates the test to check for the correct output instead of testing
that we were doing this wrong. I've also updated the error check to
check for the correct number of fields.

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

10 years agoObjective-C [qoi]. When reporting that a property is not
Fariborz Jahanian [Fri, 10 Oct 2014 22:08:23 +0000 (22:08 +0000)]
Objective-C [qoi]. When reporting that a property is not
auto synthesized because it is synthesized in its super
class. locate property declaration in super class
which will default synthesize the property. rdar://18488727

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

10 years agoAdd libclang capabilities to retriete template arguments from specializations.
Eli Bendersky [Fri, 10 Oct 2014 20:01:05 +0000 (20:01 +0000)]
Add libclang capabilities to retriete template arguments from specializations.

Includes Python bindings.

Reviewed in http://reviews.llvm.org/D5621
Patch by Rob Springer

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

10 years agoRemove rest of the comment that is no longer true after r219527.
Bob Wilson [Fri, 10 Oct 2014 19:59:18 +0000 (19:59 +0000)]
Remove rest of the comment that is no longer true after r219527.

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

10 years agoRemove a FIXME: use the ios_simulator_version_min linker option consistently.
Bob Wilson [Fri, 10 Oct 2014 19:38:34 +0000 (19:38 +0000)]
Remove a FIXME: use the ios_simulator_version_min linker option consistently.

This was previously only used when explicitly requested with a command line
option because it had to work with some old versions of the linker when it
was first introduced. That is ancient history now, and it should be safe to
use the correct option even when using the IPHONEOS_DEPLOYMENT_TARGET
environment variable to specify that the target is the iOS simulator.
Besides updating the test for this, I also added a few more tests for the
iOS linker options.

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

10 years agoMake test more robust to appease build bots
David Majnemer [Fri, 10 Oct 2014 19:23:49 +0000 (19:23 +0000)]
Make test more robust to appease build bots

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

10 years agoBugfix for predefined expressions in dependent context.
Alexey Bataev [Fri, 10 Oct 2014 18:58:13 +0000 (18:58 +0000)]
Bugfix for predefined expressions in dependent context.
This bug break compilation with precompiled headers and predefined expressions in dependent context.

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

10 years agoCodeGen: FieldMemcpyizer didn't handle copies starting inside bitfields
David Majnemer [Fri, 10 Oct 2014 18:57:10 +0000 (18:57 +0000)]
CodeGen: FieldMemcpyizer didn't handle copies starting inside bitfields

It's possible to construct cases where the first field we are trying to
copy is in the middle of an IR field.  In some complicated cases, we
would fail to use an appropriate offset inside the object.  Earlier
builds of clang seemed to miscompile the code by copying an insufficient
number of bytes.  Up until now, we would assert: the copying offset was
insufficiently aligned.

This fixes PR21232.

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

10 years agoChange how we distinguish bitfield widths, in-class
John McCall [Fri, 10 Oct 2014 18:44:34 +0000 (18:44 +0000)]
Change how we distinguish bitfield widths, in-class
initializers, and captured VLA types so that we can
answer questions like "is this a bit-field" without
looking at the enclosing DeclContext.  NFC.

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

10 years ago[PowerPC] Reduce names from Power8Vector to P8Vector
Bill Schmidt [Fri, 10 Oct 2014 17:21:23 +0000 (17:21 +0000)]
[PowerPC] Reduce names from Power8Vector to P8Vector

Per Hal Finkel's review, improving typability of some variable names.

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

10 years agoAlright, just XFAIL all these for Windows.
Dan Albert [Fri, 10 Oct 2014 17:20:10 +0000 (17:20 +0000)]
Alright, just XFAIL all these for Windows.

I'm going to fix up FileCheck to better handle things like this soon,
but for now let's just unblock the Windows people.

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

10 years agoFix documentation typo.
JF Bastien [Fri, 10 Oct 2014 16:09:48 +0000 (16:09 +0000)]
Fix documentation typo.

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

10 years agoReduce double set lookups. NFC.
Benjamin Kramer [Fri, 10 Oct 2014 15:32:48 +0000 (15:32 +0000)]
Reduce double set lookups. NFC.

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

10 years ago[PowerPC] Add feature for Power8 vector extensions
Bill Schmidt [Fri, 10 Oct 2014 15:09:43 +0000 (15:09 +0000)]
[PowerPC] Add feature for Power8 vector extensions

The current VSX feature for PowerPC specifies availability of the VSX
instructions added with the 2.06 architecture version.  With 2.07, the
architecture adds new instructions to both the Category:Vector and
Category:VSX instruction sets.  Additionally, unaligned vector storage
operations have improved performance.

This patch adds a feature to provide access to the new instructions
and performance capabilities of Power8.  For compatibility with GCC,
the feature is controlled via a new -mpower8-vector switch, and the
feature causes the __POWER8_VECTOR__ builtin define to be generated by
the preprocessor.

There is a companion patch for llvm being committed at the same time.

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

10 years agoUnfriend CGOpenMPRegionInfo so it can go into an anonymous namespace.
Benjamin Kramer [Fri, 10 Oct 2014 13:57:57 +0000 (13:57 +0000)]
Unfriend CGOpenMPRegionInfo so it can go into an anonymous namespace.

Also remove some unnecessary virtual keywords. NFC.

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

10 years agoFixing the MSVC 2013 build, NFC.
Aaron Ballman [Fri, 10 Oct 2014 12:40:56 +0000 (12:40 +0000)]
Fixing the MSVC 2013 build, NFC.

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

10 years agoCode reformatting and improvement for OpenMP.
Alexey Bataev [Fri, 10 Oct 2014 12:19:54 +0000 (12:19 +0000)]
Code reformatting and improvement for OpenMP.
Moved CGOpenMPRegionInfo from CGOpenMPRuntime.h to CGOpenMPRuntime.cpp file and reworked the code for this change. Also added processing of ThreadID variable passed as an argument in outlined functions in parallel and task directives.

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

10 years agoCode improvements in OpenMP CodeGen.
Alexey Bataev [Fri, 10 Oct 2014 09:48:26 +0000 (09:48 +0000)]
Code improvements in OpenMP CodeGen.
This patch makes class OMPPrivateScope a common class for all private variables. Reworked processing of firstprivate variables (now it is based on OMPPrivateScope too).

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

10 years agoXFAIL coverage -no-integrated-as tests for msvc.
Dan Albert [Fri, 10 Oct 2014 04:28:04 +0000 (04:28 +0000)]
XFAIL coverage -no-integrated-as tests for msvc.

Windows can't use -no-integrated-as, so split these tests out into a
separate file and XFAIL them for win32,win64.

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

10 years agoRevert r218865 because it introduced PR21236, a crash in codegen emitting the try...
Nick Lewycky [Fri, 10 Oct 2014 04:05:00 +0000 (04:05 +0000)]
Revert r218865 because it introduced PR21236, a crash in codegen emitting the try block.

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

10 years ago_Really_ fix these tests (probably).
Dan Albert [Fri, 10 Oct 2014 03:51:59 +0000 (03:51 +0000)]
_Really_ fix these tests (probably).

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

10 years agoRemove support for the IOS_SIMULATOR_DEPLOYMENT_TARGET env var.
Bob Wilson [Fri, 10 Oct 2014 03:12:15 +0000 (03:12 +0000)]
Remove support for the IOS_SIMULATOR_DEPLOYMENT_TARGET env var.

It turns out that this was never used. Instead we just use the
IPHONEOS_DEPLOYMENT_TARGET variable for both iOS devices and simulator.
rdar://problem/18596744

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

10 years agoFix for OpenMP/parallel_firstprivate_codegen.cpp
Alexey Bataev [Fri, 10 Oct 2014 02:50:06 +0000 (02:50 +0000)]
Fix for OpenMP/parallel_firstprivate_codegen.cpp
Fix compatibility issues of the test with SystemZ target.

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

10 years agoHopefully fixes test failures for msvc.
Dan Albert [Fri, 10 Oct 2014 02:26:00 +0000 (02:26 +0000)]
Hopefully fixes test failures for msvc.

Looks like llvm::sys::path::filename() was canonicalizing my paths
before emitting them for FileCheck to stumble over.

Fix a style nit with r219460 while I'm at it.

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

10 years agoPR21195: Emit .gcno files to the proper location.
Dan Albert [Fri, 10 Oct 2014 01:01:29 +0000 (01:01 +0000)]
PR21195: Emit .gcno files to the proper location.

When building with coverage, -no-integrated-as, and -c, the driver was
emitting -cc1 -coverage-file pointing at a file in /tmp. Ensure the
coverage file is emitted in the same directory as the output file.

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

10 years agoPromote null pointer constants used as arguments to variadic functions
Reid Kleckner [Fri, 10 Oct 2014 00:05:45 +0000 (00:05 +0000)]
Promote null pointer constants used as arguments to variadic functions

Make it possible to pass NULL through variadic functions on 64-bit
Windows targets. The Visual C++ headers define NULL to 0, when they
should define it to 0LL on Win64 so that NULL is a pointer-sized
integer.

Fixes PR20949.

Reviewers: thakis, rsmith

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

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

10 years agoFix completion logic to allow for heterogeneous argument types in matcher overloads.
Samuel Benzaquen [Thu, 9 Oct 2014 22:08:52 +0000 (22:08 +0000)]
Fix completion logic to allow for heterogeneous argument types in matcher overloads.

Summary:
There was an assumption that there were no matchers that were overloaded
on matchers and other types of arguments.
This assumption was broken recently with the addition of new matcher
overloads.

Fixes http://llvm.org/PR21226

Reviewers: pcc

Subscribers: klimek, cfe-commits

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

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

10 years agoObjective-C SDK modernization. import Foundation even
Fariborz Jahanian [Thu, 9 Oct 2014 22:04:27 +0000 (22:04 +0000)]
Objective-C SDK modernization. import Foundation even
when a previous definition of NS_OPTION is available
; e.g. from a pch. enhancement to rdar://18498550

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

10 years ago[Analysis] Add missing newlines at end of file.
Daniel Dunbar [Thu, 9 Oct 2014 20:34:45 +0000 (20:34 +0000)]
[Analysis] Add missing newlines at end of file.

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

10 years agoSpecial case 0 and 1 matcher in makeAllOfComposite().
Samuel Benzaquen [Thu, 9 Oct 2014 19:28:18 +0000 (19:28 +0000)]
Special case 0 and 1 matcher in makeAllOfComposite().

Summary:
Remove unnecessary wrapping for the 0 and 1 matcher cases of
makeAllOfComposite(). We don't need a variadic wrapper for those cases.
Refactor TrueMatcher to take advandage of the new conversions between
DynTypedMatcher and Matcher<T>. Also, make it a singleton.
This change improves our clang-tidy related benchmarks by ~12%.

Reviewers: klimek

Subscribers: klimek, cfe-commits

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

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

10 years ago[SystemZ] Turn on the integrated assembler by default
Ulrich Weigand [Thu, 9 Oct 2014 18:46:38 +0000 (18:46 +0000)]
[SystemZ] Turn on the integrated assembler by default

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

10 years agoObjective-C SDK modernization. convert message expression
Fariborz Jahanian [Thu, 9 Oct 2014 18:30:56 +0000 (18:30 +0000)]
Objective-C SDK modernization. convert message expression
to Objective-C dot-syntax. rdar://18498572

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

10 years agoAdd experimental clang/driver flag -fsanitize-address-field-padding=N
Kostya Serebryany [Thu, 9 Oct 2014 17:53:04 +0000 (17:53 +0000)]
Add experimental clang/driver flag -fsanitize-address-field-padding=N

Summary:
This change adds an experimental flag -fsanitize-address-field-padding=N (0, 1, 2)
to clang and driver. With this flag ASAN will be able to detect some cases of
intra-object-overflow bugs,
see https://code.google.com/p/address-sanitizer/wiki/IntraObjectOverflow

There is no actual functionality here yet, just the flag parsing.
The functionality is being reviewed at http://reviews.llvm.org/D5687

Test Plan: Build and run SPEC, LLVM Bootstrap, Chrome with this flag.

Reviewers: samsonov

Reviewed By: samsonov

Subscribers: cfe-commits

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

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

10 years agoSeparated RecursiveASTVisitorTest into multiple files.
Manuel Klimek [Thu, 9 Oct 2014 15:02:06 +0000 (15:02 +0000)]
Separated RecursiveASTVisitorTest into multiple files.

Patch by Marek Kurdej.

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

10 years agoImplement various matchers around template argument handling.
Manuel Klimek [Thu, 9 Oct 2014 13:06:22 +0000 (13:06 +0000)]
Implement various matchers around template argument handling.

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

10 years agoEscaping a special character in the documentation.
Aaron Ballman [Thu, 9 Oct 2014 13:03:12 +0000 (13:03 +0000)]
Escaping a special character in the documentation.

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

10 years agoFix compatibility issues in tests for PredefinedExpr with MSVC.
Alexey Bataev [Thu, 9 Oct 2014 11:58:26 +0000 (11:58 +0000)]
Fix compatibility issues in tests for PredefinedExpr with MSVC.

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

10 years agoclang-format: Add option to control call argument bin-packing separately
Daniel Jasper [Thu, 9 Oct 2014 09:52:05 +0000 (09:52 +0000)]
clang-format: Add option to control call argument bin-packing separately

This is desirable for the Chromium style guide:
http://www.chromium.org/developers/coding-style

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

10 years agoFix for bug http://llvm.org/PR17427.
Alexey Bataev [Thu, 9 Oct 2014 08:45:04 +0000 (08:45 +0000)]
Fix for bug http://llvm.org/PR17427.
Assertion failed: "Computed __func__ length differs from type!"
Reworked PredefinedExpr representation with internal StringLiteral field for function declaration.
Differential Revision: http://reviews.llvm.org/D5365

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

10 years ago[OPENMP] 'omp teams' directive basic support.
Alexey Bataev [Thu, 9 Oct 2014 04:18:56 +0000 (04:18 +0000)]
[OPENMP] 'omp teams' directive basic support.
Includes parsing and semantic analysis for 'omp teams' directive support from OpenMP 4.0. Adds additional analysis to 'omp target' directive with 'omp teams' directive.

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

10 years agoReplace a destructor of EHCleanupScope with a Destroy() method to reflect the current...
Kostya Serebryany [Wed, 8 Oct 2014 18:31:54 +0000 (18:31 +0000)]
Replace a destructor of EHCleanupScope with a Destroy() method to reflect the current usage.

Summary:
The current code uses memset to re-initialize EHCleanupScope objects
with breaks the assumptions of the upcoming asan's intra-object-overflow checker.
If there is no DTOR, the new checker will refuse to work.

Test Plan: bootstrap with asan

Reviewers: rnk

Reviewed By: rnk

Subscribers: cfe-commits

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

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

10 years agoAdded new headers to CMakeLists.txt.
Robert Khasanov [Wed, 8 Oct 2014 17:37:51 +0000 (17:37 +0000)]
Added new headers to CMakeLists.txt.
Fix for rev219319

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

10 years agoms-inline-asm: Correctly mark MS inline ASM labels as used
Ehsan Akhgari [Wed, 8 Oct 2014 17:28:34 +0000 (17:28 +0000)]
ms-inline-asm: Correctly mark MS inline ASM labels as used

Summary: This fixes PR21155.

Test Plan: The patch includes a test.

Reviewers: rnk

Subscribers: cfe-commits

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

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

10 years ago[AVX512] Added VPCMPEQ intrinisics to headers.
Robert Khasanov [Wed, 8 Oct 2014 17:18:13 +0000 (17:18 +0000)]
[AVX512] Added VPCMPEQ intrinisics to headers.
Added tests.

Patch by Maxim Blumenthal <maxim.blumenthal@intel.com>

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

10 years agoFixed OpenMP/parallel_firstprivate_codegen.cpp
Alexey Bataev [Wed, 8 Oct 2014 15:39:06 +0000 (15:39 +0000)]
Fixed OpenMP/parallel_firstprivate_codegen.cpp
Fixed compatibility issues on ARM.

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

10 years agoFix test OpenMP/parallel_firstprivate_codegen.cpp
Alexey Bataev [Wed, 8 Oct 2014 14:34:59 +0000 (14:34 +0000)]
Fix test OpenMP/parallel_firstprivate_codegen.cpp
Fixed compatibility issues with MSVC mode and ARM target.

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

10 years agoRevert "Remove threshold on object size for inserting lifetime begin / end"
Arnaud A. de Grandmaison [Wed, 8 Oct 2014 14:04:26 +0000 (14:04 +0000)]
Revert "Remove threshold on object size for inserting lifetime begin / end"

Revert this patch while I investigate some sanitizer failures off-line.

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

10 years ago[OPENMP] Codegen for 'firstprivate' clause.
Alexey Bataev [Wed, 8 Oct 2014 14:01:46 +0000 (14:01 +0000)]
[OPENMP] Codegen for 'firstprivate' clause.
This patch generates some helper variables that used as private copies of the corresponding original variables inside an OpenMP 'parallel' directive. These generated variables are initialized by copy using values of the original variables (with the copy constructor, if any). For arrays, initializator is generated for single element and in the codegen procedure this initial value is automatically propagated between all elements of the private copy.
In outlined function, references to original variables are replaced by the references to these private helper variables. At the end of the initialization of the private variables an implicit barier is generated by calling __kmpc_barrier(...) runtime function to be sure that all threads were initialized using original values of the variables.
Differential Revision: http://reviews.llvm.org/D5140

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

10 years agoRemove threshold on object size for inserting lifetime begin / end
Arnaud A. de Grandmaison [Wed, 8 Oct 2014 12:49:16 +0000 (12:49 +0000)]
Remove threshold on object size for inserting lifetime begin / end

Boostrapping LLVM+Clang+LLDB without threshold on object size for
lifetime markers insertion has shown there was no significant change
in compile time, so let the stack slot colorizer do its optimization
for all slots.

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

10 years agoRevert commit r219297.
Alexey Bataev [Wed, 8 Oct 2014 12:00:22 +0000 (12:00 +0000)]
Revert commit r219297.
Still troubles with OpenMP/parallel_firstprivate_codegen.cpp (now in ARM buildbots).

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

10 years ago[OPENMP] Codegen for 'firstprivate' clause.
Alexey Bataev [Wed, 8 Oct 2014 11:35:04 +0000 (11:35 +0000)]
[OPENMP] Codegen for 'firstprivate' clause.
This patch generates some helper variables that used as private copies of the corresponding original variables inside an OpenMP 'parallel' directive. These generated variables are initialized by copy using values of the original variables (with the copy constructor, if any). For arrays, initializator is generated for single element and in the codegen procedure this initial value is automatically propagated between all elements of the private copy.
In outlined function, references to original variables are replaced by the references to these private helper variables. At the end of the initialization of the private variables an implicit barier is generated by calling __kmpc_barrier(...) runtime function to be sure that all threads were initialized using original values of the variables.
Differential Revision: http://reviews.llvm.org/D5140

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

10 years agoRevert back r219295.
Alexey Bataev [Wed, 8 Oct 2014 11:12:35 +0000 (11:12 +0000)]
Revert back r219295.
To fix issues with test OpenMP/parallel_firstprivate_codegen.cpp

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

10 years ago[OPENMP] Codegen for 'firstprivate' clause.
Alexey Bataev [Wed, 8 Oct 2014 10:42:55 +0000 (10:42 +0000)]
[OPENMP] Codegen for 'firstprivate' clause.
This patch generates some helper variables that used as private copies of the corresponding original variables inside an OpenMP 'parallel' directive. These generated variables are initialized by copy using values of the original variables (with the copy constructor, if any). For arrays, initializator is generated for single element and in the codegen procedure this initial value is automatically propagated between all elements of the private copy.
In outlined function, references to original variables are replaced by the references to these private helper variables. At the end of the initialization of the private variables an implicit barier is generated by calling __kmpc_barrier(...) runtime function to be sure that all threads were initialized using original values of the variables.
Differential Revision: http://reviews.llvm.org/D5140

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

10 years agoRevert "[OPENMP] 'omp teams' directive basic support. Includes parsing and semantic...
Renato Golin [Wed, 8 Oct 2014 09:06:45 +0000 (09:06 +0000)]
Revert "[OPENMP] 'omp teams' directive basic support. Includes parsing and semantic analysis for 'omp teams' directive support from OpenMP 4.0. Adds additional analysis to 'omp target' directive with 'omp teams' directive."

This reverts commit r219197 because it broke ARM self-hosting buildbots with
segmentation fault errors in many tests.

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

10 years agoAST: Fix a typo (NFC)
Justin Bogner [Wed, 8 Oct 2014 05:45:39 +0000 (05:45 +0000)]
AST: Fix a typo (NFC)

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

10 years agoDisallow using function parameters in extended asm inputs or outputs in naked functio...
Hans Wennborg [Wed, 8 Oct 2014 01:58:02 +0000 (01:58 +0000)]
Disallow using function parameters in extended asm inputs or outputs in naked functions (PR21178)

Clang won't emit any prologues for such functions, so it would assert trying to
codegen the parameter references.

This patch makes Clang check the extended asm inputs and outputs for
references to function parameters.

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

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

10 years agoFix test case in no asserts build
Reid Kleckner [Wed, 8 Oct 2014 01:13:51 +0000 (01:13 +0000)]
Fix test case in no asserts build

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

10 years agoFix IRGen for referencing a static local before emitting its decl
Reid Kleckner [Wed, 8 Oct 2014 01:07:54 +0000 (01:07 +0000)]
Fix IRGen for referencing a static local before emitting its decl

Summary:
Previously CodeGen assumed that static locals were emitted before they
could be accessed, which is true for automatic storage duration locals.
However, it is possible to have CodeGen emit a nested function that uses
a static local before emitting the function that defines the static
local, breaking that assumption.

Fix it by creating the static local upon access and ensuring that the
deferred function body gets emitted. We may not be able to emit the
initializer properly from outside the function body, so don't try.

Fixes PR18020.  See also previous attempts to fix static locals in
PR6769 and PR7101.

Reviewers: rsmith

Subscribers: cfe-commits

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

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

10 years agoAvoid code duplication by calling setAliasAttributes in EmitAliasDefinition.
Rafael Espindola [Wed, 8 Oct 2014 00:00:09 +0000 (00:00 +0000)]
Avoid code duplication by calling setAliasAttributes in EmitAliasDefinition.

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

10 years agoObjective-C SDK modernization. When modernizing to
Fariborz Jahanian [Tue, 7 Oct 2014 19:01:46 +0000 (19:01 +0000)]
Objective-C SDK modernization. When modernizing to
use NS_ENUM/NS_OPTIONS macros, add an import of
Foundation.h (or its module) as necessary.
rdar://18498550

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

10 years agoPR21180: Lambda closure types are neither aggregates nor literal types.
Richard Smith [Tue, 7 Oct 2014 18:01:33 +0000 (18:01 +0000)]
PR21180: Lambda closure types are neither aggregates nor literal types.

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

10 years agoEmit diagnostic for -munaligned-access on v6m
Jonathan Roelofs [Tue, 7 Oct 2014 15:11:32 +0000 (15:11 +0000)]
Emit diagnostic for -munaligned-access on v6m

Patch by: Charlie Turner <charlie.turner@arm.com>

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

10 years agoclang-format: Fix bug with comments between non-trival parameters.
Daniel Jasper [Tue, 7 Oct 2014 14:45:34 +0000 (14:45 +0000)]
clang-format: Fix bug with comments between non-trival parameters.

Before:
  SomeFunction(a, a,
               // comment
                      b + x);

After:
  SomeFunction(a, a,
               // comment
               b + x);

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

10 years agoAllow dllexport alias to base destructors.
Rafael Espindola [Tue, 7 Oct 2014 13:34:42 +0000 (13:34 +0000)]
Allow dllexport alias to base destructors.

We used to avoid these, but it looks like we did so just because we were
not handling dllexport alias correctly.

Dario Domizioli fixed that, so allow these aliases.

Based on a patch by Dario Domizioli!

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

10 years agoclang-format: Add documentation about disabling formatting.
Daniel Jasper [Tue, 7 Oct 2014 12:15:15 +0000 (12:15 +0000)]
clang-format: Add documentation about disabling formatting.

Patch by Marek Kurdej, thanks!

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

10 years ago[OPENMP] 'omp teams' directive basic support.
Alexey Bataev [Tue, 7 Oct 2014 10:13:33 +0000 (10:13 +0000)]
[OPENMP] 'omp teams' directive basic support.
Includes parsing and semantic analysis for 'omp teams' directive support from OpenMP 4.0. Adds additional analysis to 'omp target' directive with 'omp teams' directive.

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

10 years ago[OPENMP] Small refactoring of EmitOMPSimdLoop helper routine.
Alexander Musman [Tue, 7 Oct 2014 08:57:09 +0000 (08:57 +0000)]
[OPENMP] Small refactoring of EmitOMPSimdLoop helper routine.
No functional changes intended.
Renamed EmitOMPSimdLoop to EmitOMPInnerLoop, I plan to re-use
it to emit inner loop in the future patches for CodeGen of the
worksharing loop directives (omp for, omp for simd).

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

10 years agodriver: Map closed standard file descriptors to /dev/null
David Majnemer [Mon, 6 Oct 2014 23:52:23 +0000 (23:52 +0000)]
driver: Map closed standard file descriptors to /dev/null

Utilize Process::FixupStandardFileDescriptors, introduced in r219170, to
guard against files from being treated as one of the standard file
descriptors.

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

10 years agoObjective-C SDK modernizer. Patch to support modernization
Fariborz Jahanian [Mon, 6 Oct 2014 23:50:37 +0000 (23:50 +0000)]
Objective-C SDK modernizer. Patch to support modernization
to NS_ENUM/NS_OPTION macros when typedef names are other
than NSInteger/NSUInteger (int8_t, etc.).
rdar://18532199

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

10 years agoUpdate title of the ReleaseNodes doc.
Eli Bendersky [Mon, 6 Oct 2014 22:45:17 +0000 (22:45 +0000)]
Update title of the ReleaseNodes doc.

It was still "3.5 (In-Progress)" - should be 3.6

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

10 years ago[PATCH][Power] Fix (and deprecate) vec_lvsl and vec_lvsr for little endian
Bill Schmidt [Mon, 6 Oct 2014 19:02:20 +0000 (19:02 +0000)]
[PATCH][Power] Fix (and deprecate) vec_lvsl and vec_lvsr for little endian

The use of the vec_lvsl and vec_lvsr interfaces are discouraged for
little endian targets since Power8 hardware is a minimum requirement,
and Power8 provides reasonable performance for unaligned vector loads
and stores.  Up till now we have not provided "correct" (i.e., big-
endian-compatible) code generation for these interfaces, as to do so
produces poorly performing code.  However, this has become the source
of too many questions.

With this patch, LLVM will now produce compatible code for these
interfaces, but will also produce a deprecation warning message for
PPC64LE when one of them is used.  This should make the porting direction
clearer to programmers.  A similar patch has recently been committed to
GCC.

This patch includes a test for the warning message.  There is a companion
patch that adds two unit tests to projects/test-suite.

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

10 years agoRemove cases that are now handled by the parent class implementation.
Rafael Espindola [Mon, 6 Oct 2014 17:45:47 +0000 (17:45 +0000)]
Remove cases that are now handled by the parent class implementation.

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

10 years agoTurn on the integrated assembler by default for ppc64 and
Eric Christopher [Mon, 6 Oct 2014 17:33:18 +0000 (17:33 +0000)]
Turn on the integrated assembler by default for ppc64 and
ppc64le.

Reviewed by Hal Finkel and Bill Schmidt.

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

10 years agoPatch to wrap up '_' as separator in version numbers
Fariborz Jahanian [Mon, 6 Oct 2014 16:46:02 +0000 (16:46 +0000)]
Patch to wrap up '_' as separator in version numbers
in availability attribute by preserving this info.
in VersionTuple and using it in pretty printing of attributes
and yet using '.' as separator when diagnosing unavailable
message calls. rdar://18490958

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

10 years agoclang-format: If in doubt, assume '+' is a binary operator.
Daniel Jasper [Mon, 6 Oct 2014 13:16:43 +0000 (13:16 +0000)]
clang-format: If in doubt, assume '+' is a binary operator.

Before:
  #define LENGTH(x, y) (x) - (y)+1

After:
  #define LENGTH(x, y) (x) - (y) + 1

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

10 years agoFix bug in DynTypedMatcher::constructVariadic() that would cause false negatives.
Samuel Benzaquen [Mon, 6 Oct 2014 13:14:30 +0000 (13:14 +0000)]
Fix bug in DynTypedMatcher::constructVariadic() that would cause false negatives.

Summary:
DynTypedMatcher::constructVariadic() where the restrict kind of the
different matchers are not related causes the matcher to have a "None"
restrict kind. This causes false negatives for anyOf and eachOf.
Change the logic to get a common ancestor if there is one.
Also added regression tests that fail without the fix.

Reviewers: klimek

Subscribers: klimek, cfe-commits

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

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

10 years agoUsing an explicit cast to work around MSVC 2013 not picking the conversion operator...
Aaron Ballman [Mon, 6 Oct 2014 12:42:31 +0000 (12:42 +0000)]
Using an explicit cast to work around MSVC 2013 not picking the conversion operator as expected. NFC, should fix the MSVC build bots.

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

10 years ago[OPENMP] Fix target triple of a test, which uses __int128 type
Alexander Musman [Mon, 6 Oct 2014 11:36:48 +0000 (11:36 +0000)]
[OPENMP] Fix target triple of a test, which uses __int128 type

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

10 years ago[OPENMP] Limit the loop counters to 64 bits for the worksharing loops
Alexander Musman [Mon, 6 Oct 2014 11:16:29 +0000 (11:16 +0000)]
[OPENMP] Limit the loop counters to 64 bits for the worksharing loops

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

10 years agoAdd FIXME/notes to the future.
David Blaikie [Mon, 6 Oct 2014 05:52:27 +0000 (05:52 +0000)]
Add FIXME/notes to the future.

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

10 years agoDebugInfo: Don't include implicit special members in the list of class members
David Blaikie [Mon, 6 Oct 2014 05:18:55 +0000 (05:18 +0000)]
DebugInfo: Don't include implicit special members in the list of class members

By leaving these members out of the member list, we avoid them being
emitted into type unit definitions - while still allowing the
definition/declaration to be injected into the compile unit as expected.

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