]> granicus.if.org Git - clang/log
clang
8 years ago[Sema] Remove tab characters. NFC
Craig Topper [Tue, 8 Dec 2015 04:33:04 +0000 (04:33 +0000)]
[Sema] Remove tab characters. NFC

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

8 years agoAdd parse and sema for OpenMP distribute directive and all its clauses excluding...
Carlo Bertolli [Tue, 8 Dec 2015 04:21:03 +0000 (04:21 +0000)]
Add parse and sema for OpenMP distribute directive and all its clauses excluding dist_schedule.

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

8 years agoExplicitly permit undefined behavior in constant initializers for global
Richard Smith [Tue, 8 Dec 2015 03:21:47 +0000 (03:21 +0000)]
Explicitly permit undefined behavior in constant initializers for global
variables in C, in the cases where we can constant-fold it to a value
regardless (such as floating-point division by zero and signed integer
overflow). Strictly enforcing this rule breaks too much code.

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

8 years agoReplace a bunch of duplicate conditions with the call from types::.
Eric Christopher [Tue, 8 Dec 2015 02:10:19 +0000 (02:10 +0000)]
Replace a bunch of duplicate conditions with the call from types::.

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

8 years agoRemove name from FIXME.
Eric Christopher [Tue, 8 Dec 2015 01:59:51 +0000 (01:59 +0000)]
Remove name from FIXME.

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

8 years agoUpdate comment to reflect that we use other tools via the toolchain to
Eric Christopher [Tue, 8 Dec 2015 01:59:47 +0000 (01:59 +0000)]
Update comment to reflect that we use other tools via the toolchain to
handle more than just C.

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

8 years ago[diagnostics] Avoid crashes while printing macro backtraces
Reid Kleckner [Tue, 8 Dec 2015 01:08:09 +0000 (01:08 +0000)]
[diagnostics] Avoid crashes while printing macro backtraces

When attempting to map a source into a given level of macro expansion,
this code was ignoring the possibility that the start and end of the
range might take wildly different paths through the tree of macro
expansions. It was assuming that the begin spelling location would
always precede the end spelling location, which is false. A macro can
easily transpose its arguments.

This also fixes a related issue where there are extra macro arguments
between the begin location and the end location. In this situation, we
now highlight the entire macro invocation.

Pair programmed with Richard Smith.

Fixes PR12818.

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

8 years ago80-column fixup.
Eric Christopher [Tue, 8 Dec 2015 00:10:13 +0000 (00:10 +0000)]
80-column fixup.

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

8 years agoUpdate comment.
Eric Christopher [Tue, 8 Dec 2015 00:10:10 +0000 (00:10 +0000)]
Update comment.

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

8 years ago[analyzer] Fix crash when lambda captures a variable-length array.
Devin Coughlin [Mon, 7 Dec 2015 23:01:53 +0000 (23:01 +0000)]
[analyzer] Fix crash when lambda captures a variable-length array.

When a C++ lambda captures a variable-length array, it creates a capture
field to store the size of the array. The initialization expression for this
capture is null, which led the analyzer to crash when initializing the field.
To avoid this, use the size expression from the VLA type to determine the
initialization value.

rdar://problem/23748072

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

8 years agoAdd llvm-objdump to compiler-rt test deps.
Alexey Samsonov [Mon, 7 Dec 2015 22:45:36 +0000 (22:45 +0000)]
Add llvm-objdump to compiler-rt test deps.

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

8 years ago80-col and whitespace fixups.
Eric Christopher [Mon, 7 Dec 2015 22:43:05 +0000 (22:43 +0000)]
80-col and whitespace fixups.

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

8 years agoRemove target specifier from new tests
Teresa Johnson [Mon, 7 Dec 2015 20:40:36 +0000 (20:40 +0000)]
Remove target specifier from new tests

Hopefully fix the remaining bot failure from r254927. Remove
target specification since it shouldn't be needed, and this causes
an error when trying to check the pass execution structure in
test/CodeGen/thinlto_backend.c on non-x86 arches.

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

8 years agoAdjust test to fix bot error from r254927.
Teresa Johnson [Mon, 7 Dec 2015 20:26:57 +0000 (20:26 +0000)]
Adjust test to fix bot error from r254927.

Remove the part of the error message that may vary across systems.

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

8 years agoAST: defer to TypeLoc::copy in TypeLoc::initializeFullCopy
Justin Bogner [Mon, 7 Dec 2015 20:04:57 +0000 (20:04 +0000)]
AST: defer to TypeLoc::copy in TypeLoc::initializeFullCopy

If we're initializing a TypeLoc from one that's been allocated with
different alignment, memcpy will get the padding wrong. The `copy`
method already checks and handles this case, so we should just defer
to it.

This also drops the `const` off of the `initializeFullCopy`
declarations, since it isn't even remotely true (and the compiler
notices when we try to call copy() instead of tricking it with
memcpy).

