Nick Lewycky
c186d07bbe
Continue counting intrinsics as instructions (except when they aren't, such as
...
debug info) and for being vector operations. Fixes regression from r147037.
llvm-svn: 147093
2011-12-21 20:26:03 +00:00
Nick Lewycky
281e2747e0
Fix typo and spacing, no functionality change.
...
llvm-svn: 147092
2011-12-21 20:21:55 +00:00
Argyrios Kyrtzidis
e5cdd080ba
In Lexer::getCharAndSizeSlow[NoWarn] make sure we don't go over the end of the buffer
...
when the end of the buffer is immediately after an escaped newline.
Fixes http://llvm.org/PR10153 .
llvm-svn: 147091
2011-12-21 20:19:55 +00:00
Jakub Staszak
df5133455f
- Change a few operator[] to lookup which is cheaper.
...
- Add some constantness.
llvm-svn: 147090
2011-12-21 20:18:54 +00:00
Lang Hames
e49fbd0755
Oops - LiveIntervalUnion.cpp file does use std::find. Moving STL header include to LiveIntervalUnion.cpp file.
...
llvm-svn: 147089
2011-12-21 20:16:11 +00:00
Lang Hames
93176d72e7
Remove disused STL header include.
...
llvm-svn: 147088
2011-12-21 20:12:54 +00:00
Rafael Espindola
f61ff34252
Switch from WriteEFlags to getEFlags in preparation for moving it
...
to Target/.
llvm-svn: 147087
2011-12-21 20:09:46 +00:00
Johnny Chen
4b730a73a2
Fix wrong test method name.
...
llvm-svn: 147072
2011-12-21 19:56:51 +00:00
Jakob Stoklund Olesen
3588a43e3a
Move common code into an MRI function.
...
llvm-svn: 147071
2011-12-21 19:50:05 +00:00
Fariborz Jahanian
a4b2a86353
objc, objc rewriter. Fixes couple of bugs one
...
because of recent refactoring and one in the
rewriter.
llvm-svn: 147070
2011-12-21 19:48:07 +00:00
Jim Grosbach
c80a264386
ARM NEON assmebly parsing for VLD2 to all lanes instructions.
...
llvm-svn: 147069
2011-12-21 19:40:55 +00:00
Ted Kremenek
1a7648b666
Improve CFG pretty-printing for CXXConstructExprs.
...
llvm-svn: 147068
2011-12-21 19:39:59 +00:00
Matt Beaumont-Gay
4a39e49373
Cast enumerators from different anonymous enums to unsigned, to appease gcc
...
llvm-svn: 147067
2011-12-21 19:36:37 +00:00
Ted Kremenek
0ffba93e51
Improve CFG pretty-printing of CastExprs.
...
llvm-svn: 147066
2011-12-21 19:32:38 +00:00
Chad Rosier
3ede414127
No case stmt for BUILD_VECTOR in PerformDAGCombine(), so I assume this isn't
...
necessary. Please chime in if I'm mistaken.
llvm-svn: 147065
2011-12-21 19:14:52 +00:00
Chad Rosier
7248bda595
Fix a couple of copy-n-paste bugs. Noticed by George Russell!
...
llvm-svn: 147064
2011-12-21 18:56:22 +00:00
Manuel Klimek
25eb0ac418
Changes the JSON parser to use the SourceMgr.
...
Diagnostics are now emitted via the SourceMgr and we use MemoryBuffer
for buffer management. Switched the code to make use of the trailing
'0' that MemoryBuffer guarantees where it makes sense.
llvm-svn: 147063
2011-12-21 18:16:39 +00:00
Sean Callanan
9b5eaa07e9
Updating Xcode project version numbers for lldb-99 and debugserver-158
...
llvm-svn: 147061
2011-12-21 18:02:24 +00:00
Rafael Espindola
b264d33854
Move the X86 specific bits of the ELF writer to the Target/X86 directory.
...
Other targets will follow shortly.
llvm-svn: 147060
2011-12-21 17:30:17 +00:00
Rafael Espindola
1ad4095d6b
Reduce the exposure of Triple::OSType in the ELF object writer. This will
...
avoid including ADT/Triple.h in many places when the target specific bits are
moved.
llvm-svn: 147059
2011-12-21 17:00:36 +00:00
Argyrios Kyrtzidis
c09b854f6b
[libclang] In visitPreprocessedEntitiesInRange we are interested in a file region
...
so translate the range to file locations.
llvm-svn: 147058
2011-12-21 16:56:38 +00:00
Argyrios Kyrtzidis
e841c901de
Fix bugs in SourceManager::computeMacroArgsCache() and add a unit test for it.
...
llvm-svn: 147057
2011-12-21 16:56:35 +00:00
Argyrios Kyrtzidis
2403797eec
For SourceManager::isBeforeInTranslationUnit(), have it consider macro arg expanded
...
token locations as coming before the closing ')' of a function macro expansion.
Include a unit test for SourceManager.
llvm-svn: 147056
2011-12-21 16:56:29 +00:00
Douglas Gregor
596b7cbc19
Implement a trivial, obvious optimization for deserialization of
...
redeclaration chains: only ever have the reader search for
redeclarations of the first (canonical) declaration, since we only
ever record redeclaration ranges for the that declaration. Searching
for redeclarations of non-canonical declarations will never find
anything, so it's a complete waste of time.
llvm-svn: 147055
2011-12-21 15:12:03 +00:00
Rafael Espindola
46f0c15208
Add const.
...
llvm-svn: 147054
2011-12-21 14:48:04 +00:00
Rafael Espindola
9e252bf038
Small refactoring so that RelocNeedsGOT can stay in the target independent
...
side when the target specific bits are moved to the Target directory.
llvm-svn: 147053
2011-12-21 14:26:29 +00:00
Manuel Klimek
b761ff3e24
Removes unused field TheError from LLLexer.
...
llvm-svn: 147049
2011-12-21 10:02:45 +00:00
Craig Topper
a73baa8050
Add a few more AVX2 intrinsics and fix the type strings on a couple SSE intrinsics.
...
llvm-svn: 147048
2011-12-21 08:35:05 +00:00
Craig Topper
3fe5ac40db
Add AVX2 horizontal add/sub intrinsics.
...
llvm-svn: 147047
2011-12-21 08:17:40 +00:00
Craig Topper
b8b1b4c1de
Remove mode specific disassembler classes and just call X86GenericDisassembler constructor with appropriate argument in the creation functions. This removes a few tables that needed to be anchored.
...
llvm-svn: 147046
2011-12-21 08:06:52 +00:00
Craig Topper
f30188418b
Fix typo in a couple comments
...
llvm-svn: 147045
2011-12-21 06:30:53 +00:00
Nick Lewycky
da22fc6a1d
A call to a function marked 'noinline' is not an inline candidate. The sole
...
call site of an intrinsic is also not an inline candidate. While here, make it
more obvious that this code ignores all intrinsics. Noticed by inspection!
llvm-svn: 147037
2011-12-21 06:06:30 +00:00
Nick Lewycky
b4039f633c
Make some intrinsics safe to speculatively execute.
...
llvm-svn: 147036
2011-12-21 05:52:02 +00:00
Richard Smith
f2b681b4d8
constexpr: diagnostic improvements for invalid lvalue-to-rvalue conversions in
...
constant expressions.
llvm-svn: 147035
2011-12-21 05:04:46 +00:00
Nick Lewycky
f243e0df95
Bump suitable alignment on darwin ppc 32/64 and x86-32 to 16 bytes. I don't
...
actually know about the other OSes on X86-32 besides Linux...
llvm-svn: 147034
2011-12-21 04:25:47 +00:00
Jason Molenda
0ffc16cef3
Bump version number past lldb-98.
...
llvm-svn: 147033
2011-12-21 03:14:42 +00:00
Evan Cheng
dc8a1aaea6
Fix a couple of copy-n-paste bugs. Noticed by George Russell.
...
llvm-svn: 147032
2011-12-21 03:04:10 +00:00
Richard Smith
242ad89a15
C++11 half of r147023: In C++11, additionally eagerly instantiate:
...
- constexpr function template instantiations
- variables of reference type
- constexpr variables
llvm-svn: 147031
2011-12-21 02:55:12 +00:00
Eli Friedman
b9ccd553fc
Attempt to fix test on 32-bit hosts.
...
llvm-svn: 147030
2011-12-21 01:57:31 +00:00
Sean Callanan
febbd63db1
Tightened Clang against a bug in which RecordDecls
...
with incomplete definition data were being converted.
Now Clang attempts to complete RecordDecls before
converting them, avoiding a nasty crash.
llvm-svn: 147029
2011-12-21 01:47:05 +00:00
Jim Grosbach
7de7ab83fa
ARM assembly parsing allows constant expressions for lane indices.
...
llvm-svn: 147028
2011-12-21 01:19:23 +00:00
Eric Christopher
afbe7520a6
Regenerate.
...
llvm-svn: 147027
2011-12-21 00:52:44 +00:00
Eli Friedman
13ec75ba42
Fix a case where Expr::isConstantInitializer would return true for an expression we can't support. In a slightly amusing twist, the case in question was already in the clang regression tests marked as a valid construct. <rdar://problem/10020074>
...
llvm-svn: 147026
2011-12-21 00:43:02 +00:00
Jim Grosbach
c5af54ec89
ARM NEON VLD2 assembly parsing for structure to all lanes, non-writeback.
...
llvm-svn: 147025
2011-12-21 00:38:54 +00:00
Akira Hatanaka
964c891e61
Fix bug in zero-store peephole pattern reported in pr11615.
...
The patch and test case were originally written by Mans Rullgard.
llvm-svn: 147024
2011-12-21 00:31:10 +00:00
Richard Smith
ed2974f3cf
C++ constant expression handling: eagerly instantiate static const integral data
...
members of class templates so that their values can be used in ICEs. This
required reverting r105465, to get such instantiated members to be included in
serialized ASTs.
llvm-svn: 147023
2011-12-21 00:25:33 +00:00
Akira Hatanaka
1d8efaba7e
Expand 64-bit CTLZ nodes if target architecture does not support it. Add test
...
case for DCLO and DCLZ.
llvm-svn: 147022
2011-12-21 00:20:27 +00:00
Akira Hatanaka
410ce9cb44
Expand 64-bit CTPOP and CTTZ.
...
llvm-svn: 147021
2011-12-21 00:14:05 +00:00
Fariborz Jahanian
13d08955ea
objc QOI: Don't't warn about mismatch between attributes
...
on method declaration and definition if former is in
a system header. // rdar://10580333
llvm-svn: 147020
2011-12-21 00:09:11 +00:00
Akira Hatanaka
91c052c4d8
Expand 64-bit atomic load and store.
...
llvm-svn: 147019
2011-12-21 00:02:58 +00:00