Andreas Simbuerger
24af0c8220
Fix typo
...
llvm-svn: 210754
2014-06-12 07:26:02 +00:00
Andreas Simbuerger
83ed861ea2
Check for an empty error log.
...
Fixes #19976 .
The error log does not contain an error, in case we reject a candidate
without generating a diagnostic message by using invalid<>(...). This is
the case for the top-level region of a function.
The patch comes without a test-case because adding a useful one requires
additional code just for triggering it. Before the patch it would only trigger,
if we try to print the CFG with Scop error annotations.
llvm-svn: 210753
2014-06-12 07:25:08 +00:00
Andreas Simbuerger
fbd643c9e1
Move getDebugLocation to ScopDetectionDiagnostic
...
llvm-svn: 210752
2014-06-12 07:23:04 +00:00
Craig Topper
3aa4fb3b8b
Use StringRef to simplify code. No functional change.
...
llvm-svn: 210751
2014-06-12 05:32:35 +00:00
Craig Topper
e47535041c
Use ArrayRef in some function parameters instead of a pointer and count. No functional change.
...
llvm-svn: 210750
2014-06-12 05:32:27 +00:00
Alp Toker
156027ce66
Avoid in-class initializer from r210747
...
Turns out MSVC doesn't like this. Sorry for the noise!
llvm-svn: 210749
2014-06-12 04:27:37 +00:00
Alp Toker
fc5f017894
Avoid anonymous namespace in header from r210747
...
llvm-svn: 210748
2014-06-12 04:21:14 +00:00
Alp Toker
3ba7673e34
Avoid redundant allocations in the linker optimisation hint
...
llvm-svn: 210747
2014-06-12 04:02:46 +00:00
Juergen Ributzka
b43a559514
[FastISel][x86] Add testcase for r210719.
...
llvm-svn: 210746
2014-06-12 03:54:05 +00:00
Rafael Espindola
790589c8e3
Add a std:: prefix in cases where ADL would have failed on windows.
...
This is in preparation for removing make_error_code from the llvm namespace.
llvm-svn: 210745
2014-06-12 03:53:36 +00:00
Rafael Espindola
6d0d89b49c
Fix typo.
...
Thanks to Alp Toker for noticing.
llvm-svn: 210744
2014-06-12 03:31:26 +00:00
Juergen Ributzka
7eac929609
[x86] Improve frameaddress test from r210709.
...
llvm-svn: 210743
2014-06-12 03:29:29 +00:00
Juergen Ributzka
04558dc77a
[FastISel] Add support for the stackmap intrinsic.
...
This implements target-independent FastISel lowering for the stackmap intrinsic.
llvm-svn: 210742
2014-06-12 03:29:26 +00:00
Rafael Espindola
99c78a9f3c
Don't use make_error_code from the llvm namespace.
...
llvm-svn: 210741
2014-06-12 03:13:49 +00:00
Rafael Espindola
e5ec53ba96
Prefix generic_category with std::.
...
Sorry I missed these before.
llvm-svn: 210740
2014-06-12 02:52:22 +00:00
Rafael Espindola
d0136707a9
Give clang-format its own error category.
...
The posix errno values are probably to the best thing to use for
describing parse errors.
This should also fix the mingw build.
llvm-svn: 210739
2014-06-12 02:50:04 +00:00
Saleem Abdulrasool
2456cea2e1
Driver: use more range-based for loops
...
Mechanical change converting some of the simpler for loops into range-based for
loops. NFC.
llvm-svn: 210738
2014-06-12 02:08:04 +00:00
Rafael Espindola
7e577f73ee
Don't put generic_category in the llvm namespace.
...
llvm-svn: 210737
2014-06-12 02:00:39 +00:00
Rafael Espindola
181efbf44a
Use generic_category from the std namespace.
...
llvm-svn: 210736
2014-06-12 01:59:06 +00:00
Rafael Espindola
d9ba837bfd
Use generic_category from the std namespace.
...
llvm-svn: 210735
2014-06-12 01:57:33 +00:00
Bob Wilson
2f7cc01895
Fix verifier for GlobalAliases to avoid recursing into global initializers.
...
The verifier follows GlobalAlias operands so that it can detect cycles of
alias definitions. It was doing this in a way that caused it to also recurse
through initializers for the GlobalValue aliasees, and it would fail when
an initializer refers to a global that is a declaration and not a definition.
This patch causes it to stop recursing when it hits a global definition.
<rdar://problem/17277451>
llvm-svn: 210734
2014-06-12 01:46:54 +00:00
Rafael Espindola
25188c95de
Don't import error_category into the llvm namespace.
...
llvm-svn: 210733
2014-06-12 01:45:43 +00:00
Rafael Espindola
92d8b456d9
Use error_category from the std namespace.
...
llvm-svn: 210732
2014-06-12 01:44:19 +00:00
Rafael Espindola
acc5d7c911
Don't import error_condition into the llvm namespace.
...
llvm-svn: 210731
2014-06-12 01:29:42 +00:00
Rafael Espindola
7cc0d413b5
Use error_condition from the std namespace.
...
llvm-svn: 210730
2014-06-12 01:28:12 +00:00
Rafael Espindola
116f21c4dd
Used mapWindowsError. I missed these in the initial transition.
...
llvm-svn: 210729
2014-06-12 01:25:33 +00:00
Rafael Espindola
3c2f0e84f8
Remove some low hanging fruit from system_error.h
...
llvm-svn: 210728
2014-06-12 01:10:47 +00:00
Rafael Espindola
b7d8bba0c4
Errno should use generic_category.
...
Sorry, no testcase, just noticed while trying to remove llvm's system_error.h
llvm-svn: 210727
2014-06-12 00:57:40 +00:00
Richard Smith
70e2e75e54
[modules] Add first-draft module maps for Clang. These don't cover everything
...
yet, but they're enough for a clean bootstrap (with a few local patches that
are yet to be committed).
llvm-svn: 210726
2014-06-12 00:32:32 +00:00
Rafael Espindola
adb73e6fb9
Try to fix the mingw build.
...
* MingW needs mapWindowsError.
* MingW is missing some entries in std::errc, but we don't use them.
llvm-svn: 210725
2014-06-12 00:24:39 +00:00
Zachary Turner
39c422da57
Do not register and de-register PassRegistrationListeners during
...
construction and destruction.
PassRegistrationListener is intended for use as a generic listener.
In some cases, PassRegistrationListener-derived classes were being
created, and automatically registered and de-registered in static
constructors and destructors. Since ManagedStatics are destroyed
prior to program shutdown, this leads to errors where an attempt is
made to access a ManagedStatic that has already been destroyed.
Reviewed by: rnk, dblaikie
Differential Revision: http://reviews.llvm.org/D4106
llvm-svn: 210724
2014-06-12 00:16:36 +00:00
Richard Smith
29d0e6b601
PR19966: don't crash/assert when __underlying_type is applied to an incomplete
...
enumeration type. I've also filed a LWG issue pointing out that this should be
ill-formed.
llvm-svn: 210723
2014-06-12 00:01:45 +00:00
Rafael Espindola
a8aef53849
Accomodate for message differences on windows.
...
llvm-svn: 210722
2014-06-11 23:53:06 +00:00
Eli Bendersky
899bef099f
Teach LoopUnrollPass to respect loop unrolling hints in metadata.
...
See http://reviews.llvm.org/D4090 for more details.
The Clang change that produces this metadata was committed in r210667
Patch by Mark Heffernan.
llvm-svn: 210721
2014-06-11 23:15:35 +00:00
Juergen Ributzka
272b570a80
[FastISel][X86] Add support for the sqrt intrinsic.
...
llvm-svn: 210720
2014-06-11 23:11:02 +00:00
Juergen Ributzka
fbaa3db909
[FastIsel][X86] Add support for lowering the first 8 floating-point arguments.
...
llvm-svn: 210719
2014-06-11 23:10:58 +00:00
Greg Clayton
bc88d938f7
Multi-line expressions in Xcode now have a space between the line number and the expression text.
...
<rdar://problem/17238093>
llvm-svn: 210718
2014-06-11 23:10:41 +00:00
Zachary Turner
a997d928fc
Don't acquire the mutex during the destructor of PassRegistry.
...
This destructor is run as part of static program termination, and
so all ManagedStatics (including this lock) will have been
destroyed by llvm_shutdown. Furthermore, if there is actually
a race condition during static program termination, then we are
just hiding a bug somewhere else, because other threads should
not be running at this point.
llvm-svn: 210717
2014-06-11 23:03:31 +00:00
Rafael Espindola
da70bfd826
Implement get_magic with generic tools and inline it.
...
llvm-svn: 210716
2014-06-11 22:53:00 +00:00
Hans Wennborg
e8ad3839a1
Don't inherit dllimport to inline move assignment operators
...
Current MSVC versions don't have move assignment operators, so we
can't rely on them being available in the dll. If we have the
definition, we can just use that directly. This breaks pointer
equality, but should work fine otherwise.
When there is an MSVC version that supports move assignment,
we can key this off the -fmsc-ver option.
http://reviews.llvm.org/D4105
llvm-svn: 210715
2014-06-11 22:44:39 +00:00
Rafael Espindola
28db74b2f0
Fix test build on windows.
...
llvm-svn: 210714
2014-06-11 22:23:45 +00:00
Reid Kleckner
13a979911a
Don't slice SemaDiagnosticBuilder
...
I wasn't able to figure out how to emit this diagnostic from a SFINAE
context, so I don't have a test.
llvm-svn: 210713
2014-06-11 21:57:15 +00:00
Rafael Espindola
70fbe6f80e
Remove unused has_magic.
...
This will allow inlining get_magic, which should in turn fix one of the mingw
build problems after the switch to std::error_code.
llvm-svn: 210712
2014-06-11 21:53:22 +00:00
Rui Ueyama
e05d380486
Move Simple.h and Alias.h to include/Core.
...
Because the files in Core actually depend on these files.
Differential Revision: http://reviews.llvm.org/D4000
llvm-svn: 210710
2014-06-11 21:47:51 +00:00
Juergen Ributzka
4dc958777c
[FastISel][X86] Add support for the frameaddress intrinsic.
...
llvm-svn: 210709
2014-06-11 21:44:44 +00:00
Hans Wennborg
660101302e
Fix the VS2012 build.
...
It didn't handle the in-class member initializer and compound literal.
llvm-svn: 210707
2014-06-11 21:24:13 +00:00
Fariborz Jahanian
9c10032c79
Objective-C. Accept '__attribute__((__ns_returns_retained__))'
...
for function/methods returning block in MRR mode as well.
// rdar://17259812
llvm-svn: 210706
2014-06-11 21:22:53 +00:00
Chad Rosier
2205d4ef05
[AArch64] Basic Sched Model for Cortex-A57.
...
Patch by Dave Estes<cestes@codeaurora.org>
Differential Revision: http://reviews.llvm.org/D4008
llvm-svn: 210705
2014-06-11 21:06:56 +00:00
Rafael Espindola
7b0d7cf96b
Quick fix for the windows build.
...
We have to look for both std::make_error_code as well as our overloads.
llvm-svn: 210704
2014-06-11 21:04:06 +00:00
Tom Stellard
4a9cea608c
R600: Set correct InstrItinClass for instructions using *Helper classes
...
We weren't doing this before, so all instruction using the *Helper
classes were considered for any ALU slot.
This fixes a hang in the builtin-char-clz-1.0.generated.cl piglit test.
llvm-svn: 210703
2014-06-11 20:51:42 +00:00