Fixes llvm.org/pr23516.

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

8 years agoclang-format: Make wrapping after "./->" cheaper, even if the element
Daniel Jasper [Mon, 7 Dec 2015 19:50:48 +0000 (19:50 +0000)]
clang-format: Make wrapping after "./->" cheaper, even if the element
before it is not a closing parenthesis.

Otherwise, this frequently leads to "hanging" indents that users
perceive as "weird".

Before:
  return !soooooooooooooome_map.insert(
                                   aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)
              .second;

After:
  return !soooooooooooooome_map
              .insert(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)
              .second;

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

8 years ago[ThinLTO] Option to invoke ThinLTO backend passes and importing
Teresa Johnson [Mon, 7 Dec 2015 19:21:34 +0000 (19:21 +0000)]
[ThinLTO] Option to invoke ThinLTO backend passes and importing

Summary:
Adds new option -fthinlto-index=<file> to invoke the LTO pipeline
along with function importing via clang using the supplied function
summary index file. This supports invoking the parallel ThinLTO
backend processes in a distributed build environment via clang.

Additionally, this causes the module linker to be invoked on the bitcode
file being compiled to perform any necessary promotion and renaming of
locals that are exported via the function summary index file.

Add a couple tests that confirm we get expected errors when we try to
use the new option on a file that isn't bitcode, or specify an invalid
index file. The tests also confirm that we trigger the expected function
import pass.

Depends on D15024

Reviewers: joker.eph, dexonsmith

Subscribers: joker.eph, davidxl, cfe-commits

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

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

8 years ago[avx512] rename gcc intrinsics to be align with gcc format
Asaf Badouh [Mon, 7 Dec 2015 13:14:22 +0000 (13:14 +0000)]
[avx512] rename gcc intrinsics to be align with gcc format
rename the gcc intrinsics suffix : _mask ->_round

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

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

8 years ago[OPENMP 4.5] parsing/sema support for 'grainsize' clause.
Alexey Bataev [Mon, 7 Dec 2015 12:52:51 +0000 (12:52 +0000)]
[OPENMP 4.5] parsing/sema support for 'grainsize' clause.
OpenMP 4.5 adds 'taksloop' and 'taskloop simd' directives, which have 'grainsize' clause. Patch adds parsing/sema analysis of this clause.

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

8 years ago[OPENMP 4.5] parsing/sema support for 'nogroup' clause.
Alexey Bataev [Mon, 7 Dec 2015 10:51:44 +0000 (10:51 +0000)]
[OPENMP 4.5] parsing/sema support for 'nogroup' clause.
OpenMP 4.5 adds 'taskloop' and 'taskloop simd' directives. These directives have new 'nogroup' clause. Patch adds basic parsing/sema support for this clause.

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

8 years agoFix PR20334: invalid assertion while diagnosing list initialization failure
Faisal Vali [Mon, 7 Dec 2015 02:37:44 +0000 (02:37 +0000)]
Fix PR20334: invalid assertion while diagnosing list initialization failure

https://llvm.org/bugs/show_bug.cgi?id=20334

Unfortunately, clang currently checks for a certain brokenness of implementations of std::initializer_list in CodeGen (void
AggExprEmitter::VisitCXXStdInitializerListExpr), not in SemaInit.  Until that is fixed, make sure we don't let broken attempts that are aggregates leak through into sema, which allows maintenance of expected invariants, and avoids triggering an assertion.

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

8 years ago[PGO] Instrument only base constructors and destructors.
Serge Pavlov [Sun, 6 Dec 2015 14:32:39 +0000 (14:32 +0000)]
[PGO] Instrument only base constructors and destructors.

Constructors and destructors may be represented by several functions
in IR. Only base structors correspond to source code, others are
small pieces of code and eventually call the base variant. In this
case instrumentation of non-base structors has little sense, this
fix remove it. Now profile data of a declaration corresponds to
exactly one function in IR, it agrees with the current logic of the
profile data loading.

This change fixes PR24996.

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

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

8 years agoUse llvm::make_range to reduce mentions of iterator type. NFC
Craig Topper [Sun, 6 Dec 2015 05:07:12 +0000 (05:07 +0000)]
Use llvm::make_range to reduce mentions of iterator type. NFC

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

8 years agoFix crash in ASTDumper when dumping NamedDecl with NULL getQualifier().
Dawn Perchik [Sat, 5 Dec 2015 22:37:55 +0000 (22:37 +0000)]
Fix crash in ASTDumper when dumping NamedDecl with NULL getQualifier().

Reviewed by: aaron.ballman
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D15254

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

8 years ago[X86][3DNow!] Stripped backend codegen tests
Simon Pilgrim [Sat, 5 Dec 2015 11:12:23 +0000 (11:12 +0000)]
[X86][3DNow!] Stripped backend codegen tests

