Raul E. Silvera
b741b945c5
Change math intrinsic attributes from readonly to readnone. These
...
are operations that do not access memory but may be sensitive
to floating-point environment changes. LLVM does not attempt
to model FP environment changes, so this was unnecessarily conservative
and was getting on the way of some optimizations, in particular
SLP vectorization.
llvm-svn: 203037
2014-03-06 00:18:15 +00:00
Ted Kremenek
1de2e14f2f
[-Wunreachable-code] Handle idiomatic do...while() with an uninteresting condition.
...
Sometimes do..while() is used to create a scope that can be left early.
In such cases, the unreachable 'while()' test is not usually interesting
unless it actually does something that is observable.
llvm-svn: 203036
2014-03-06 00:17:44 +00:00
Greg Clayton
4b047f2378
Moved JITLoader.cpp and JITLoaderList.cpp over into "source/Target" since the header files were in "include/lldb/Target".
...
Also enabled the ELF Core file support in all builds since the header files have been properly separated from ProcessMonitor.
llvm-svn: 203035
2014-03-06 00:14:12 +00:00
NAKAMURA Takumi
5145f4c1c8
clang/test/Modules/recursive.c: Tweak expressions for win32.
...
llvm-svn: 203034
2014-03-06 00:12:04 +00:00
Eric Christopher
dd508382cc
Remove the last of the special case code for emitting attributes.
...
This works by moving the existing code into the DIEValue hierarchy
and using the DwarfDebug pointer off of the AsmPrinter to access
any global information we need.
llvm-svn: 203033
2014-03-06 00:00:56 +00:00
Eric Christopher
411bd590d1
constify a few accessors.
...
llvm-svn: 203032
2014-03-06 00:00:53 +00:00
Eric Christopher
13a1bb3720
Remove special case in the DIEValue printing since it only existed
...
for verbose asm.
llvm-svn: 203031
2014-03-06 00:00:49 +00:00
Jason Molenda
b509a414f0
Add the new JITLoader plugin files to the lldb xcode project file.
...
Add a cast for a size_t / PRIu64 printf formatter.
llvm-svn: 203030
2014-03-05 23:48:15 +00:00
Ted Kremenek
0a69cabd35
[-Wunreachable-code] generalize pruning out warning on trivial returns.
...
Previously we only pruned dead returns preceded by a call to a
'noreturn' function. After looking at the results of the LLVM codebase,
there are many others that should be pruned as well.
llvm-svn: 203029
2014-03-05 23:46:07 +00:00
Fariborz Jahanian
6766f8d23b
Objective-C. Suppress the warning for auto synthesis of property not
...
synthesizing protocol properties if class's super class
implements them. // rdar://16089191
llvm-svn: 203028
2014-03-05 23:44:00 +00:00
Ted Kremenek
21eea24d79
[-Wunreachabe-code] add test for double 'break'.
...
llvm-svn: 203027
2014-03-05 23:38:43 +00:00
Ted Kremenek
01a39b601f
[-Wunreachable-code] include some enum constants in "configuration value" heuristic
...
llvm-svn: 203026
2014-03-05 23:38:41 +00:00
Richard Smith
da3f4fd3fe
PR19010: Make sure we initialize (empty) indirect base class subobjects when
...
evaluating trivial default initialization of a literal class type.
llvm-svn: 203025
2014-03-05 23:32:50 +00:00
Ted Kremenek
760a2acbb5
Fix recursion bug in logic to validate 'objc_protocol_requires_explicit_implementation' conformance.
...
llvm-svn: 203024
2014-03-05 23:18:22 +00:00
Rui Ueyama
ad807658ea
Attempt to unbreak little-endian buildbots.
...
llvm-svn: 203023
2014-03-05 23:03:37 +00:00
Richard Smith
a13f8ae84e
DR status page: add link targets for individual DRs, and link duplicates.
...
llvm-svn: 203022
2014-03-05 23:02:47 +00:00
Richard Smith
faf156ad15
Tests for DR370-380.
...
Also promote a couple of Warnings on ill-formed code found by this testing to
ExtWarns.
llvm-svn: 203021
2014-03-05 22:54:58 +00:00
Jack Carter
6b9cf961bd
[Mips] Testcase typo fix. No functionality change.
...
llvm-svn: 203020
2014-03-05 22:54:56 +00:00
Rafael Espindola
9251c42f72
Now that we don't use libtool, we don't need to upgrade it :-)
...
Thanks to Patrik Hägglund H for noticing it!
llvm-svn: 203019
2014-03-05 22:45:14 +00:00
Eric Christopher
a27220fb8c
Add a DIELocList class to handle pointers into the location list.
...
This enables us to figure out where in the debug_loc section our
locations are so that we can eventually hash them. It also helps
remove some special case code in emission. No functional change.
llvm-svn: 203018
2014-03-05 22:41:20 +00:00
Rui Ueyama
3e37326166
Add a document about Windows support.
...
llvm-svn: 203017
2014-03-05 22:35:32 +00:00
Ted Kremenek
3cdbc39a6e
[-Wunreachable-code] generalize configuration value checking to all comparison operators.
...
llvm-svn: 203016
2014-03-05 22:32:39 +00:00
Hal Finkel
6a56b21729
With PPC CR bit registers, handle int_to_fp on older cores
...
On cores without fpcvt support, we cannot promote int_to_fp i1 operations,
because there is nothing to promote them to. The most straightforward
implementation of this uses a select to choose between the two possible
resulting floating-point values (and that's what is done here).
llvm-svn: 203015
2014-03-05 22:14:00 +00:00
Aaron Ballman
4853a10e57
Updating this test case to appease build bots which support ANSI escape sequences (unlike my dev box).
...
llvm-svn: 203014
2014-03-05 21:59:02 +00:00
Matt Arsenault
ca6dcfcf59
Fix typo
...
llvm-svn: 203013
2014-03-05 21:47:22 +00:00
Aaron Ballman
6c8100748f
Capabilities are required to pass a name specifying what type of capability is being annotated. There are currently only two supported names: mutex and role. Adding functionality to check for the capability name and diagnose when it's unexpected.
...
Note that for backwards compatibility, an unnamed capability will default to being a "mutex." This allows the deprecated lockable attribute to continue to function.
llvm-svn: 203012
2014-03-05 21:47:13 +00:00
JF Bastien
d44807ca67
Fix datalayout test that I broke with my previous LinkModules warning improvement.
...
llvm-svn: 203011
2014-03-05 21:37:08 +00:00
Ben Langmuir
9385323747
Attempt to re-enable the VFS unittests on Windows
...
Using a //net/ path to hopefully avoid problems with non-absolute paths
on Windows.
llvm-svn: 203010
2014-03-05 21:32:20 +00:00
JF Bastien
026fc5f6ab
Improve LinkModules warnings
...
Provide triple and data layout as well as module names (or empty string) when there's a mismatch.
Differential Revision: http://llvm-reviews.chandlerc.com/D2971
llvm-svn: 203009
2014-03-05 21:26:42 +00:00
Arnold Schwaighofer
ab12363c02
LoopVectorizer: Preserve fast-math flags
...
Fixes PR19045.
llvm-svn: 203008
2014-03-05 21:10:47 +00:00
Rafael Espindola
191b95125a
Don't produce an alias between destructors with different calling conventions.
...
Fixes pr19007.
llvm-svn: 203007
2014-03-05 21:04:41 +00:00
Richard Smith
7bea1d42d8
When building a module from the command line via -emit-module, add an entry to
...
the module build stack for the module being built, so we can correctly detect
recursive module builds.
llvm-svn: 203006
2014-03-05 20:55:36 +00:00
Richard Smith
8c71eba19f
If a #include finds a file relative to the current file, don't forget to check
...
whether it's part of a module.
llvm-svn: 203005
2014-03-05 20:51:45 +00:00
Rui Ueyama
b63570ecb6
Fix broken link.
...
llvm-svn: 203004
2014-03-05 20:39:57 +00:00
Rui Ueyama
746c915c9d
Visual Studio 11 = VS2012
...
llvm-svn: 203003
2014-03-05 20:36:07 +00:00
Nico Weber
fcf6128c71
Mention clang-cl in MSVCCompatibility.rst
...
llvm-svn: 203002
2014-03-05 20:18:59 +00:00
Rafael Espindola
8377085657
Always print the implicit .text at the start of an asm file.
...
Before llvm-mc would print it, but llc was assuming that it would produce
another section changing directive before one was needed. That assumption is
false with inline asm.
Fixes PR19049.
Another option would be to always create the section, but in the asm printer
avoid printing sections changes during initialization. That would work, but
* We do use the fact that llvm-mc prints it in testing. The tests can be changed
if needed.
* A quick poll on IRC suggest that most developers prefer the implicit .text to
be printed.
llvm-svn: 203001
2014-03-05 20:09:15 +00:00
Rafael Espindola
1368f8ac96
Update for llvm change.
...
llvm-svn: 203000
2014-03-05 20:08:57 +00:00
Ben Langmuir
8d11639612
Fix an inconsistency in treatment of trailing / in path::const_iterator
...
When using a //net/ path, we were transforming the trailing / into a '.'
when the path was just the root path and we were iterating backwards.
Forwards iteration and other kinds of root path (C:\, /) were already
correct.
llvm-svn: 202999
2014-03-05 19:56:30 +00:00
Rui Ueyama
d6ad741e5e
Add "override" to member functions where appropriate.
...
llvm-svn: 202998
2014-03-05 19:50:03 +00:00
Benjamin Kramer
061d147f74
ConstantFolding: Also fold the vector overloads of our math intrinsics.
...
llvm-svn: 202997
2014-03-05 19:41:48 +00:00
Cameron McInally
791ae9927c
Lower AVX v4i64->v4i32 truncate to one shuffle.
...
llvm-svn: 202996
2014-03-05 19:41:16 +00:00
Argyrios Kyrtzidis
f8d46fb6eb
[code-completion] Add a couple of test cases suggested by Jordan, and a FIXME.
...
llvm-svn: 202995
2014-03-05 19:10:31 +00:00
Marshall Clow
78a87e8a68
Implement LWG 2193. Default constructors for standard library containers are explicit. Note that libc++ already did this for string/deque/forward_list/list/vector and the unordered containers; implement it for set/multiset/map/multimap. Add tests for all the containers. Two drive-by fixes as well: add a missing explicit in <deque>, and remove a tab that snuck into a container test. This issue is also LLVM bug 15724, and resolves it.
...
llvm-svn: 202994
2014-03-05 19:06:20 +00:00
David Majnemer
f27217ffaf
AST: Remove layering violation with Sema
...
Scope lives in Sema and cannot be used in AST. Shuffle things around.
llvm-svn: 202993
2014-03-05 18:55:38 +00:00
David Blaikie
7f4a52eaee
Fix clang -Werror build break due to mismatched sign comparison.
...
Originally committed in r202985.
llvm-svn: 202992
2014-03-05 18:53:36 +00:00
Marshall Clow
28eded3845
Mark is_final as a C++14 feature.
...
llvm-svn: 202991
2014-03-05 17:58:48 +00:00
Marshall Clow
f2c10e1340
Remove definition of std::fmaf from libc++. Fixes bug #18910 . This function should come from the C standard library. As a drive-by fix, update the tests to remove a warning from -Wabsolute-value
...
llvm-svn: 202990
2014-03-05 17:09:51 +00:00
Aaron Ballman
8f1439bd0c
[C++11] Using std::unique_ptr to ensure that Argument objects do not leak (since clang-tblgen isn't long-lived, the old leak is probably acceptable, but it offended my senses nonetheless).
...
llvm-svn: 202989
2014-03-05 16:49:55 +00:00
Hans Wennborg
928fb264a5
Work around MSVC bug in IntrusiveRefCntPtr.h
...
The build was failing with:
error C2664: 'std::atomic_int::atomic_int(const std::atomic_int &)' : cannot convert argument 1 from 'int' to 'const std::atomic_int &'
Apparently "std::atomic_int x(0)" doesn't work, but "std::atomic<int> x(0)"
does.
llvm-svn: 202988
2014-03-05 16:26:04 +00:00