Evan Cheng
b35afcaa56
Disable machine LICM speculation check (for profitability) until I have time to investigate the regressions.
...
llvm-svn: 141813
2011-10-12 21:33:49 +00:00
Cameron Zwarich
2dffcebf77
To find the exiting VN of a LiveInterval from a block, use the previous slot
...
rather than the previous index. If a block has a single instruction, the
previous index may be in a different basic block.
I have no clue how this used to work on all of test-suite, because now this
failure is seen quite often when trying to compile code with -strong-phi-elim.
This fixes PR10252.
llvm-svn: 141812
2011-10-12 21:24:54 +00:00
Jim Grosbach
54a20ed0f1
Thumb2 assembly parsing and encoding for LDC/STC.
...
llvm-svn: 141811
2011-10-12 20:54:17 +00:00
Johnny Chen
7f01ac39b9
Patch by Enrico to provide an example of 'import' commnad for importing .py/.pyc files.
...
llvm-svn: 141810
2011-10-12 20:47:04 +00:00
Douglas Gregor
ebcfbb5d22
When we determine that a function template specialization produced as
...
part of template argument deduction is ill-formed, we mark it as
invalid and treat it as a deduction failure. If we happen to find that
specialization again, treat it as a deduction failure rather than
silently building a call to the declaration.
Fixes PR11117, a marvelous bug where deduction failed after creating
an invalid specialization, causing overload resolution to pick a
different candidate. Then we performed a similar overload resolution
later, and happily picked the invalid specialization to
call... resulting in a silent link failure.
llvm-svn: 141809
2011-10-12 20:35:48 +00:00
Sean Callanan
ca4e0fd7e6
Refactoring in preparation for having multiple
...
calls to the FindExternalVisibleDecls function.
FindExternalVisibleDecls was recording whether
it had found generic function symbols in variables
that were local to the function. Now, however,
multiple calls occur in response to one request
from Clang, since we may be searching across
namespaces. To support that, I moved the local
variables into a bitfield in NameSearchContext.
llvm-svn: 141808
2011-10-12 20:29:25 +00:00
Nick Lewycky
f895efaa45
Hoist vector.size() computation out of the loop. No functionality change.
...
llvm-svn: 141807
2011-10-12 20:20:48 +00:00
Ted Kremenek
c85a47724d
Add test case for __has_warning.
...
llvm-svn: 141806
2011-10-12 20:06:09 +00:00
Bob Wilson
73a4deb33d
Change __extension__ to disable only diagnostics controlled by -pedantic.
...
This changes clang to match GCC's behavior for __extension__, which temporarily
disables the -pedantic flag. Warnings that are enabled without -pedantic
are not affected. Besides the general goodness of matching GCC's precedent,
my motivation for this is that macros in the arm_neon.h header need to use
__extension__ to avoid pedantic complaints about their use of statement
expressions, yet we still want to warn about incompatible pointer arguments
for those macros.
llvm-svn: 141804
2011-10-12 19:55:31 +00:00
Rafael Espindola
2d21ab024e
Add returns_twice to functions that are known to return twice. This implements
...
the same behavior of gcc by keeping the attribute out of the function type.
llvm-svn: 141803
2011-10-12 19:51:18 +00:00
Ted Kremenek
a35d67dfd9
Implement built-in macro '__has_warning', which allows one to query if a warning flag is valid. Fixes <rdar://problem/10263428>.
...
llvm-svn: 141802
2011-10-12 19:46:30 +00:00
Douglas Gregor
205d044552
Switch diagnostic text from "C++0x" over to "C++11".
...
We'd also like for "C++11" or "c++11" to be used for the warning
groups, but without removing the old warning flags. Patches welcome;
I've run out of time to work on this today.
llvm-svn: 141801
2011-10-12 19:26:40 +00:00
Johnny Chen
de2ff3b64e
Add reference to ToT/examples/customization for more customization examples.
...
llvm-svn: 141800
2011-10-12 19:20:04 +00:00
Johnny Chen
de6ade01d0
Add an examples/customization directory and add a subdirectory pwd-cd-and-system
...
which contains the lldb init file and a utils.py Python module in order to add
the 'pwd', 'cd', and 'system' lldb commands.
llvm-svn: 141799
2011-10-12 19:16:06 +00:00
Douglas Gregor
227c352bae
We do parse hexfloats in C++11; make it actually work.
...
llvm-svn: 141798
2011-10-12 18:51:02 +00:00
Sean Callanan
1a2c5386cd
Made the expression parser's type search call the
...
proper namespace-aware APIs.
llvm-svn: 141797
2011-10-12 18:44:30 +00:00
Eric Christopher
93663b3c62
Revert file/scope handling patches. gdb testing revealed a couple of bugs.
...
llvm-svn: 141796
2011-10-12 18:39:35 +00:00
Douglas Gregor
3d68aa838b
The Objective-C rewriter uses the fragile ABI, always.
...
llvm-svn: 141795
2011-10-12 18:28:53 +00:00
Jim Grosbach
8007320902
addrmode2 is gone from these, so no need for the reg0 operand.
...
llvm-svn: 141794
2011-10-12 18:11:24 +00:00
Ted Kremenek
6effcb5082
Fix typo in name of diagnostic.
...
llvm-svn: 141793
2011-10-12 18:03:37 +00:00
Sean Callanan
4c3977c278
Added support to ClagnExpressionDeclMap for finding
...
data symbols in namespaces.
llvm-svn: 141792
2011-10-12 18:00:53 +00:00
Johnny Chen
04a101d475
Add cleanups for 'command script add' to TestCommandPython.py.
...
llvm-svn: 141790
2011-10-12 17:50:41 +00:00
Sean Callanan
25ea08ef8c
Changed FindExternalVisibleDecls() to use the module
...
level FindFunctions() where appropriate and not use
SymbolContext::FindFunctionsByName().
llvm-svn: 141789
2011-10-12 17:38:09 +00:00
Argyrios Kyrtzidis
f37d0a61c0
Handle the case where preprocessor entities are not received in order,
...
fixes http://llvm.org/PR11120
llvm-svn: 141788
2011-10-12 17:36:33 +00:00
Jim Grosbach
84cf2b8c98
ARM encoding tests for STC.
...
llvm-svn: 141787
2011-10-12 17:36:13 +00:00
Jim Grosbach
483995875f
ARM parsing and encoding for the <option> form of LDC/STC instructions.
...
llvm-svn: 141786
2011-10-12 17:34:41 +00:00
Douglas Gregor
a5542112d7
Add -std=c++11 and -std=gnu++11 language flags, from Ahmed Charles
...
llvm-svn: 141785
2011-10-12 17:32:39 +00:00
Sean Callanan
03267a7068
Oops, committed my local build settings. Fixed that.
...
llvm-svn: 141784
2011-10-12 17:08:22 +00:00
Sean Callanan
1fd3f4f14c
Made FindGlobalVariable() optionally search a specific
...
module and namespace. Also made it use FindGlobalVariables()
instead of the more heavyweight
GetVariablesForVariableExpressionPath().
llvm-svn: 141783
2011-10-12 16:59:31 +00:00
Douglas Gregor
e7a8e3b612
Introduce BalancedDelimiterTracker, to better track open/close
...
delimiter pairs and detect when we exceed the implementation limit for
nesting depth, from Aaron Ballman!
llvm-svn: 141782
2011-10-12 16:37:45 +00:00
Jim Grosbach
d74c0e7c14
80 columns.
...
llvm-svn: 141781
2011-10-12 16:36:01 +00:00
Jim Grosbach
6966411f45
Tidy up. Formatting.
...
llvm-svn: 141780
2011-10-12 16:34:37 +00:00
Dan Gohman
de239d2647
Fix a thinko that Nick noticed. The previous code actually worked as
...
intended, but only by accident.
llvm-svn: 141779
2011-10-12 15:56:56 +00:00
Douglas Gregor
6a0e23ff8b
Teach __has_nothrow_assign not to complain about access (GCC and EDG
...
ignore access entirely for it) and not to crash on assignment operator
templates. Fixes PR11110.
llvm-svn: 141777
2011-10-12 15:40:49 +00:00
NAKAMURA Takumi
9bfcf77638
lib/Object/ELFObjectFile.cpp: Fix undefined behavior for MC/ELF/many-section.s not to fail (on msvc).
...
DenseMap::lookup(k) would return "default constructor value" when k was not met. It would be useless when value type were POD.
llvm-svn: 141774
2011-10-12 10:28:55 +00:00
Jim Goodnow II
5a793d3762
Removed extra line in comment.
...
llvm-svn: 141773
2011-10-12 09:55:01 +00:00
Anton Korobeynikov
804dd056b3
Add target info for Linux on PPC & Sparc.
...
Patch by Hal Finkel!
llvm-svn: 141772
2011-10-12 09:30:58 +00:00
Argyrios Kyrtzidis
7f6b029c4e
Introduce SourceManager::getFileLoc which returns a file location
...
taking into account macro arguments.
llvm-svn: 141771
2011-10-12 07:07:40 +00:00
Argyrios Kyrtzidis
e454986617
[libclang] Allow using getDeclCursorUSR function with a Decl* and not a cursor.
...
llvm-svn: 141770
2011-10-12 07:07:36 +00:00
Argyrios Kyrtzidis
769c7bcd9a
[libclang] Make MakeCXTranslationUnit usable outside CIndex.cpp.
...
llvm-svn: 141769
2011-10-12 07:07:33 +00:00
Richard Smith
fd53aaf7e7
constexpr: don't consider class types with mutable members to be literal types.
...
The standard doesn't allow this, but mutable constexpr variables break the
semantics so badly that we can't reasonably accept them.
llvm-svn: 141768
2011-10-12 05:08:15 +00:00
Bill Wendling
918cea2c27
Expand the check for a landing pad so that it looks at the basic block's
...
containing loop's header to see if that's a landing pad. If it is, then we don't
want to hoist instructions out of the loop and above the header.
llvm-svn: 141767
2011-10-12 02:58:01 +00:00
Sean Callanan
b6d70ebc0a
Added ClangNamespaceDecl * parameters to several
...
core Module functions that the expression parser
will soon be using.
llvm-svn: 141766
2011-10-12 02:08:07 +00:00
Sean Callanan
8897224363
Cleanups in preparation for making FindExternalVisibleDecls
...
look in individual modules rather than globally.
Also some whitespace fixes.
llvm-svn: 141765
2011-10-12 01:39:28 +00:00
Johnny Chen
c79eec0c18
Add description of a more capable 'cd' command using 'command script add'.
...
llvm-svn: 141764
2011-10-12 01:28:23 +00:00
Jakob Stoklund Olesen
35163e21dc
Use an existing function.
...
llvm-svn: 141763
2011-10-12 01:24:51 +00:00
Eric Christopher
663b7f353e
Remember to set the location in EmitGlobalVariable to the current decl
...
if we're going to delete the setLocation as we did in 141732.
llvm-svn: 141762
2011-10-12 01:11:30 +00:00
Akira Hatanaka
3261c0fa6e
Define base class LogicNOR and make 32-bit and 64-bit NOR derive from it.
...
llvm-svn: 141761
2011-10-12 01:05:13 +00:00
Akira Hatanaka
c57febff4a
Fix encoding of 32-bit integer instructions. Change names of operands and nodes.
...
Remove unused classes.
llvm-svn: 141757
2011-10-12 00:56:06 +00:00
Greg Clayton
d4e2552c73
Fix preprocessor warnings for no newline at the end of the source files.
...
llvm-svn: 141755
2011-10-12 00:53:29 +00:00