As discussed on the ml, backend tests need to be put in llvm/test/CodeGen/X86 as fast-isel tests using IR that is as close to what is generated here as possible.

The llvm tests will (re)added in a future commit

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

8 years agoUpdated test names to match the intrinsics being tested
Simon Pilgrim [Sat, 5 Dec 2015 11:08:51 +0000 (11:08 +0000)]
Updated test names to match the intrinsics being tested

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

8 years ago[X86][F16C] Stripped backend codegen tests
Simon Pilgrim [Sat, 5 Dec 2015 10:37:35 +0000 (10:37 +0000)]
[X86][F16C] Stripped backend codegen tests

As discussed on the ml, backend tests need to be put in llvm/test/CodeGen/X86 as fast-isel tests using IR that is as close to what is generated here as possible.

The llvm tests will (re)added in a future commit

I will update PR24580 on this new plan

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

8 years ago[AST] Use std::copy and std::fill to simplify some memcpy and memset calls. Also...
Craig Topper [Sat, 5 Dec 2015 07:41:44 +0000 (07:41 +0000)]
[AST] Use std::copy and std::fill to simplify some memcpy and memset calls. Also const-correct some methods being used since the std::copy catches the mismatch where memcpy didn't.

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

8 years agoUse std::copy and std::transform instead of manual loops. NFC
Craig Topper [Sat, 5 Dec 2015 07:41:42 +0000 (07:41 +0000)]
Use std::copy and std::transform instead of manual loops. NFC

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

8 years agoPass profile version info to name API (NFC)
Xinliang David Li [Sat, 5 Dec 2015 05:37:15 +0000 (05:37 +0000)]
Pass profile version info to name API (NFC)

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

8 years agoRevert "[x86] Exclusion of incorrect include headers paths for MCU target"
Reid Kleckner [Sat, 5 Dec 2015 01:52:14 +0000 (01:52 +0000)]
Revert "[x86] Exclusion of incorrect include headers paths for MCU target"

This reverts commit r254195.

From the description, I suspect that the wrong patch was committed here,
and this is causing assertion failures in EmitDeferred() when the global
value ends up being a bitcast of a global.

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

8 years ago[WebAssembly] Remove an obsolete TODO comment.
Dan Gohman [Sat, 5 Dec 2015 01:36:31 +0000 (01:36 +0000)]
[WebAssembly] Remove an obsolete TODO comment.

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

8 years ago[analyzer] Fix MemRegion crash casting non-struct to derived struct (PR25426).
Devin Coughlin [Sat, 5 Dec 2015 00:22:36 +0000 (00:22 +0000)]
[analyzer] Fix MemRegion crash casting non-struct to derived struct (PR25426).

This commit prevents MemRegion::getAsOffset() from crashing when the analyzed
program casts a symbolic region of a non-record type to some derived type and
then attempts to access a field of the base type.

rdar://problem/23458069

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

8 years ago[Docs] One more cleanup of -fsanitize= section.
Alexey Samsonov [Fri, 4 Dec 2015 23:13:14 +0000 (23:13 +0000)]
[Docs] One more cleanup of -fsanitize= section.

Describe -fsanitize-blacklist flags in separate paragraphs, move
notes about importance of clang++ for vptr down to UBSan docs.

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

8 years ago[CMake] Don't build the libclang tests unless you're building libclang
Chris Bieneman [Fri, 4 Dec 2015 23:12:19 +0000 (23:12 +0000)]
[CMake] Don't build the libclang tests unless you're building libclang

This fixes a build issue reported by users at Apple.

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

8 years ago[Docs] Update MSan docs
Alexey Samsonov [Fri, 4 Dec 2015 22:50:44 +0000 (22:50 +0000)]
[Docs] Update MSan docs

Summary:
1. Move MSan-specific flags and features from user manual to MSan page.
2. Update current status / list of supported platforms.

Reviewers: eugenis, kcc

Subscribers: cfe-commits

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

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

8 years ago[Docs] Move the list of CFI schemes down to CFI doc, and update it.
Alexey Samsonov [Fri, 4 Dec 2015 21:30:58 +0000 (21:30 +0000)]
[Docs] Move the list of CFI schemes down to CFI doc, and update it.

Use proper headling levels in CFI doc. Before that, all sections
were considered a subsection of "Introduction".

Reviewers: pcc, kcc

Subscribers: cfe-commits

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

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

8 years agoSmall follow-up to 254750 to get the test added there passing...
Nico Weber [Fri, 4 Dec 2015 19:35:45 +0000 (19:35 +0000)]
Small follow-up to 254750 to get the test added there passing...

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

8 years agoFix debug info for Objective-C properties from class extensions after r251874
Nico Weber [Fri, 4 Dec 2015 19:14:14 +0000 (19:14 +0000)]
Fix debug info for Objective-C properties from class extensions after r251874

