Evgeniy Stepanov
94dc4c9783
Define __ANDROID__ macro on -androideabi targets.
...
llvm-svn: 155632
2012-04-26 12:08:09 +00:00
Manuel Klimek
18ac56bc0f
Adds a tutorial on how to write RAV based ASTFrontendActions.
...
llvm-svn: 155631
2012-04-26 08:49:54 +00:00
Tim Northover
3de97b7a86
Use VLD1 in NEON extenting-load patterns instead of VLDR.
...
On some cores it's a bad idea for performance to mix VFP and NEON instructions
and since these patterns are NEON anyway, the NEON load should be used.
llvm-svn: 155630
2012-04-26 08:46:29 +00:00
Manuel Klimek
34e0f6cba2
Reverted unintentional commit.
...
llvm-svn: 155629
2012-04-26 08:46:12 +00:00
Simon Atanasyan
2be62257a8
MIPS: Add tests to check the debian multiarch stuff for mips and mipsel targets.
...
llvm-svn: 155628
2012-04-26 08:35:58 +00:00
Manuel Klimek
c01d3fbe0f
Adds a small tutorial on how to write RAV based ASTFrontendActions.
...
llvm-svn: 155627
2012-04-26 08:35:39 +00:00
Tim Northover
6699a60b0e
Test commit.
...
llvm-svn: 155626
2012-04-26 08:24:07 +00:00
Jay Foad
4d5e6cf906
Fix errors when building with GCC 4.6.1 -std=c++0x, which requires
...
"friend class Foo;" instead of just friend Foo;".
llvm-svn: 155625
2012-04-26 07:37:08 +00:00
Craig Topper
5f365e94c3
Enable AVX/AVX2 for Sandy Bridge, Ivy Bridge, and Haswell CPUs.
...
llvm-svn: 155624
2012-04-26 07:31:30 +00:00
Ted Kremenek
2fda5a1e90
Update checker build link, and remove stale links.
...
llvm-svn: 155622
2012-04-26 07:29:14 +00:00
Richard Smith
72249ba945
PR12647: An alias template instantiation which occurs in a SFINAE context is
...
itself a SFINAE context.
llvm-svn: 155621
2012-04-26 07:24:08 +00:00
Craig Topper
08ccfbe57b
Enable detection of AVX and AVX2 support through CPUID. Add AVX/AVX2 to corei7-avx, core-avx-i, and core-avx2 cpu names.
...
llvm-svn: 155618
2012-04-26 06:40:15 +00:00
Jason Molenda
fc6a17b0a8
Add an Error string specifically for when we hit an ENOMEM when
...
trying to mmap a file fails so parent caller function can
provide helpful information to use about what went wrong.
llvm-svn: 155617
2012-04-26 06:39:51 +00:00
Chandler Carruth
739ef80fd7
Teach the reassociate pass to fold chains of multiplies with repeated
...
elements to minimize the number of multiplies required to compute the
final result. This uses a heuristic to attempt to form near-optimal
binary exponentiation-style multiply chains. While there are some cases
it misses, it seems to at least a decent job on a very diverse range of
inputs.
Initial benchmarks show no interesting regressions, and an 8%
improvement on SPASS. Let me know if any other interesting results (in
either direction) crop up!
Credit to Richard Smith for the core algorithm, and helping code the
patch itself.
llvm-svn: 155616
2012-04-26 05:30:30 +00:00
Ted Kremenek
468365b6be
[analyzer] check lazy bindings in RegionStore first before looking for default values. Fixes <rdar://problem/11269741>.
...
llvm-svn: 155615
2012-04-26 05:08:26 +00:00
Ted Kremenek
01d152f43f
Teach RetainCountChecker that it doesn't quite understand pthread_setspecific and it should just give up when it sees it. Fixes <rdar://problem/11282706>.
...
llvm-svn: 155613
2012-04-26 04:32:23 +00:00
Richard Smith
359087cade
PR12660: Don't crash when initializing a const reference from a braced init list
...
which creates a temporary by calling a constructor.
llvm-svn: 155608
2012-04-26 03:16:45 +00:00
Chandler Carruth
3634c66b41
Fix a long-standing bug where Clang had a different default from GCC on
...
Linux and other (non-Darwin) platforms and have it use -fmath-errno by
default (for better or worse).
Darwin has seen the light here and uses -fno-math-errno by default, this
patch preserves that.
If any maintainers for a non-Linux platform would also like to opt-in to
-fno-math-errno by default, I'm happy to add folks, but we're currently
getting buts and misleading comparisons with GCC due to this difference
in behavior on Linux at least.
llvm-svn: 155607
2012-04-26 02:10:51 +00:00
Richard Smith
bc8c5b5d67
Two missing -Wc++98-compat warnings, for null pointers as non-type template
...
arguments, and 'this' in exception-specifications.
llvm-svn: 155606
2012-04-26 01:51:03 +00:00
Enrico Granata
73076f9269
Automatically enabling the Cocoa formatter categories for command-line LLDB. Previously, the categories were filled in but disabled by default. Tweaking test cases appropriately to keep working and do the right thing
...
llvm-svn: 155605
2012-04-26 01:40:38 +00:00
Evan Cheng
8a8e9d1b63
Specify cpu to unbreak tests.
...
llvm-svn: 155604
2012-04-26 01:38:10 +00:00
Rafael Espindola
4c3db23d1c
Reject cases like
...
struct __attribute__((visibility("hidden"))) a;
struct __attribute__((visibility("default"))) b;
which gcc already rejects.
llvm-svn: 155603
2012-04-26 01:26:03 +00:00
Evan Cheng
9f7ad310b5
If triple is armv7 / thumbv7 and a CPU is specified, do not automatically assume
...
the feature set of v7a. This comes about if the user specifies something like
-arch armv7 -mcpu=cortex-m3. We shouldn't be generating instructions such as
uxtab in this case.
rdar://11318438
llvm-svn: 155601
2012-04-26 01:13:36 +00:00
Greg Clayton
83b6fabdf7
<rdar://problem/11271074>
...
<rdar://problem/11285931>
Use the DWARRF end prologue markers when trying to skip prologue instructions instead of blindly using the second line table address entry.
llvm-svn: 155600
2012-04-26 01:01:34 +00:00
Bill Wendling
0156f44a68
Don't forget to reset 'first operand' flag when we're setting the MDNodeOperand value.
...
llvm-svn: 155599
2012-04-26 00:38:42 +00:00
Richard Smith
6ca73133ca
If a type is non-literal by virtue of being incomplete produce notes
...
explaining that.
llvm-svn: 155598
2012-04-25 23:23:48 +00:00
Richard Smith
f333acd686
RecursiveASTVisitor: When in 'shouldVisitTemplateInstantiations' mode, visit
...
all instantiations of a template when we visit the canonical declaration of the
primary template, rather than trying to match them up to the partial
specialization from which they are instantiated. This fixes a bug where we
failed to visit instantiations of partial specializations of member templates of
class templates, and naturally extends to allow us to visit instantiations where
we have instantiated only a declaration.
llvm-svn: 155597
2012-04-25 22:57:25 +00:00
Chad Rosier
e38c006049
Typo.
...
llvm-svn: 155596
2012-04-25 22:51:41 +00:00
Greg Clayton
da91b17bc7
Patch from Viktor Kutuzov: changes the method declarations to const for the Args::GetCommandString and Agrs::GetQuotedCommandString methods. It allows using of these methods within the other const methods.
...
llvm-svn: 155593
2012-04-25 22:30:32 +00:00
Greg Clayton
4f76fef267
Make the libheap.dylib build into a consistent temp directory so it can be reused between lldb invocations. Also add the module name into the directory path that is used to store the target triple specific build of libheap.dylib.
...
Also added code that will rebuild libheap.dylib if heap_find.cpp is newer that libheap.dylib.
llvm-svn: 155590
2012-04-25 21:23:07 +00:00
Jakob Stoklund Olesen
6eeeb7e19c
Try to fix llvm-arm-linux builder with -mcpu.
...
llvm-svn: 155589
2012-04-25 21:22:33 +00:00
Gabor Greif
c52fc9e073
fix some typos and punctuation
...
llvm-svn: 155588
2012-04-25 21:09:37 +00:00
Preston Gurd
82cac0acc0
Trivial change to make the test use -mcpu=generic so as to avoid
...
a failure if run on an Intel Atom with post RA instruction scheduling.
llvm-svn: 155587
2012-04-25 21:04:54 +00:00
Enrico Granata
de93b6b42f
Fixing a typo in the NSArray data formatter
...
llvm-svn: 155586
2012-04-25 20:59:02 +00:00
Fariborz Jahanian
94ee181e08
objective-c modern translator: more tests.
...
llvm-svn: 155585
2012-04-25 20:48:00 +00:00
Michael J. Spencer
aa53d680bb
[docs] Minor spelling fix. Thanks Gabor!
...
llvm-svn: 155581
2012-04-25 19:59:06 +00:00
Kaelyn Uhrain
76e07347ba
Add an error message with fixit hint for changing '.' to '->'.
...
This is mainly for attempting to recover in cases where a class provides
a custom operator-> and a '.' was accidentally used instead of '->' when
accessing a member of the object returned by the current object's
operator->.
llvm-svn: 155580
2012-04-25 19:49:54 +00:00
Jim Ingham
e5b2245d68
Make sure the end of the first line is still within the function, and if not, don't push the prologue past it.
...
rdar://problem/11271074
llvm-svn: 155579
2012-04-25 19:48:30 +00:00
Michael J. Spencer
365f1ec246
[docs] Add getting started guide.
...
llvm-svn: 155578
2012-04-25 19:34:24 +00:00
Greg Clayton
d712ef0fd7
Remove the "-x" from the finish-swig-Python-LLDB.sh shell options so it doesn't print out all of the commands when executing the shell script.
...
Cleaned up the lldb.utils.symbolication, lldb.macosx.heap and lldb.macosx.crashlog. The lldb.macosx.heap can now build a dylib for the current triple into a temp directory and use it from there.
llvm-svn: 155577
2012-04-25 18:40:20 +00:00
Argyrios Kyrtzidis
6fe744cc38
When resolving default template arguments, it should be done in the declaration context
...
of the template what we are going to instantiate.
Fixes various crashes of rdar://11242625 & http://llvm.org/PR11421 .
llvm-svn: 155576
2012-04-25 18:39:17 +00:00
Richard Smith
1ad04d95bc
PR12625: Cope with classes which have incomplete base or member types:
...
Don't try to query whether an incomplete type has a trivial copy constructor
when determining whether a move constructor should be declared.
llvm-svn: 155575
2012-04-25 18:28:49 +00:00
Benjamin Kramer
2823f58038
Use a SmallMap for StoredDeclsMap, it's usually sparsely populated so we can avoid initializing memory for 64 buckets.
...
llvm-svn: 155571
2012-04-25 18:21:27 +00:00
Benjamin Kramer
4f947ff10b
Convert a std::map that usually has between 0 and 10 elements to SmallMap.
...
llvm-svn: 155570
2012-04-25 18:21:21 +00:00
Fariborz Jahanian
78731c7098
improve a modern objc translator test.
...
llvm-svn: 155569
2012-04-25 18:11:57 +00:00
Benjamin Kramer
31f2704a3d
Reapply the SmallMap patch with a fix.
...
Comparing ~0UL with an unsigned will always return false when long is 64 bits long.
llvm-svn: 155568
2012-04-25 18:01:58 +00:00
Jakob Stoklund Olesen
293673d788
Print IV chain numbers while collecting them.
...
llvm-svn: 155567
2012-04-25 18:01:32 +00:00
Jakob Stoklund Olesen
01f201f484
Remove more dead code.
...
llvm-svn: 155566
2012-04-25 18:01:30 +00:00
Richard Barton
ba5b0cc82e
Unify internal representation of ARM instructions with a register right-shifted by #32 . These are stored as shifts by #0 in the MCInst and correctly marshalled when transforming from or to assembly representation.
...
llvm-svn: 155565
2012-04-25 18:00:18 +00:00
Fariborz Jahanian
e49a42cae9
modern objc rewriter: fixes a bug writing
...
a const qualified static c-function.
// rdar://11314329
llvm-svn: 155564
2012-04-25 17:56:48 +00:00