Jakob Stoklund Olesen
c7024a48db
Move ARM subreg index compositions to the SubRegIndex itself.
...
llvm-svn: 149557
2012-02-01 23:16:43 +00:00
Jakob Stoklund Olesen
2123160919
Specify SubRegIndex components on the index itself.
...
It is simpler to define a composite index directly:
def ssub_2 : SubRegIndex<[dsub_1, ssub_0]>;
def ssub_3 : SubRegIndex<[dsub_1, ssub_1]>;
Than specifying the composite indices on each register:
CompositeIndices = [(ssub_2 dsub_1, ssub_0),
(ssub_3 dsub_1, ssub_1)] in ...
This also makes it clear that SubRegIndex composition is supposed to be
unique.
llvm-svn: 149556
2012-02-01 23:16:41 +00:00
Fariborz Jahanian
30febeb224
Look for declaration of CFBridgingRetain/CFBridgingRetain before
...
changing the diagnostic. Also use correct spelling for both.
llvm-svn: 149554
2012-02-01 22:56:20 +00:00
Andrew Trick
3441597f84
fix cmake
...
llvm-svn: 149553
2012-02-01 22:28:29 +00:00
Marshall Clow
a27b0cd8ee
added const nullptr tests
...
llvm-svn: 149552
2012-02-01 22:27:24 +00:00
Dylan Noblesmith
27b37ab9b1
make: fix installation of generated header files
...
The PROJ_SRC_DIR != PROJ_OBJ_DIR path was missing the directory
creation logic that was in the path for non-generated headers.
PR11903.
(The oversight was copied and pasted from LLVM's Makefile.rules,
where it apparently existed since time immemorial til it was
corrected in r127325.)
llvm-svn: 149551
2012-02-01 22:23:31 +00:00
Dylan Noblesmith
5b7ba95294
cmake: don't install config.h (v2)
...
This header is private and shouldn't be used by clients.
(This reverts r149540, reinstating r149496. False alarm.)
llvm-svn: 149550
2012-02-01 22:22:37 +00:00
Jakob Stoklund Olesen
fff0dfd810
Fix a bug in the TopoOrderRC comparison function.
...
The final tie breaker comparison also needs to return +/-1, or 0.
This is not a less() function.
This could cause otherwise identical super-classes to be ordered
unstably, depending on what the system qsort routine does with a bad
compare function.
llvm-svn: 149549
2012-02-01 22:19:26 +00:00
Mon P Wang
9f05206659
Avoid creating an extract element to an illegal type after LegalizeTypes has run.
...
llvm-svn: 149548
2012-02-01 22:15:20 +00:00
Andrew Trick
d06df96a7c
VLIW specific scheduler framework that utilizes deterministic finite automaton (DFA).
...
This new scheduler plugs into the existing selection DAG scheduling framework. It is a top-down critical path scheduler that tracks register pressure and uses a DFA for pipeline modeling.
Patch by Sergei Larin!
llvm-svn: 149547
2012-02-01 22:13:57 +00:00
Jakob Stoklund Olesen
855662ad9a
Avoid emitting empty arrays, they're not standard C++.
...
It's only by luck that we haven't produced any yet, and clang refuses to
compile them.
llvm-svn: 149546
2012-02-01 22:12:51 +00:00
Marshall Clow
e71ddf2fcb
removed duplicated tests - Howard was quicker than me.
...
llvm-svn: 149545
2012-02-01 21:49:28 +00:00
Eric Christopher
25a11e6dbd
Remove duplicated comment.
...
llvm-svn: 149544
2012-02-01 21:48:10 +00:00
Eric Christopher
034ba7e487
Fix comment.
...
llvm-svn: 149543
2012-02-01 21:44:56 +00:00
Marshall Clow
62e0f4abf6
Added tests for catching const/non-const nullptr
...
llvm-svn: 149542
2012-02-01 21:37:24 +00:00
Howard Hinnant
60eaa49036
Add test for pointer qualification conversion.
...
llvm-svn: 149541
2012-02-01 21:25:40 +00:00
Dylan Noblesmith
dc3980a945
cmake: revert r149496
...
It *looks* like this caused PR11903, somehow.
llvm-svn: 149540
2012-02-01 21:17:55 +00:00
Howard Hinnant
30025116de
Changed a TODO to a 'maybe some time in the future'.
...
llvm-svn: 149539
2012-02-01 21:12:07 +00:00
Howard Hinnant
8030b7f751
Removed DEBUG statements.
...
llvm-svn: 149538
2012-02-01 21:08:30 +00:00
Howard Hinnant
089123e65f
Remove a TODO regarding where some can_catch are implemented. I opted to make can_catch pure virtual in the top __shim_type_info, and have each sub-class implement its own. There are some repeated definitions, but they are trivial.
...
llvm-svn: 149537
2012-02-01 21:06:46 +00:00
Howard Hinnant
c325fa7705
Add some tests to test catching nullptr with pointers and member pointers. Tests are only activated if #if __has_feature(cxx_nullptr).
...
llvm-svn: 149536
2012-02-01 21:01:52 +00:00
Douglas Gregor
2e15c844a5
Make sure that imported definitions get completed before we add
...
anything into the corresponding DeclContext. Co-hacked with Sean;
fixes <rdar://problem/10768928>.
llvm-svn: 149535
2012-02-01 21:00:38 +00:00
Howard Hinnant
2d6810fbd6
Quash a TODO related to catching pointer-to-member. These tests fail on my copy of gcc-4.2. But I believe the tests to be correct (and they pass for libc++abi). I've enquired on the C++ standards mailing list for a clarification in case I'm wrong. So far I've gotten one response that agrees with me.
...
llvm-svn: 149534
2012-02-01 20:53:21 +00:00
Benjamin Kramer
72e6ce5aa9
libclang: Mark clang_Cursor_isNull with CINDEX_LINKAGE to make it available on windows.
...
Patch by Timothy J Fontaine!
llvm-svn: 149533
2012-02-01 20:37:28 +00:00
Argyrios Kyrtzidis
38bacf3429
[libclang] Make sure we don't ever leave a StoredDiagnostic associated with
...
a SourceManager that has already been deleted, rdar://10768346.
llvm-svn: 149532
2012-02-01 19:54:02 +00:00
Douglas Gregor
c48190c10a
Add missing dependency to unbreak the CMake build
...
llvm-svn: 149531
2012-02-01 19:53:01 +00:00
Howard Hinnant
a21f8c2acf
Quash TODO regarding catch by function type. Add tests to back it up.
...
llvm-svn: 149530
2012-02-01 19:42:45 +00:00
Johnny Chen
ccfa90a5fe
Fix indentation.
...
llvm-svn: 149529
2012-02-01 19:35:55 +00:00
Howard Hinnant
26ffb64177
Quash TODO regarding catch by array type. Add tests to back it up.
...
llvm-svn: 149527
2012-02-01 19:21:28 +00:00
David Chisnall
af066bbb1f
size() == 0 -> empty().
...
Spotted by rjmcall.
llvm-svn: 149526
2012-02-01 19:16:56 +00:00
Anna Zaks
7aba6368fa
[analyzer] Fix a crash in CheckerContext::isCLibraryFunction for C++
...
declarations with special names.
A patch by Dmitri Gribenko.
llvm-svn: 149525
2012-02-01 19:16:20 +00:00
Anna Zaks
314cd09b5c
Add a new compiler warning, which flags anti-patterns used as the size
...
argument in strncat.
The warning is ignored by default since it needs more qualification.
TODO: The warning message and the note are messy when
strncat is a builtin due to the macro expansion.
llvm-svn: 149524
2012-02-01 19:08:57 +00:00
Johnny Chen
fdad6794ac
Add const-ness to BreakpointLocation::IsEnabled().
...
llvm-svn: 149523
2012-02-01 19:05:20 +00:00
Howard Hinnant
69a10f466b
Removing a TODO: can_catch is fundamentally different than search_above_dst. can_catch is looking for an unamiguous public base class of a specific type, but at any address. search_above_dst is looking for an unambiguous public base class of a specific type, *and* at a specific address. Additionally can_catch is run for all types. search_above_dst is only run on class types. So these are only superficially similar. Not similar enough for resuse, at least without making the code unreadable.
...
llvm-svn: 149522
2012-02-01 18:52:35 +00:00
Chad Rosier
e273cb08c4
Tidy up.
...
llvm-svn: 149521
2012-02-01 18:45:51 +00:00
Howard Hinnant
d0bfbb336f
Teach exception_cleanup_func about dependent exceptions.
...
llvm-svn: 149520
2012-02-01 18:44:21 +00:00
Johnny Chen
3cfb9c672c
Add @expectedFailure decorators.
...
llvm-svn: 149519
2012-02-01 18:26:25 +00:00
Howard Hinnant
8aa78517ab
Treat all exceptions except that the ones that this library throws as foreign. Even other C++ exceptions.
...
llvm-svn: 149518
2012-02-01 18:15:15 +00:00
Douglas Gregor
6b8ef34f84
Diagnose the restriction on default arguments in C++11 [expr.prim.lambda]p5.
...
llvm-svn: 149517
2012-02-01 17:18:19 +00:00
Douglas Gregor
cdd11d4e7e
Introduce the lambda scope before determining explicit captures, which
...
cleans up and improves a few things:
- We get rid of the ugly dance of computing all of the captures in
data structures that clone those of CapturingScopeInfo, centralizing
the logic for accessing/updating these data structures
- We re-use the existing capture logic for 'this', which actually
works now.
Cleaned up some diagnostic wording in minor ways as well.
llvm-svn: 149516
2012-02-01 17:04:21 +00:00
Howard Hinnant
62efe0b062
Nothing but polishing comments.
...
llvm-svn: 149515
2012-02-01 16:56:40 +00:00
Anna Zaks
97981bdeb0
[analyzer] Testing: add 2 new checkers to the buildbot script.
...
llvm-svn: 149514
2012-02-01 16:46:57 +00:00
Howard Hinnant
4ca103d14c
Move an error detector to a better place.
...
llvm-svn: 149513
2012-02-01 16:16:11 +00:00
NAKAMURA Takumi
2235e6da8f
test/Driver/target.c: Relax expression for "gcc.exe" on win32.
...
llvm-svn: 149510
2012-02-01 15:16:22 +00:00
Dylan Noblesmith
af9be0b6fa
cmake: make BUILD_SHARED_LIBS a visible option
...
It could only be specified on the commandline, and wouldn't show
up as an option in the GUI or when invoked via `cmake -i` at all.
This also tells CMake that it's a BOOL, rather than "UNINITIALIZED".
llvm-svn: 149506
2012-02-01 14:49:39 +00:00
NAKAMURA Takumi
fe8186f8b0
test/CodeGen/X86/avx-minmax.ll: Relax expressions for Win32 targets. YMM arguments are passed as indirect on Win32 x64.
...
llvm-svn: 149505
2012-02-01 14:35:29 +00:00
Dylan Noblesmith
86780e906b
include clang's config.h unconditionally
...
And remove HAVE_CLANG_CONFIG_H, now that the header is generated
in the autoconf build, too. (clang r149497 / llvm r149498)
Also include the config.h header after all other headers, per
the LLVM coding standards.
It also turns out WindowsToolChain.cpp wasn't using the config
header at all, so that include's just deleted now.
llvm-svn: 149504
2012-02-01 14:25:28 +00:00
Tobias Grosser
c327932cf5
ScopInfo: Simplify some isl code
...
llvm-svn: 149503
2012-02-01 14:23:36 +00:00
Tobias Grosser
5772e65be0
CodeGeneration: Rephrase comment slightly
...
llvm-svn: 149502
2012-02-01 14:23:33 +00:00
Tobias Grosser
bda1f8f808
CodeGeneration: Order includes alphabetically
...
llvm-svn: 149501
2012-02-01 14:23:29 +00:00