After r251874, properties from class extensions no longer show up in
ObjCInterfaceDecl::properties().  Make debug info emission explicitly
look for properties in class extensions before looking at direct properties.

Also add a test that checks for this.  There are three interesting cases:

1. A property is only declared in a class extension, and the @implementation
   is in a different file.  This used to generated a DIObjcProperty before
   r251874 and does again with this fix.

2. A property is declared as readonly in the class itself and redeclared as
   readwrite in a class extension. clang before r251874 put the DIObjcProperty
   on the first declaration. clang after r251874 didn't emit any DIObjcProperty,
   and clang with this fix puts it on the readwrite redeclaration (which is
   what lookup finds).  This seems like a progression.

3. Like 2, but with an @implementation in the same file.  In this case,
   the property debug info gets generated a second time through the ivar
   from the definition.  In this case, lookup and declaration code need
   to agree on the line number so that the DIObjcProperty isn't emitted
   twice.  In this case, clang before r251874 emitted one DIObjcProperty
   on the first declaration, clang with r251874 emitted one on the second
   declaration, and clang with this patch still does the latter.

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

8 years ago[Docs] Remove false claim: UBSan can also be combined with TSan/MSan.
Alexey Samsonov [Fri, 4 Dec 2015 17:35:47 +0000 (17:35 +0000)]
[Docs] Remove false claim: UBSan can also be combined with TSan/MSan.

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

8 years agoClang documentation for UBSan.
Alexey Samsonov [Fri, 4 Dec 2015 17:30:29 +0000 (17:30 +0000)]
Clang documentation for UBSan.

Summary:
Create a separate page describing UBSan tool, move the description of
fine-grained checks there, provide extra information about supported
platforms, symbolization etc. This text is compiled from four parts:

* Existing documentation copied from User's Manual
* Layout used in documentation for another sanitizers (ASan, MSan etc.)
* Text written from scratch
* Small parts taken from Michael Morrison's attempt at creating UBSan
  page:
  http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20141215/249503.html

Reviewers: kcc, rsmith, silvas

Subscribers: tberghammer, danalbert, srhines, kcc

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

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

8 years ago[PS4] Add an additional test for ASan+UBSan
Filipe Cabecinhas [Fri, 4 Dec 2015 16:18:03 +0000 (16:18 +0000)]
[PS4] Add an additional test for ASan+UBSan

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

8 years ago[analyzer] Improve modelling of nullptr_t in the analyzer. Fix PR25414.
Gabor Horvath [Fri, 4 Dec 2015 15:02:30 +0000 (15:02 +0000)]
[analyzer] Improve modelling of nullptr_t in the analyzer. Fix PR25414.

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

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

8 years agoFix an unused variable warning in released builds. While there use 'auto' to simplify...
Craig Topper [Fri, 4 Dec 2015 05:27:29 +0000 (05:27 +0000)]
Fix an unused variable warning in released builds. While there use 'auto' to simplify code.

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

8 years ago[AST] ArrayRef-ize CompoundStmt::setStmts.
Craig Topper [Fri, 4 Dec 2015 05:01:44 +0000 (05:01 +0000)]
[AST] ArrayRef-ize CompoundStmt::setStmts.

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

8 years ago[analyzer] Support inlining lambda-converted blocks.
Devin Coughlin [Fri, 4 Dec 2015 05:00:36 +0000 (05:00 +0000)]
[analyzer] Support inlining lambda-converted blocks.

clang converts C++ lambdas to blocks with an implicit user-defined conversion
operator method on the lambda record. This method returns a block that captures a copy
of the lambda. To inline a lambda-converted block, the analyzer now calls the lambda
records's call operator method on the lambda captured by the block.

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

8 years agoDon't assert if evaluation of an expression that we're syntactically required
Richard Smith [Fri, 4 Dec 2015 03:00:44 +0000 (03:00 +0000)]
Don't assert if evaluation of an expression that we're syntactically required
to treat as an ICE results in undefined behavior. Instead, return the "natural"
result of the operation (signed wraparound / inf / nan).

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

8 years agoLLDB JIT needs android vector passing rules.
Stephen Hines [Fri, 4 Dec 2015 01:39:30 +0000 (01:39 +0000)]
LLDB JIT needs android vector passing rules.

Summary:
Looking into some recent issues with LLDBs expression parser highlighted that upstream clang passes vectors types differently to Android Open Source Project's clang for Arm Android targets.
This patch reflects the changes present in the AOSP and allows LLDB's JIT expression evaluation to work correctly for Arm Android targets when passing vectors.

This is submitted with consent of the original author Stephen Hines.

Reviewers: asl, rsmith, ADodds, rnk

Subscribers: rnk, aemerson, tberghammer, danalbert, srhines, cfe-commits, pirama

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

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

8 years ago[Docs] Sanitizer docs migrated from code.google.com to github.com.
Alexey Samsonov [Fri, 4 Dec 2015 00:38:13 +0000 (00:38 +0000)]
[Docs] Sanitizer docs migrated from code.google.com to github.com.

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

