Gor Nishanov [Sun, 2 Oct 2016 03:31:58 +0000 (03:31 +0000)]
[coroutines] Rename driver flag -fcoroutines to -fcoroutines-ts
Summary:
Also makes -fcoroutines_ts to be both a Driver and CC1 flag.
Patch mostly by EricWF.
Reviewers: rnk, cfe-commits, rsmith, EricWF
Subscribers: mehdi_amini
Differential Revision: https://reviews.llvm.org/D25130
llvm-svn: 283064
Aditya Kumar [Sun, 2 Oct 2016 03:06:36 +0000 (03:06 +0000)]
Alias must point to a definition
Reapplying the patch after modifying the test case.
Inlining the destructor caused the compiler to generate bad IR which failed the Verifier in the backend.
https://llvm.org/bugs/show_bug.cgi?id=30341
This patch disables alias to available_externally definitions.
Reviewers: eugenis, rsmith
Differential Revision: https://reviews.llvm.org/D24682
llvm-svn: 283063
Sanjoy Das [Sun, 2 Oct 2016 02:40:27 +0000 (02:40 +0000)]
Revert r283057 and r283058
They've broken the sanitizer-bootstrap bots. Reverting while I investigate.
Original commit messages:
r283057: "[ConstantRange] Make getEquivalentICmp smarter"
r283058: "[SCEV] Rely on ConstantRange instead of custom logic; NFCI"
llvm-svn: 283062
Hal Finkel [Sun, 2 Oct 2016 02:10:45 +0000 (02:10 +0000)]
[PowerPC] Enable soft-float for PPC64, and +soft-float -> -hard-float
Enable soft-float support on PPC64, as the backend now supports it. Also, the
backend now uses -hard-float instead of +soft-float, so set the target features
accordingly.
Fixes PR26970.
llvm-svn: 283061
Hal Finkel [Sun, 2 Oct 2016 02:10:20 +0000 (02:10 +0000)]
[PowerPC] Refactor soft-float support, and enable PPC64 soft float
This change enables soft-float for PowerPC64, and also makes soft-float disable
all vector instruction sets for both 32-bit and 64-bit modes. This latter part
is necessary because the PPC backend canonicalizes many Altivec vector types to
floating-point types, and so soft-float breaks scalarization support for many
operations. Both for embedded targets and for operating-system kernels desiring
soft-float support, it seems reasonable that disabling hardware floating-point
also disables vector instructions (embedded targets without hardware floating
point support are unlikely to have Altivec, etc. and operating system kernels
desiring not to use floating-point registers to lower syscall cost are unlikely
to want to use vector registers either). If someone needs this to work, we'll
need to change the fact that we promote many Altivec operations to act on
v4f32. To make it possible to disable Altivec when soft-float is enabled,
hardware floating-point support needs to be expressed as a positive feature,
like the others, and not a negative feature, because target features cannot
have dependencies on the disabling of some other feature. So +soft-float has
now become -hard-float.
Fixes PR26970.
llvm-svn: 283060
Sanjoy Das [Sun, 2 Oct 2016 00:09:57 +0000 (00:09 +0000)]
Remove duplicated code; NFC
ICmpInst::makeConstantRange does exactly the same thing as
ConstantRange::makeExactICmpRegion.
llvm-svn: 283059
Sanjoy Das [Sun, 2 Oct 2016 00:09:52 +0000 (00:09 +0000)]
[SCEV] Rely on ConstantRange instead of custom logic; NFCI
llvm-svn: 283058
Sanjoy Das [Sun, 2 Oct 2016 00:09:49 +0000 (00:09 +0000)]
[ConstantRange] Make getEquivalentICmp smarter
This change teaches getEquivalentICmp to be smarter about generating
ICMP_NE and ICMP_EQ predicates.
llvm-svn: 283057
Sanjoy Das [Sun, 2 Oct 2016 00:09:45 +0000 (00:09 +0000)]
[SCEV] Remove commented out code; NFC
llvm-svn: 283056
Martell Malone [Sat, 1 Oct 2016 23:10:20 +0000 (23:10 +0000)]
COFF: Fix short import lib import name type bitshift
As per the PE COFF spec (section 8.3, Import Name Type)
Offset: 18 Size 2 bits Name: Type
Offset: 20 Size 3 bits Name: Name Type
Offset: 20 added based on 18+2
Partially commited as rL279069
Differential Revision: https://reviews.llvm.org/D23540
llvm-svn: 283055
Craig Topper [Sat, 1 Oct 2016 21:03:50 +0000 (21:03 +0000)]
[AVX-512] Check rounding mode for builtins that take one. Rounding mode should be either _MM_FROUND_CUR_DIRECTION or a 2-bit rounding mode ORed with _MM_FROUND_NO_EXC.
llvm-svn: 283054
Craig Topper [Sat, 1 Oct 2016 21:03:46 +0000 (21:03 +0000)]
[AVX-512] Add _MM_FROUND_NO_EXC to test cases that pass a rounding mode intrinsics. This is preparation for a follow up commit that will check validity of rounding mode argument.
llvm-svn: 283053
Hal Finkel [Sat, 1 Oct 2016 20:38:44 +0000 (20:38 +0000)]
Remove some additional unnecessary std:: in cmath
Unlike in math.h, as Eric pointed out in the review of D18639, we don't need
the std:: in cmath.
llvm-svn: 283052
Hal Finkel [Sat, 1 Oct 2016 20:38:31 +0000 (20:38 +0000)]
Use __builtin_isnan/isinf/isfinite in complex
The libc-provided isnan/isinf/isfinite macro implementations are specifically
designed to function correctly, even in the presence of -ffast-math (or, more
specifically, -ffinite-math-only). As such, on most implementation, these
either always turn into external function calls (e.g. glibc) or are
specifically function calls when FINITE_MATH_ONLY is defined (e.g. Darwin).
Our implementation of complex arithmetic makes heavy use of isnan/isinf/isfinite
to deal with corner cases involving non-finite quantities. This was problematic
in two respects:
1. On systems where these are always function calls (e.g. Linux/glibc), there was a
performance penalty
2. When compiling with -ffast-math, there was a significant performance
penalty (in fact, on Darwin and systems with similar implementations, the code
may in fact be slower than not using -ffast-math, because the inline
definitions provided by libc become unavailable to prevent the checks from
being optimized out).
Eliding these inf/nan checks in -ffast-math mode is consistent with what
happens with libstdc++, and in my experience, what users expect. This is
critical to getting high-performance code when using complex<T>. This change
replaces uses of those functions on basic floating-point types with calls to
__builtin_isnan/isinf/isfinite, which Clang will always expand inline. When
using -ffast-math (or -ffinite-math-only), the optimizer will remove the checks
as expected.
Differential Revision: https://reviews.llvm.org/D18639
llvm-svn: 283051
Simon Pilgrim [Sat, 1 Oct 2016 20:12:56 +0000 (20:12 +0000)]
[X86][SSE] Cleaned up shuffle decode assertion messages
llvm-svn: 283050
Tobias Grosser [Sat, 1 Oct 2016 19:46:51 +0000 (19:46 +0000)]
isl: update to isl-0.17.1-233-gc911e6a
llvm-svn: 283049
Simon Pilgrim [Sat, 1 Oct 2016 19:35:59 +0000 (19:35 +0000)]
[SLPVectorizer][X86] Added fptosi/fptoui tests
llvm-svn: 283048
Simon Pilgrim [Sat, 1 Oct 2016 19:09:59 +0000 (19:09 +0000)]
[CostModel][X86] Added tests for current fptosi/fptoui costs
llvm-svn: 283047
Simon Pilgrim [Sat, 1 Oct 2016 17:00:26 +0000 (17:00 +0000)]
[SLPVectorizer][X86] Added fcopysign tests
llvm-svn: 283046
Simon Pilgrim [Sat, 1 Oct 2016 16:54:01 +0000 (16:54 +0000)]
[SLPVectorizer][X86] Added fabs tests
llvm-svn: 283045
Simon Pilgrim [Sat, 1 Oct 2016 16:41:52 +0000 (16:41 +0000)]
[CostModel][X86] Added fcopysign costs
llvm-svn: 283044
Mehdi Amini [Sat, 1 Oct 2016 16:38:28 +0000 (16:38 +0000)]
Use StringRef for MemoryBuffer identifier API (NFC)
llvm-svn: 283043
Simon Pilgrim [Sat, 1 Oct 2016 16:30:13 +0000 (16:30 +0000)]
[CostModel][X86] Added fabs costs
llvm-svn: 283042
Simon Pilgrim [Sat, 1 Oct 2016 16:14:57 +0000 (16:14 +0000)]
Fix signed/unsigned warning
llvm-svn: 283041
Simon Pilgrim [Sat, 1 Oct 2016 16:04:28 +0000 (16:04 +0000)]
[X86][SSE] Add support for combining target shuffles to binary BLEND
We already had support for 1-input BLEND with zero - this adds support for 2-input BLEND as well.
llvm-svn: 283040
Mehdi Amini [Sat, 1 Oct 2016 15:44:54 +0000 (15:44 +0000)]
Use StringRef in Registry API (NFC)
llvm-svn: 283039
Simon Pilgrim [Sat, 1 Oct 2016 15:33:01 +0000 (15:33 +0000)]
[X86][SSE] Always combine target shuffles to MOVSD/MOVSS
Now we can commute to BLENDPD/BLENDPS on SSE41+ targets if necessary, so simplify the combine matching where we can.
This required me to add a couple of scalar math movsd/moss fold patterns that hadn't been needed in the past.
llvm-svn: 283038
Simon Pilgrim [Sat, 1 Oct 2016 14:26:11 +0000 (14:26 +0000)]
[X86][SSE] Enable commutation from MOVSD/MOVSS to BLENDPD/BLENDPS on SSE41+ targets
Instead of selecting between MOVSD/MOVSS and BLENDPD/BLENDPS at shuffle lowering by subtarget this will help us select the instruction based on actual commutation requirements.
We could possibly add BLENDPD/BLENDPS -> MOVSD/MOVSS commutation and MOVSD/MOVSS memory folding using a similar approach if it proves useful
I avoided adding AVX512 handling as I'm not sure when we should be making use of VBLENDPD/VBLENDPS on EVEX targets
llvm-svn: 283037
Michal Gorny [Sat, 1 Oct 2016 13:15:56 +0000 (13:15 +0000)]
Revert r283029 - [cmake] Make LIT_COMMAND configurable and improve fallback support
Revert the change in r283029 (and the fixup in r283033) due to buildbot
breakage. The fixup is ineffective for the bots that do not force clean
build since the wrong value is already cached in CMakeCache.txt.
Reverting it should result in the cache variable being removed
and therefore it should be possible to re-introduce it after all
buildbots build this revision.
llvm-svn: 283036
Simon Pilgrim [Sat, 1 Oct 2016 13:10:14 +0000 (13:10 +0000)]
[X86][SSE] Regenerate vselect tests and improve AVX1/AVX2 coverage
llvm-svn: 283035
Nirav Dave [Sat, 1 Oct 2016 10:57:55 +0000 (10:57 +0000)]
Revert "[MC] Prevent out of order HashDirective lexing in AsmLexer."
This reverts commit r282992 which appears to be causing an LTO test failure.
llvm-svn: 283034
Michal Gorny [Sat, 1 Oct 2016 10:56:58 +0000 (10:56 +0000)]
[cmake] Fix incorrect default for LIT_COMMAND, from r283029
llvm-svn: 283033
Eric Fiselier [Sat, 1 Oct 2016 10:46:01 +0000 (10:46 +0000)]
Remove all instances of _LIBCPP_HAS_NO_RVALUE_REFERENCES from test/std/utilities
llvm-svn: 283032
Dawn Perchik [Sat, 1 Oct 2016 10:37:56 +0000 (10:37 +0000)]
[lldb-mi] Fix prompt which can get inserted in the middle of program output in lldb-mi
Summary: The code added in svn r264332 causes "(lldb) " to be printed in the
middle of program console output. This fix restores the behavior for non-Windows
platforms to before the patch.
Reviewers: ted, zturner, clayborg
Subscribers: amccarth, lldb-commits
Differential Revision: http://reviews.llvm.org/D25137
llvm-svn: 283031
Eric Fiselier [Sat, 1 Oct 2016 10:34:13 +0000 (10:34 +0000)]
Replace test_throw.h header with a single test macro
llvm-svn: 283030
Michal Gorny [Sat, 1 Oct 2016 09:28:05 +0000 (09:28 +0000)]
[cmake] Make LIT_COMMAND configurable and improve fallback support
Make LIT_COMMAND configurable, use source tree only when actually
available and extend the default search to other common executable names
'lit.py' and 'lit', in order to increase uniformity between all LLVM
projects and support using installed lit.
Changing the conditional used to determine whether in-tree or external
lit is being used covers the case when LLVM_MAIN_SRC_DIR is defined but
does not exist (anymore). In this case, the functions falls back to
looking for installed lit rather than attempting to use a non-existing
path. The same conditional is used in clang already.
Making LIT_COMMAND a cache variable in case the source tree variant is
used serves two purposes. Firstly, it increases uniformity between
the two branches since find_program() implicitly makes LIT_COMMAND
a cache variable. Secondly, it allows overriding the lit executable used
to run the tests when the LLVM source tree is provided. Gentoo is
planning to use this to use installed (and byte-compiled) lit instead of
re-compiling it in every LLVM project.
Extending default search is meant to increase uniformity between
different LLVM projects. The 'lit.py' name is already used by a few of
them, and 'lit' is the name used by utils/lit/setup.py when installing.
Differential Revision: https://reviews.llvm.org/D25076
llvm-svn: 283029
Michal Gorny [Sat, 1 Oct 2016 09:26:23 +0000 (09:26 +0000)]
[OCaml] Install .mli (interface) files
Install the OCaml interface .mli files. Those files were most likely
omitted because they are input files for the compiled .cmi files.
However, installing them is reasonable since -- unlike .cmi files --
they are human-readable.
The issue was originally spotted by @jpdeplaix.
Differential Revision: https://reviews.llvm.org/D25128
llvm-svn: 283028
Joerg Sonnenberger [Sat, 1 Oct 2016 08:05:50 +0000 (08:05 +0000)]
Split a comment into generic description and note about the specific
cmake use.
llvm-svn: 283027
Joerg Sonnenberger [Sat, 1 Oct 2016 08:03:55 +0000 (08:03 +0000)]
Retire LLVM_BINDIR and friends. They haven't been provided with actual
values since the switch to cmake.
llvm-svn: 283026
Kostya Serebryany [Sat, 1 Oct 2016 07:37:40 +0000 (07:37 +0000)]
[libFuzzer] add fuzzer test for libxml2, finds https://bugzilla.gnome.org/show_bug.cgi?id=751631
llvm-svn: 283024
Joerg Sonnenberger [Sat, 1 Oct 2016 07:35:08 +0000 (07:35 +0000)]
GC HAVE_STRTOQ
llvm-svn: 283023
Joerg Sonnenberger [Sat, 1 Oct 2016 07:34:18 +0000 (07:34 +0000)]
Retire bugpoint's -R. hack.
It got disconnected during the cmake conversion. For Miscompilation.cpp,
it was purely advisory for the user and the ToolRunner.cpp version was
trying to compensate for libs and bins in the same directory, which
hasn't been the case for a very long time.
llvm-svn: 283022
Kostya Serebryany [Sat, 1 Oct 2016 07:13:25 +0000 (07:13 +0000)]
[libFuzzer] fix a recent bugs (buffer overflow)
llvm-svn: 283021
Craig Topper [Sat, 1 Oct 2016 07:11:24 +0000 (07:11 +0000)]
[X86] Cleanup patterns for using VMOVDDUP for broadcasts.
-Remove OptForSize. Not all of the backend follows the same rules for creating broadcasts and there is no conflicting pattern.
-Don't stop selecting VEX VMOVDDUP when AVX512 is supported. We need VLX for EVEX VMOVDDUP.
-Only use VMOVDDUP for v2i64 broadcasts if AVX2 is not supported.
llvm-svn: 283020
Mehdi Amini [Sat, 1 Oct 2016 07:08:23 +0000 (07:08 +0000)]
Revert "Use StringRef instead of raw pointer in TargetRegistry API (NFC)"
This reverts commit r283017. Creates an infinite loop somehow.
llvm-svn: 283019
Mehdi Amini [Sat, 1 Oct 2016 06:46:33 +0000 (06:46 +0000)]
Use StringRef instead of raw pointers in MCAsmInfo/MCInstrInfo APIs (NFC)
llvm-svn: 283018
Mehdi Amini [Sat, 1 Oct 2016 06:25:30 +0000 (06:25 +0000)]
Use StringRef instead of raw pointer in TargetRegistry API (NFC)
llvm-svn: 283017
Mehdi Amini [Sat, 1 Oct 2016 06:22:04 +0000 (06:22 +0000)]
Use StringRef instead of raw pointer in ExecutionEngine
llvm-svn: 283016
Craig Topper [Sat, 1 Oct 2016 06:01:23 +0000 (06:01 +0000)]
[AVX-512] Add EVEX versions of VPBROADCASTW patterns with truncated i32 loads.
llvm-svn: 283015
Craig Topper [Sat, 1 Oct 2016 06:01:18 +0000 (06:01 +0000)]
[AVX-512] Add VLX command lines to 128 and 256-bit shufffle tests.
llvm-svn: 283014
Mehdi Amini [Sat, 1 Oct 2016 05:57:55 +0000 (05:57 +0000)]
Use StringRef in Datalayout API (NFC)
llvm-svn: 283013
Mehdi Amini [Sat, 1 Oct 2016 05:57:50 +0000 (05:57 +0000)]
DIFlags: use StringRef instead of raw pointer (NFC)
llvm-svn: 283012
Mehdi Amini [Sat, 1 Oct 2016 05:12:48 +0000 (05:12 +0000)]
Revert "Use StringRef in Datalayout API (NFC)"
This reverts commit r283009. Bots are broken.
llvm-svn: 283011
Jason Molenda [Sat, 1 Oct 2016 04:50:25 +0000 (04:50 +0000)]
Add unit tests for specific instruction patterns that the x86
assembly inspection class is designed to detect. This is only about
half of the instructions that it needs to recognize - I'll complete
this in a separate checkin.
The larger full-function style test cases I'd checked in previously
covered nearly all of these already, but I wanted simpler test cases
too, so if they fail in the future, it will be easier to spot the
issue.
llvm-svn: 283010
Mehdi Amini [Sat, 1 Oct 2016 04:17:59 +0000 (04:17 +0000)]
Use StringRef in Datalayout API (NFC)
llvm-svn: 283009
Mehdi Amini [Sat, 1 Oct 2016 04:03:30 +0000 (04:03 +0000)]
Use StringRef in Pass Info/Support API (NFC)
llvm-svn: 283008
Mehdi Amini [Sat, 1 Oct 2016 03:43:20 +0000 (03:43 +0000)]
Use StringRef in CommandLine Options handling (NFC)
llvm-svn: 283007
Mehdi Amini [Sat, 1 Oct 2016 03:19:41 +0000 (03:19 +0000)]
Use StringRef instead of raw pointer in MachinePassRegistry (NFC)
llvm-svn: 283006
Mehdi Amini [Sat, 1 Oct 2016 03:10:48 +0000 (03:10 +0000)]
Use StringRef in TLI instead of raw pointer (NFC)
llvm-svn: 283005
Mehdi Amini [Sat, 1 Oct 2016 02:56:57 +0000 (02:56 +0000)]
Use StringRef in Pass/PassManager APIs (NFC)
llvm-svn: 283004
Mehdi Amini [Sat, 1 Oct 2016 02:35:24 +0000 (02:35 +0000)]
Revert "AMDGPU: Don't use offen if it is 0"
This reverts commit r282999.
Tests are not passing: http://lab.llvm.org:8011/builders/clang-x86_64-linux-selfhost-modules/builds/20038
llvm-svn: 283003
Eric Christopher [Sat, 1 Oct 2016 01:50:33 +0000 (01:50 +0000)]
Remove getTargetTriple and update all uses to use the Triple off
of the TargetMachine. NFC.
llvm-svn: 283002
Eric Christopher [Sat, 1 Oct 2016 01:50:29 +0000 (01:50 +0000)]
Stop calling getTargetTriple off of the AsmPrinter and constructing a
TargetTriple, just grab it off of the TargetMachine. NFC.
llvm-svn: 283001
Eric Christopher [Sat, 1 Oct 2016 01:50:25 +0000 (01:50 +0000)]
Remove TargetTriple from AArch64MCInstLower as it's used in few places
and can be pulled from the TargetMachine. NFC.
llvm-svn: 283000
Matt Arsenault [Sat, 1 Oct 2016 01:37:15 +0000 (01:37 +0000)]
AMDGPU: Don't use offen if it is 0
This removes many re-initializations of a base register to 0.
llvm-svn: 282999
Mehdi Amini [Sat, 1 Oct 2016 01:18:23 +0000 (01:18 +0000)]
Use StringRef in LTOCodegenerator (NFC)
llvm-svn: 282998
Mehdi Amini [Sat, 1 Oct 2016 01:18:16 +0000 (01:18 +0000)]
Use StringRef in LTOModule implementation (NFC)
llvm-svn: 282997
Mehdi Amini [Sat, 1 Oct 2016 01:16:22 +0000 (01:16 +0000)]
Use StringRef in Triple API (NFC)
llvm-svn: 282996
Kostya Serebryany [Sat, 1 Oct 2016 01:04:29 +0000 (01:04 +0000)]
[libFuzzer] implement the -shrink=1 option that tires to make elements of the corpus smaller, off by default
llvm-svn: 282995
Kostya Serebryany [Sat, 1 Oct 2016 00:55:13 +0000 (00:55 +0000)]
[sanitizer-coverage] remove stale code
llvm-svn: 282994
Jim Ingham [Sat, 1 Oct 2016 00:49:12 +0000 (00:49 +0000)]
Fix up this test case.
The lldbutil.run_break_set_by_file_and_line has already checked that the number of
locations was 1, so don't check it again. And certainly don't check it again by
grubbing in break list output.
Also, we know the Thread's IsStopped state is wrong, and have a test for that, so
don't keep testing it in other files where that isn't the primary thing we're testing.
I removed the xfail for Darwin. If this also passes on other systems, we can remove
the xfails from them as we find that out.
llvm-svn: 282993
Nirav Dave [Sat, 1 Oct 2016 00:42:32 +0000 (00:42 +0000)]
[MC] Prevent out of order HashDirective lexing in AsmLexer.
To lex hash directives we peek ahead to find component tokens, create a
unified token, and unlex the peeked tokens so the parser does not need
to parse the tokens then. Make sure we do not to lex another hash
directive during peek operation.
This fixes PR28921.
Reviewers: rnk, loladiro
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D24839
llvm-svn: 282992
Jason Molenda [Sat, 1 Oct 2016 00:19:26 +0000 (00:19 +0000)]
Add support for some extended push instructions in i386/x86_64 like
'push 0x20(%esp)' which clang can generate when emitting
-fomit-frame-pointer code for 32-bit.
Add a unit test program which includes this instruction.
Also fix a bug in the refactoring/rewrite of the x86 assembly
instruction profiler where I'd hard coded it as a 64-bit disassembler
instead of using the ArchSpec to pick a 32-bit or 64-bit disassembler
from llvm. When the disassembler would hit an instruction
that is invalid in 64-bit mode, it would stop disassembling the function.
This likely led to the TestSBData testsuite failure on linux with 32-bit
i386 and gcc-4.9; I'll test that in a bit.
The newly added unit test program is 32-bit i386 code and it includes
an instruction which is invalid in 64-bit mode so it will catch this.
<rdar://problem/
28557876>
llvm-svn: 282991
Todd Fiala [Sat, 1 Oct 2016 00:17:08 +0000 (00:17 +0000)]
test infra: clear file-charged issues on rerun of file
This change addresses the corner case bug in the test
infrastructure where a test file times out *outside*
of any running test method. In those cases, the issue
was charged to the file, not to a test method within
the file. When that file is re-run successfully,
none of the test-method-level successes would clear
the file-level issue.
This change fixes that: for all test files that are
getting rerun (whether by being marked flaky or
via the --rerun-all-issues flag), file-level test
issues are searched for in each of those files. Each
file-level issue found in the rerun file list then
gets cleared.
A test of this feature is added to issue_verification,
using the technique there of moving the *.py.park file
to *.py to do an end-to-end validation.
This change also adds a .gitignore entry for pyenv
project-level files and fixes up a few minor pep8
formatting violations in files I touched.
Fixes:
llvm.org/pr27423
llvm-svn: 282990
Richard Trieu [Sat, 1 Oct 2016 00:15:24 +0000 (00:15 +0000)]
Fix crash when emitting error.
With templated classes, is possible to not be able to determine is a member
function is a special member function before the class is instantiated. Only
these special member functions can be defaulted. In some cases, knowing
whether a function is a special member function can't be determined until
instantiation, so an uninstantiated function could possibly be defaulted too.
Add a case to the error diagnostic when the function marked with a default is
not known to be a special member function.
llvm-svn: 282989
Mehdi Amini [Sat, 1 Oct 2016 00:05:34 +0000 (00:05 +0000)]
[ASAN] Add the binder globals on Darwin to llvm.compiler.used to avoid LTO dead-stripping
The binder is in a specific section that "reverse" the edges in a
regular dead-stripping: the binder is live as long as a global it
references is live.
This is a big hammer that prevents LLVM from dead-stripping these,
while still allowing linker dead-stripping (with special knowledge
of the section).
Differential Revision: https://reviews.llvm.org/D24673
llvm-svn: 282988
Justin Lebar [Fri, 30 Sep 2016 23:57:38 +0000 (23:57 +0000)]
[CUDA] Harmonize asserts in SemaCUDA, NFC.
llvm-svn: 282987
Justin Lebar [Fri, 30 Sep 2016 23:57:34 +0000 (23:57 +0000)]
[CUDA] Disallow __constant__ local variables.
Reviewers: tra, rnk
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D25129
llvm-svn: 282986
Justin Lebar [Fri, 30 Sep 2016 23:57:30 +0000 (23:57 +0000)]
[CUDA] Disallow 'extern __shared__' variables.
Also add a test that we disallow
__constant__ __shared__ int x;
because it's possible to break this without breaking
__shared__ __constant__ int x;
Reviewers: rnk
Subscribers: cfe-commits, tra
Differential Revision: https://reviews.llvm.org/D25125
llvm-svn: 282985
Richard Smith [Fri, 30 Sep 2016 23:47:58 +0000 (23:47 +0000)]
Fix tests to not assume they know exactly what will be in Clang's predefines buffer.
llvm-svn: 282984
Kostya Serebryany [Fri, 30 Sep 2016 23:29:27 +0000 (23:29 +0000)]
[libFuzzer] remove some experimental code
llvm-svn: 282983
Davide Italiano [Fri, 30 Sep 2016 23:22:42 +0000 (23:22 +0000)]
[llvm-objdump] Switch to a range loop. NFCI.
llvm-svn: 282982
Richard Smith [Fri, 30 Sep 2016 23:16:08 +0000 (23:16 +0000)]
Fix bogus "inline namespace cannot be reopened as non-inline" diagnostic to
just warn that the second declaration is missing the 'inline' keyword. This is
valid, and we shouldn't be suggesting otherwise.
llvm-svn: 282981
Saleem Abdulrasool [Fri, 30 Sep 2016 23:11:05 +0000 (23:11 +0000)]
CodeGen: inherit DLLExport attribute in Windows Itanium
When emitting the fundamental type information constants, inherit the
DLLExportAttr from `__fundamental_type_info`. We would previously not
honor the `__declspec(dllexport)` on the type information.
llvm-svn: 282980
Matthias Braun [Fri, 30 Sep 2016 23:08:07 +0000 (23:08 +0000)]
ScheduleDAGInstrs: Cleanup, use range based for; NFC
llvm-svn: 282979
Jim Ingham [Fri, 30 Sep 2016 22:55:57 +0000 (22:55 +0000)]
Fix up the test so it gets closer to passing.
Remove the test for thread stopped states from this test.
That isn't set properly now, and its setting doesn't matter till we actually support non-stop debugging, so
we shouldn't have unrelated tests failing from it.
Also changed some code that was trying and failing to grub command line output, and replaced
it by SB API calls.
llvm-svn: 282976
Richard Smith [Fri, 30 Sep 2016 22:41:36 +0000 (22:41 +0000)]
P0035R4: add predefined __STDCPP_DEFAULT_NEW_ALIGNMENT__ macro. By default, we
assume that ::operator new provides no more alignment than is necessary for any
primitive type, except when we're on a GNU OS, where glibc's malloc guarantees
to provide 64-bit alignment on 32-bit systems and 128-bit alignment on 64-bit
systems. This can be controlled by the command-line -fnew-alignment flag.
llvm-svn: 282974
Eric Fiselier [Fri, 30 Sep 2016 22:38:31 +0000 (22:38 +0000)]
[coroutines] Diagnose when 'main' is declared as a coroutine.
Summary: The title says it all.
Reviewers: rsmith, GorNishanov
Subscribers: mehdi_amini, cfe-commits
Differential Revision: https://reviews.llvm.org/D25078
llvm-svn: 282973
Kostya Serebryany [Fri, 30 Sep 2016 22:35:08 +0000 (22:35 +0000)]
[libFuzzer] fix openssl fuzzer tests when running on a machine w/o openssl installed
llvm-svn: 282972
Kostya Serebryany [Fri, 30 Sep 2016 22:29:57 +0000 (22:29 +0000)]
[libFuzzer] remove unused option
llvm-svn: 282971
Jim Ingham [Fri, 30 Sep 2016 22:24:11 +0000 (22:24 +0000)]
Add the radar on our end to the bugreport string.
llvm-svn: 282970
Jim Ingham [Fri, 30 Sep 2016 22:22:09 +0000 (22:22 +0000)]
Add the radar from our end to the bugreport string.
llvm-svn: 282969
Bruno Cardoso Lopes [Fri, 30 Sep 2016 22:19:38 +0000 (22:19 +0000)]
[Sema] Support lax conversions for compound assignments
Support lax convertions on compound assignment expressions like:
typedef __attribute__((vector_size(8))) double float64x1_t;
typedef __attribute__((vector_size(16))) double float64x2_t;
float64x1_t vget_low_f64(float64x2_t __p0);
double c = 3.0;
float64x2_t v = {0.0, 1.0};
c += vget_low_f64(v);
This restores one more valid behavior pre r266366, and is a incremental
follow up from work committed in r274646.
While here, make the check more strict, add FIXMEs, clean up variable
names to match what they can actually be and update testcases to reflect
that. We now reject:
typedef float float2 __attribute__ ((vector_size (8)));
double d;
f2 += d;
which doesn't fit as a direct bitcast anyway.
Differential Revision: https://reviews.llvm.org/D24472
rdar://problem/
28033929
llvm-svn: 282968
Reid Kleckner [Fri, 30 Sep 2016 22:10:12 +0000 (22:10 +0000)]
[SEH] Emit the parent frame offset label even if there are no funclets
This avoids errors about references to undefined local labels from
unreferenced filter functions.
Fixes (sort of) PR30431
llvm-svn: 282967
Jim Ingham [Fri, 30 Sep 2016 22:07:41 +0000 (22:07 +0000)]
IsValid is the way to ask a breakpoint location whether it is valid.
llvm-svn: 282966
Paul Osmialowski [Fri, 30 Sep 2016 22:05:45 +0000 (22:05 +0000)]
[cmake] Fix for a bug https://llvm.org/bugs/show_bug.cgi?id=30489 "Cannot build with -DLIBOMP_FORTRAN_MODULES=True"
Differential Revision: https://reviews.llvm.org/D24959
llvm-svn: 282965
Rui Ueyama [Fri, 30 Sep 2016 22:01:25 +0000 (22:01 +0000)]
Use StringSwtich::Cases for multiple choices.
llvm-svn: 282964
Kostya Serebryany [Fri, 30 Sep 2016 21:57:10 +0000 (21:57 +0000)]
[sanitizer-coverage] fix docs
llvm-svn: 282962
Quentin Colombet [Fri, 30 Sep 2016 21:46:21 +0000 (21:46 +0000)]
[AArch64][RegisterBankInfo] Use the helper functions for the checks
This makes sure the helper functions work as expected.
NFC.
llvm-svn: 282961
Quentin Colombet [Fri, 30 Sep 2016 21:46:19 +0000 (21:46 +0000)]
[AArch64][RegisterBankInfo] Rename getValueMappingIdx to getValueMapping
We don't return index, we return the actual ValueMapping.
NFC.
llvm-svn: 282960