Anton Korobeynikov
1f3bc9b5e6
Fix imm printing for logical instructions.
...
Patch by Brian G. Lucas!
llvm-svn: 124679
2011-02-01 20:22:53 +00:00
Anton Korobeynikov
3e956af404
Document the LLVM GIT mirror
...
llvm-svn: 124677
2011-02-01 20:08:28 +00:00
Argyrios Kyrtzidis
582dd68541
For "if ((a == b))" only warn if 'a' is a modifiable l-value. Caught by John!
...
llvm-svn: 124675
2011-02-01 19:32:59 +00:00
Argyrios Kyrtzidis
15a3daa189
[analyzer] Slightly improve the diagnostic message of ObjCSelfInitChecker.
...
llvm-svn: 124674
2011-02-01 19:32:55 +00:00
Douglas Gregor
b278aafbfb
Allocate CodeCompletionString and all of its components in a
...
BumpPtrAllocator, rather than manually new/delete'ing them. This
optimization also allows us to avoid allocating memory for and copying
constant strings (e.g., "return", "class").
This also required embedding the priority and availability of results
within the code completion string, to avoid extra memory allocation
within libclang.
llvm-svn: 124673
2011-02-01 19:23:04 +00:00
David Greene
433c6180ab
[AVX] Implement EnforceSmallerThan for mixed int/fp type lists. This
...
makes type checking for extract_subvector and insert_subvector more
robust and will allow stricter typechecking of more patterns in the
future.
This change handles int and fp as disjoint sets so that it will
enforce integer types to be smaller than the largest integer type and
fp types to be smaller than the largest fp type. There is no attempt
to check type sizes across the int/fp sets.
llvm-svn: 124672
2011-02-01 19:12:32 +00:00
Johnny Chen
2684ccccda
Remove the 'lldb_private::' namespace resolution operator.
...
llvm-svn: 124671
2011-02-01 18:51:48 +00:00
Johnny Chen
3d9011d6dd
Add EmulateVPOP() to the g_arm_opcodes and g_thumb_opcodes tables, which represents
...
an operation to load multiple extension registers from the stack.
llvm-svn: 124670
2011-02-01 18:35:28 +00:00
Argyrios Kyrtzidis
8b6ec6870f
Warn for "if ((a == b))" where the equality expression is needlessly wrapped inside parentheses.
...
It's highly likely that the user intended an assignment used as condition.
Addresses rdar://8848646.
llvm-svn: 124668
2011-02-01 18:24:22 +00:00
Ted Kremenek
5b4288440d
Add temporary hack to -Wuninitialize to create a separate CFG (for C++ code) that doesn't include implicit dtors.
...
Implicit dtors confuse the ad hoc path-sensitivity of UninitializedValuesV2.cpp. This isn't
the ideal solution, as it will directly impact compile time, but should significantly reduce
the noise of -Wuninitialized on some code bases.
This immediately "fixes" the false positive reported in PR 9063, although this
isn't the right fix in the long run.
llvm-svn: 124667
2011-02-01 17:43:21 +00:00
Ted Kremenek
ba357296e7
Enhance -Wuninitialized to better reason about || and &&, tracking dual dataflow facts and properly merging them.
...
Fixes PR 9076.
llvm-svn: 124666
2011-02-01 17:43:18 +00:00
Devang Patel
9a8539c4d9
Remove stale references of obsolete @llvm.dbg.variable.
...
llvm-svn: 124664
2011-02-01 17:22:12 +00:00
Douglas Gregor
fa7781384e
Implement access checking for the "delete" operator. Fixes PR9050,
...
from Alex Miller!
llvm-svn: 124663
2011-02-01 15:50:11 +00:00
Douglas Gregor
1732850158
Fix a thinko where I didn't update a consistency check for
...
PackExpansionType in the AST reader. We need more testing for variadic
templates + PCH, but this fixes PR9073.
llvm-svn: 124662
2011-02-01 15:24:58 +00:00
Douglas Gregor
dbe3927026
Basic support for -mms-bitfields, from Carl Norum!
...
llvm-svn: 124661
2011-02-01 15:15:22 +00:00
Douglas Gregor
de7a357a30
Support EFI target triple, from Carl Norum!
...
llvm-svn: 124660
2011-02-01 15:06:18 +00:00
Jay Foad
142777224c
Make SwitchInst::removeCase() more efficient.
...
llvm-svn: 124659
2011-02-01 09:22:34 +00:00
Greg Clayton
69c6bc7a9f
A missed endian fix for the linux register context for x86_64.
...
llvm-svn: 124658
2011-02-01 09:20:26 +00:00
Duncan Sands
a29ea9aa4c
Add a m_Undef pattern for convenience. This is so that code that uses
...
pattern matching can also pattern match undef, creating a more uniform
style.
llvm-svn: 124657
2011-02-01 09:06:20 +00:00
Duncan Sands
4b397fcdc2
Add a m_SignBit pattern for convenience.
...
llvm-svn: 124656
2011-02-01 08:50:33 +00:00
Duncan Sands
cf0ff030a8
Have m_One also match constant vectors for which every element is 1.
...
llvm-svn: 124655
2011-02-01 08:39:12 +00:00
John McCall
9361be98d5
Make that test case actually test something, and add another test.
...
llvm-svn: 124654
2011-02-01 08:30:38 +00:00
John McCall
04fcd0d58f
The code trying to assign a typedef to an anonymous tag declaration was
...
extremely rambunctious, both on parsing and on template instantiation.
Calm it down, fixing an internal consistency assert on anonymous enum
instantiation manglings.
llvm-svn: 124653
2011-02-01 08:20:08 +00:00
Carl Norum
ecd90b5946
Test commit - fix a double 'should' in a comment.
...
llvm-svn: 124652
2011-02-01 07:38:42 +00:00
Rafael Espindola
88ea6ab44f
Revert 124633. The linker has been told how to merge available_externally.
...
llvm-svn: 124651
2011-02-01 05:45:26 +00:00
Rafael Espindola
4a9b18d07b
Correctly merge available_externally and regular definitions when they have
...
different visibilities.
llvm-svn: 124650
2011-02-01 05:33:52 +00:00
Greg Clayton
9b62fd2fda
Added a cleanup helper object to make sure the directory that was opened with "DIR *opendir(const char *)" is closed if it is valid with a call to "int closedir (DIR *)".
...
llvm-svn: 124649
2011-02-01 05:15:22 +00:00
Greg Clayton
293d593294
Added a cleanup helper object to make sure the directory that was opened with "DIR *opendir(const char *)" is closed if it is valid with a call to "int closedir (DIR *)".
...
llvm-svn: 124648
2011-02-01 05:15:02 +00:00
Ken Dyck
49916d786a
Correct units in doxygen comment for NonVirtualSize.
...
llvm-svn: 124647
2011-02-01 02:03:12 +00:00
Ken Dyck
316d6f69bc
Convert RecordLayout::NonVirtualSize from bit units to CharUnits.
...
llvm-svn: 124646
2011-02-01 01:52:10 +00:00
Evan Cheng
dfc85ed01e
Fix bogus assert condition noticed by Csaba Raduly.
...
llvm-svn: 124645
2011-02-01 01:50:49 +00:00
Greg Clayton
f03bbe2661
Added EmulateIntruction plug-in manager support.
...
llvm-svn: 124644
2011-02-01 01:37:45 +00:00
Greg Clayton
7fb56d0a1a
Endian patch from Kirk Beitz that allows better cross platform building.
...
llvm-svn: 124643
2011-02-01 01:31:41 +00:00
Johnny Chen
a1c833769e
Add TestVirtual.py to go with test/cpp/virtual/main.cpp file, which tests
...
C++ virtual function and virtual inheritance.
llvm-svn: 124642
2011-02-01 01:23:34 +00:00
Eric Christopher
46308e666a
Reapply 124275 since the Dragonegg failure was unreproducible.
...
llvm-svn: 124641
2011-02-01 01:16:32 +00:00
Evan Cheng
2ea68db927
Fix test for non-darwin targets.
...
llvm-svn: 124640
2011-02-01 01:16:18 +00:00
Evan Cheng
d22a4a1fd6
Patches to build EFI with Clang/LLVM. By Carl Norum.
...
llvm-svn: 124639
2011-02-01 01:14:13 +00:00
Greg Clayton
c4a99bc416
Patch from Kirk Beitz that removes an unneeded include of "sys/errno.h".
...
llvm-svn: 124638
2011-02-01 01:13:32 +00:00
Argyrios Kyrtzidis
0d349f9b8a
When initializing struct members, the important thing is that the "initializing" expression is
...
compatible, not having the same type.
Fix rdar://8183908 in which compatible vector types weren't initialized properly leading to a crash.
llvm-svn: 124637
2011-02-01 00:52:10 +00:00
Greg Clayton
c46f94d490
Cleaned up the EmulateInstructionARM to have the evaluate instruction
...
callbacks use member functions.
llvm-svn: 124636
2011-02-01 00:49:32 +00:00
Devang Patel
1c0eec5cfb
Remove stale test that has never worked, afaik.
...
llvm-svn: 124635
2011-02-01 00:47:16 +00:00
Rafael Espindola
08bccdad19
Don't tell the linker about available_externally definitions. If we do, it will
...
complain about duplicated definitions.
llvm-svn: 124634
2011-02-01 00:41:51 +00:00
Rafael Espindola
9fa5a67d3d
Set visibility for available_externally globals. This is important for two reasons:
...
* llvm-link would complains about mismatched visibility
* If we produce a relocation with an available_externally, it is good to know that
it is hidden.
llvm-svn: 124633
2011-02-01 00:37:17 +00:00
John McCall
4fff8f6cff
Perform the bad-address-space conversions check as part of
...
CheckPointerTypesForAssignment.
llvm-svn: 124632
2011-02-01 00:10:29 +00:00
Greg Clayton
c1dfd93e1e
Made the EmulateInstruction class into a plug-in interface and moved the
...
source files around into the places they need to go.
llvm-svn: 124631
2011-02-01 00:04:43 +00:00
Argyrios Kyrtzidis
b5b5a59f18
Improve the diagnostic for -Wcustom-atomic-properties. Suggestion by Fariborz!
...
llvm-svn: 124620
2011-01-31 23:20:03 +00:00
Greg Clayton
c30c39982d
Added a virtual C++ test case that catches some interesting cases
...
that you run into with inheritance.
llvm-svn: 124619
2011-01-31 23:14:35 +00:00
John McCall
aba9082f0f
Make Check*PointerTypesForAssignment private and tell them that they're
...
working on canonical types already.
llvm-svn: 124618
2011-01-31 23:13:11 +00:00
Johnny Chen
2a183f836c
Add emulate_pop (loads multiple registers from the stack) entries to both the
...
g_arm_opcodes and g_thumb_opcodes tables.
Plus a minor comment fix for EmulateInstruction.h.
llvm-svn: 124617
2011-01-31 23:07:40 +00:00
Douglas Gregor
86af98444f
Harden Lexer::GetBeginningOfToken() against bogus source locations and
...
the disappearance/alteration of files.
llvm-svn: 124616
2011-01-31 22:42:36 +00:00