8 years ago[PowerPC] Fix calculating address of arguments on stack for variadic func
Petar Jovanovic [Fri, 4 Dec 2015 00:26:47 +0000 (00:26 +0000)]
[PowerPC] Fix calculating address of arguments on stack for variadic func

Fix calculating address of arguments larger than 32 bit on stack for
variadic functions (rounding up address to alignment) on ppc32 architecture.

Patch by Strahinja Petrovic.

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

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

8 years agoPR25731: namespace alias declarations can appear at block scope; ensure that we
Richard Smith [Thu, 3 Dec 2015 23:24:04 +0000 (23:24 +0000)]
PR25731: namespace alias declarations can appear at block scope; ensure that we
do scope-based lookup when looking for redeclarations of them. Add some related
missing checks for the scope-based redeclaration lookup: properly filter the
list of found declarations to match the scope, and diagnose shadowing of a
template parameter name.

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

8 years agoFix pass_object_size test on Windows.
George Burgess IV [Thu, 3 Dec 2015 21:15:22 +0000 (21:15 +0000)]
Fix pass_object_size test on Windows.

The tests were failing because the types of some member functions, when
printed, unexpectedly had "__attribute__((thiscall))" at the end. The
types in question were relatively unimportant to begin with, so they
were removed/replaced with regexes.

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

8 years agoAdd tests for `&enable_if_function` diagnostics.
George Burgess IV [Thu, 3 Dec 2015 20:54:58 +0000 (20:54 +0000)]
Add tests for `&enable_if_function` diagnostics.

The introduction of pass_object_size fixed a few bugs related to taking
the address of a function with enable_if attributes. This patch adds
tests for the cases that were fixed.

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

8 years ago[CMake] Removing an unnecessary layer of variable indirection
Chris Bieneman [Thu, 3 Dec 2015 19:47:25 +0000 (19:47 +0000)]
[CMake] Removing an unnecessary layer of variable indirection

This prevents passthrough variables from having values.

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

8 years ago[analyzer] Suppress stack address escape on CK_CopyAndAutoreleaseBlockObject.
Devin Coughlin [Thu, 3 Dec 2015 19:41:24 +0000 (19:41 +0000)]
[analyzer] Suppress stack address escape on CK_CopyAndAutoreleaseBlockObject.

Don't warn about addresses of stack-allocated blocks escaping if the block
region was cast with CK_CopyAndAutoreleaseBlockObject. These casts, which
are introduced in the implicit conversion operator for lambda-to-block
conversions, cause the block to be copied to the heap -- so the warning is
spurious.

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

8 years agoAdd tests for pass_object_size.
George Burgess IV [Thu, 3 Dec 2015 19:19:09 +0000 (19:19 +0000)]
Add tests for pass_object_size.

These additions were meant to go in as a part of r254554; while it's
certainly nice to have new functionality, it's nicer if we have tests to
go with it. :)

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

8 years agoFix Objective-C metadata for properties from class extensions after r251874
Nico Weber [Thu, 3 Dec 2015 17:44:51 +0000 (17:44 +0000)]
Fix Objective-C metadata for properties from class extensions after r251874

After, properties from class extensions no longer show up in
ObjCInterfaceDecl::properties().  Make ObjCCommonMac::EmitPropertyList()
explicitly look for properties in class extensions before looking at
direct properties.

Also add a test that passes both with clang before r251874 and after this
patch (but fails with r251874 and without this patch).

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

8 years agoFix clang/test/Sema/struct-packed-align.c. "Windows" is not MS compiler.
NAKAMURA Takumi [Thu, 3 Dec 2015 16:03:34 +0000 (16:03 +0000)]
Fix clang/test/Sema/struct-packed-align.c. "Windows" is not MS compiler.

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

8 years agoMake check-clang depend on LTO.
Nico Weber [Thu, 3 Dec 2015 15:40:23 +0000 (15:40 +0000)]
Make check-clang depend on LTO.

r249143 added test/Driver/darwin-ld-lto.c which requires libLTO.dylib
to pass, but when running `ninja check-clang` in a fresh build directory
nothing caused libLTO.dylib to be built and the test would fail.

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

8 years agoUnxfail passing test: test/CodeGenCXX/crash.cpp
Krzysztof Parzyszek [Thu, 3 Dec 2015 12:03:56 +0000 (12:03 +0000)]
Unxfail passing test: test/CodeGenCXX/crash.cpp

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

8 years agoRevert "Fix for merging decls in pragma weak Calling CheckFunctionDeclaration so...
Alexander Kornienko [Thu, 3 Dec 2015 11:37:28 +0000 (11:37 +0000)]
Revert "Fix for merging decls in pragma weak Calling CheckFunctionDeclaration so that 2 decls for the 'weak' are merged. Differential Revision: http://reviews.llvm.org/D13048"

This reverts commit r254143 which introduces a crash on the following input:
  f(char *);
  g(char *);
  #pragma weak f = g
  int g(char *p) {}

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

8 years agoAdd fall-back mode for clang tools.
Manuel Klimek [Thu, 3 Dec 2015 10:38:53 +0000 (10:38 +0000)]
Add fall-back mode for clang tools.

Run without flags if we cannot load a compilation database. This matches
the behavior of clang itself when simply called with a source file.

Based on a patch by Russell Wallace.

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

8 years ago[OPENMP 4.5] Parsing/sema support for 'omp taskloop simd' directive.
Alexey Bataev [Thu, 3 Dec 2015 09:40:15 +0000 (09:40 +0000)]
[OPENMP 4.5] Parsing/sema support for 'omp taskloop simd' directive.

OpenMP 4.5 adds directive 'taskloop simd'. Patch adds parsing/sema analysis for 'taskloop simd' directive and its clauses.

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

8 years agoPR25575: Make GCC 4.4+ comatible layout for packed bit-fileds of char type, patch...
Alexey Bataev [Thu, 3 Dec 2015 09:34:49 +0000 (09:34 +0000)]
PR25575: Make GCC 4.4+ comatible layout for packed bit-fileds of char type, patch by D. Polukhin

This CL is for discussion how to better fix bit-filed layout compatibility issue with GCC (see PR25575 for test case and more details). Current clang behavior is compatible with GCC 4.1-4.3 series but it was fixed in 4.4+. Ignoring packed attribute looks very odd and because it was also fixed in GCC 4.4+, it makes sense also fix it in clang.
Differential Revision: http://reviews.llvm.org/D14872

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

8 years ago[X86] Stripped backend codegen tests
Simon Pilgrim [Thu, 3 Dec 2015 08:45:21 +0000 (08:45 +0000)]
[X86] Stripped backend codegen tests

As discussed on the ml, backend tests need to be put in llvm/test/CodeGen/X86 as fast-isel tests using IR that is as close to what is generated here as possible.

The llvm tests will (re)added in a future commit

I will update PR24580 on this new plan

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

8 years agoFix a comment typo from r251874.
Nico Weber [Thu, 3 Dec 2015 02:25:26 +0000 (02:25 +0000)]
Fix a comment typo from r251874.

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

8 years agogeneralize CHECK lines to make buildbot happy
Sanjay Patel [Thu, 3 Dec 2015 01:51:39 +0000 (01:51 +0000)]
generalize CHECK lines to make buildbot happy

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

8 years agoPR17381: Treat undefined behavior during expression evaluation as an unmodeled
Richard Smith [Thu, 3 Dec 2015 01:36:22 +0000 (01:36 +0000)]
PR17381: Treat undefined behavior during expression evaluation as an unmodeled
side-effect, so that we don't allow speculative evaluation of such expressions
during code generation.

This caused a diagnostic quality regression, so fix constant expression
diagnostics to prefer either the first "can't be constant folded" diagnostic or
the first "not a constant expression" diagnostic depending on the kind of
evaluation we're doing. This was always the intent, but didn't quite work
correctly before.

This results in certain initializers that used to be constant initializers to
no longer be; in particular, things like:

  float f = 1e100;

are no longer accepted in C. This seems appropriate, as such constructs would
lead to code being executed if sanitizers are enabled.

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

8 years agochange an assert when generating fmuladd to an ordinary 'if' check (PR25719)
Sanjay Patel [Thu, 3 Dec 2015 01:25:12 +0000 (01:25 +0000)]
change an assert when generating fmuladd to an ordinary 'if' check (PR25719)

We don't want to generate fmuladd if there's a use of the fmul expression, but this shouldn't be an assert.

The test case is derived from the commit message for r253337:
http://reviews.llvm.org/rL253337

That commit reverted r253269:
http://reviews.llvm.org/rL253269

...but the bug exists independently of the default fp-contract setting. It just became easier to hit with that change.

PR25719:
https://llvm.org/bugs/show_bug.cgi?id=25719

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

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

8 years agofix typos; NFC
Sanjay Patel [Wed, 2 Dec 2015 23:06:17 +0000 (23:06 +0000)]
fix typos; NFC

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

8 years agoAdd the `pass_object_size` attribute to clang.
George Burgess IV [Wed, 2 Dec 2015 21:58:08 +0000 (21:58 +0000)]
Add the `pass_object_size` attribute to clang.

`pass_object_size` is our way of enabling `__builtin_object_size` to
produce high quality results without requiring inlining to happen
everywhere.

A link to the design doc for this attribute is available at the
Differential review link below.

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

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

8 years agoFix the clang driver when "-nostdlib" is present
Sumanth Gundapaneni [Wed, 2 Dec 2015 19:12:41 +0000 (19:12 +0000)]
Fix the clang driver when "-nostdlib" is present

This patch is a fix to r252901 which changed the behavior of
clang driver. In the presence of "-nostdlib" none of the standard
libraries should be passed to link line.

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

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

8 years agoMove _mm256_cvtps_ph and _mm256_cvtph_ps to immintrin.h.
Paul Robinson [Wed, 2 Dec 2015 18:41:52 +0000 (18:41 +0000)]
Move _mm256_cvtps_ph and _mm256_cvtph_ps to immintrin.h.

This more closely matches their locations as described by Intel
documentation, and lets us remove a pair of redundant typedefs.

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

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

8 years ago[OpenMP] Update target directive codegen to use 4.5 implicit data mappings.
Samuel Antao [Wed, 2 Dec 2015 17:44:43 +0000 (17:44 +0000)]
[OpenMP] Update target directive codegen to use 4.5 implicit data mappings.

Summary:
This patch implements the 4.5 specification for the implicit data maps. OpenMP 4.5 specification changes the default way data is captured into a target region. All the non-aggregate kinds are passed by value by default. This required activating the capturing by value during SEMA for the target region. All the non-aggregate values that can be encoded in the size of a pointer are properly casted and forwarded to the runtime library. On top of fixing the previous weird behavior for mapping pointers in nested data regions (an explicit map was always required), this also improves performance as the number of allocations/transactions to the device per non-aggregate map are reduced from two to only one - instead of passing a reference and the value, only the value passed.

Explicit maps will be added later on once firstprivate, private, and map clauses' SEMA and parsing are available.

Reviewers: hfinkel, rjmccall, ABataev

Subscribers: cfe-commits, carlo.bertolli

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

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

8 years agoMaking the deleted copy constructor parameter const; NFC.
Aaron Ballman [Wed, 2 Dec 2015 17:07:30 +0000 (17:07 +0000)]
Making the deleted copy constructor parameter const; NFC.

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

8 years agoAdd a narrowing AST matcher that matches on a FunctionDecl with a non-throwing except...
Aaron Ballman [Wed, 2 Dec 2015 15:23:59 +0000 (15:23 +0000)]
Add a narrowing AST matcher that matches on a FunctionDecl with a non-throwing exception specification.

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

8 years agoAmending r254423 by deleting the copy constructor and adding a move constructor inste...
Aaron Ballman [Wed, 2 Dec 2015 15:05:47 +0000 (15:05 +0000)]
Amending r254423 by deleting the copy constructor and adding a move constructor instead; NFC as neither of these constructors are currently called, but this is a safer design.

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

8 years agoTraverse the NestedNameSpecifier(Loc) of NamespaceAliasDecls.
Daniel Jasper [Wed, 2 Dec 2015 13:57:46 +0000 (13:57 +0000)]
Traverse the NestedNameSpecifier(Loc) of NamespaceAliasDecls.

Review: http://reviews.llvm.org/D15149

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

8 years agoTeaches clang about Cortex-A35.
Christof Douma [Wed, 2 Dec 2015 12:03:42 +0000 (12:03 +0000)]
Teaches clang about Cortex-A35.

Adds support for the new Cortex-A35 ARMv8-A core.

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

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

8 years agoclang/test/Driver/crash-report-modules.m: Avoid using /tmp/.
NAKAMURA Takumi [Wed, 2 Dec 2015 03:13:50 +0000 (03:13 +0000)]
clang/test/Driver/crash-report-modules.m: Avoid using /tmp/.

Temporary directories should be controlled with $LIT_PRESERVES_TMP.

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

8 years ago[sanitizer coverage] document -fsanitize-coverage=trace-bb
Kostya Serebryany [Wed, 2 Dec 2015 02:08:26 +0000 (02:08 +0000)]
[sanitizer coverage] document -fsanitize-coverage=trace-bb

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

8 years agodocs: Add design documentation for forward-edge CFI for indirect calls.
Peter Collingbourne [Tue, 1 Dec 2015 21:58:54 +0000 (21:58 +0000)]
docs: Add design documentation for forward-edge CFI for indirect calls.

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

8 years agoClang-format an 80-column violation.
Adrian Prantl [Tue, 1 Dec 2015 20:19:44 +0000 (20:19 +0000)]
Clang-format an 80-column violation.

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

8 years agoAdd an accessor to Decl::LoadedFieldsFromExternalStorage for LLDB.
Adrian Prantl [Tue, 1 Dec 2015 19:54:07 +0000 (19:54 +0000)]
Add an accessor to Decl::LoadedFieldsFromExternalStorage for LLDB.

Patch by Greg Clayton
Reviewed by Doug Gregor

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

8 years agoUpdate for llvm api change.
Rafael Espindola [Tue, 1 Dec 2015 19:51:03 +0000 (19:51 +0000)]
Update for llvm api change.

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

8 years agoAvoid picking up system headers in unittest by providing a fake libstdc++ with a...
Benjamin Kramer [Tue, 1 Dec 2015 19:42:07 +0000 (19:42 +0000)]
Avoid picking up system headers in unittest by providing a fake libstdc++ with a ridiculously high version number.

The host libstdc++ may be horribly broken and we want the fake one to be
picked up. This workaround is lame but I don't see a better way.

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

8 years ago[MS ABI] Correctly mangle nullptr member pointers for variable templates
David Majnemer [Tue, 1 Dec 2015 19:13:51 +0000 (19:13 +0000)]
[MS ABI] Correctly mangle nullptr member pointers for variable templates

Variable templates behave the same as class templates with regard to
nullptr memeber pointers.

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

8 years agoIt appears that this horrible mutating copy constructor is unused. Kill it with fire.
Aaron Ballman [Tue, 1 Dec 2015 17:15:13 +0000 (17:15 +0000)]
It appears that this horrible mutating copy constructor is unused. Kill it with fire.

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

8 years agoclang-format: Make it possible to turn off comment reflowing.
Daniel Jasper [Tue, 1 Dec 2015 13:28:53 +0000 (13:28 +0000)]
clang-format: Make it possible to turn off comment reflowing.

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

8 years agoclang-format: treat Q_SIGNALS as an access modifier
Daniel Jasper [Tue, 1 Dec 2015 12:05:04 +0000 (12:05 +0000)]
clang-format: treat Q_SIGNALS as an access modifier

Patch by Alexander Richardson, thank you!

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

8 years agoThis fixes https://llvm.org/bugs/show_bug.cgi?id=25329, as well as
Daniel Jasper [Tue, 1 Dec 2015 12:00:43 +0000 (12:00 +0000)]
This fixes https://llvm.org/bugs/show_bug.cgi?id=25329, as well as
misalignments like the following:

  int a, b = 2;
  int c    = 3;

Patch by Beren Minor, thanks!

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

8 years ago[OPENMP 4.5] Parsing/sema analysis for 'priority' clause.
Alexey Bataev [Tue, 1 Dec 2015 10:17:31 +0000 (10:17 +0000)]
[OPENMP 4.5] Parsing/sema analysis for 'priority' clause.
OpenMP 4.5 defines new clause 'priority' for 'task', 'taskloop' and 'taskloop simd' directives. Added parsing and sema analysis for 'priority' clause in 'task' and 'taskloop' directives.

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

8 years ago[analyzer] Fix IssueHash generation.
Gabor Horvath [Tue, 1 Dec 2015 09:00:41 +0000 (09:00 +0000)]
[analyzer] Fix IssueHash generation.

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

Original patch by: Gyorgy Orban!

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

8 years agoRemove superfluous StringRef casts, NFC.
Yaron Keren [Tue, 1 Dec 2015 08:14:39 +0000 (08:14 +0000)]
Remove superfluous StringRef casts, NFC.

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

8 years ago[X86] Improve codegen for AVX2 gather with an all 1s mask.
Craig Topper [Tue, 1 Dec 2015 07:12:59 +0000 (07:12 +0000)]
[X86] Improve codegen for AVX2 gather with an all 1s mask.

Use undefined instead of setzero as the pass through input since its going to be fully overwritten. Use cmpeq of two zero vectors to produce the all 1s vector. Casting -1 to a double and vectorizing causes a constant load of a -1.0 floating point value.

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

8 years ago[OPENMP 4.5] Parsing/sema analysis for 'taskloop' directive.
Alexey Bataev [Tue, 1 Dec 2015 04:18:41 +0000 (04:18 +0000)]
[OPENMP 4.5] Parsing/sema analysis for 'taskloop' directive.

Adds initial parsing and semantic analysis for 'taskloop' directive.

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

8 years ago[modules] Don't reject multiple modules providing contents for the same embedded...
Richard Smith [Tue, 1 Dec 2015 03:32:49 +0000 (03:32 +0000)]
[modules] Don't reject multiple modules providing contents for the same embedded file.

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

8 years agoFix use-after-free when a C++ thread_local variable gets replaced (because its
Richard Smith [Tue, 1 Dec 2015 01:10:48 +0000 (01:10 +0000)]
Fix use-after-free when a C++ thread_local variable gets replaced (because its
type changes when the initializer is attached). Don't hold onto the
GlobalVariable*; recompute it from the VarDecl* instead.

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

8 years ago[PR25661] Revert part of r217213 according to r254323.
NAKAMURA Takumi [Mon, 30 Nov 2015 23:46:32 +0000 (23:46 +0000)]
[PR25661] Revert part of r217213 according to r254323.

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

8 years ago[libFuzzer] clarify the limitation of fsanitize-coverage=trace-cmp
Kostya Serebryany [Mon, 30 Nov 2015 22:17:19 +0000 (22:17 +0000)]
[libFuzzer] clarify the limitation of fsanitize-coverage=trace-cmp

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