platform/upstream/llvm.git
11 years agoDebug Info Verifier: simplify DIxxx::Verify
Manman Ren [Sat, 20 Jul 2013 00:38:46 +0000 (00:38 +0000)]
Debug Info Verifier: simplify DIxxx::Verify

Simplify DIxxx:Verify to not call Verify on an operand. Instead, we use
DebugInfoFinder to list all MDNodes that should be a DIScope and all MDNodes
that should be a DIType and we will call Verify on those lists.

llvm-svn: 186737

11 years agoFix size_t -> uint warnings with MSVC 64-bit build
Matt Arsenault [Sat, 20 Jul 2013 00:20:10 +0000 (00:20 +0000)]
Fix size_t -> uint warnings with MSVC 64-bit build

llvm-svn: 186736

11 years agoRefactor AnalyzeBranch on ARM. The previous version did not always analyze
Lang Hames [Fri, 19 Jul 2013 23:52:47 +0000 (23:52 +0000)]
Refactor AnalyzeBranch on ARM. The previous version did not always analyze
indirect branches correctly. Under some circumstances, this led to the deletion
of basic blocks that were the destination of indirect branches. In that case it
left indirect branches to nowhere in the code.

This patch replaces, and is more general than either of the previous fixes for
indirect-branch-analysis issues, r181161 and r186461.

For other branches (not indirect) this refactor should have *almost* identical
behavior to the previous version. There are some corner cases where this
refactor is able to analyze blocks that the previous version could not (e.g.
this necessitated the update to thumb2-ifcvt2.ll).

<rdar://problem/14464830>

llvm-svn: 186735

11 years agoRetry submitting r186623: COFFDumper: Dump data directory entries.
Rui Ueyama [Fri, 19 Jul 2013 23:23:29 +0000 (23:23 +0000)]
Retry submitting r186623: COFFDumper: Dump data directory entries.

The original change was rolled back in r186627 because of test
failures on the big endian machine. I believe I fixed the issue
so re-submitting.

llvm-svn: 186734

11 years agofix an 80-col line.
Nadav Rotem [Fri, 19 Jul 2013 23:14:01 +0000 (23:14 +0000)]
fix an 80-col line.

llvm-svn: 186733

11 years agoUse LLVMs ADTs that improve the compile time of this pass.
Nadav Rotem [Fri, 19 Jul 2013 23:12:19 +0000 (23:12 +0000)]
Use LLVMs ADTs that improve the compile time of this pass.

llvm-svn: 186732

11 years agoSLPVectorizer: Improve the compile time of isConsecutive by reordering the conditions...
Nadav Rotem [Fri, 19 Jul 2013 23:11:15 +0000 (23:11 +0000)]
SLPVectorizer: Improve the compile time of isConsecutive by reordering the conditions that check GEPs and eliminate two of the calls to accumulateConstantOffset.

llvm-svn: 186731

11 years agoFIXME fix: improving diagnostics for template arguments deduction of class templates...
Larisse Voufo [Fri, 19 Jul 2013 23:00:19 +0000 (23:00 +0000)]
FIXME fix: improving diagnostics for template arguments deduction of class templates and explicit specializations
    This patch essentially removes all the FIXMEs following calls to DeduceTemplateArguments() that want to keep track of deduction failure info.

llvm-svn: 186730

11 years agoRevert "Use function overloading instead of template specialization for diagnosis...
Larisse Voufo [Fri, 19 Jul 2013 22:53:23 +0000 (22:53 +0000)]
Revert "Use function overloading instead of template specialization for diagnosis of bad template argument deductions."

This reverts commit a730f548325756d050d4caaa28fcbffdae8dfe95.

llvm-svn: 186729

11 years agoFix pack instantiation with function types.
Eli Friedman [Fri, 19 Jul 2013 22:50:29 +0000 (22:50 +0000)]
Fix pack instantiation with function types.

Make sure we correctly expand packs which expand to another
pack in a function type.

llvm-svn: 186728

11 years agoUse function overloading instead of template specialization for diagnosis of bad...
Larisse Voufo [Fri, 19 Jul 2013 22:34:32 +0000 (22:34 +0000)]
Use function overloading instead of template specialization for diagnosis of bad template argument deductions.

llvm-svn: 186727

11 years agoCorrectly handle packs for variadic type traits.
Eli Friedman [Fri, 19 Jul 2013 21:49:32 +0000 (21:49 +0000)]
Correctly handle packs for variadic type traits.

I'm not sure how to write a test for this; the following shows the
difference in -ast-dump:

template <int x> struct A {};
template <class T> struct B { };
template <class ...Args> using C = A<(__is_trivially_constructible(Args...))>;
template <class ...Args> using D = C<B<Args>...>;

However, I can't seem to write a test that triggers a visible difference
in behavior.

llvm-svn: 186726

11 years agoR600: Don't emit empty then clause and use alu_pop_after
Vincent Lejeune [Fri, 19 Jul 2013 21:45:15 +0000 (21:45 +0000)]
R600: Don't emit empty then clause and use alu_pop_after

llvm-svn: 186725

11 years agoR600: Simplify AMDILCFGStructurize by removing templates and assuming single exit
Vincent Lejeune [Fri, 19 Jul 2013 21:45:06 +0000 (21:45 +0000)]
R600: Simplify AMDILCFGStructurize by removing templates and assuming single exit

llvm-svn: 186724

11 years agoR600: Replace legacy debug code in AMDILCFGStructurizer.cpp
Vincent Lejeune [Fri, 19 Jul 2013 21:44:56 +0000 (21:44 +0000)]
R600: Replace legacy debug code in AMDILCFGStructurizer.cpp

llvm-svn: 186723

11 years agoRemove trailing whitespace
Craig Topper [Fri, 19 Jul 2013 21:43:59 +0000 (21:43 +0000)]
Remove trailing whitespace

llvm-svn: 186722

11 years agoFix inserting new elements in a specified location.
Rafael Espindola [Fri, 19 Jul 2013 21:23:28 +0000 (21:23 +0000)]
Fix inserting new elements in a specified location.

We were only handling the 'a' and 'b' options during moves before.

llvm-svn: 186721

11 years agoAdd a cl.exe compatible driver mode
Hans Wennborg [Fri, 19 Jul 2013 20:33:20 +0000 (20:33 +0000)]
Add a cl.exe compatible driver mode

The mode doesn't actually do anything yet, but this provides a
way to get into it.

llvm-svn: 186720

11 years agoUse an i686 triple for this test now that it uses stdcall
Reid Kleckner [Fri, 19 Jul 2013 20:32:18 +0000 (20:32 +0000)]
Use an i686 triple for this test now that it uses stdcall

There seems to be a crash here if we have a calling convention attribute
that gets ignored and then we instantiate templates.

llvm-svn: 186719

11 years agoFix another place where clang check objc selector name instead of checking the select...
Jean-Daniel Dupas [Fri, 19 Jul 2013 20:25:56 +0000 (20:25 +0000)]
Fix another place where clang check objc selector name instead of checking the selector family

Summary: In ARC mode, clang emits a warning if the result of an 'init' method is unused but miss cases where the method does not follows the Cocoa naming convention but is properly declared as an init family method.

CC: cfe-commits, eli.friedman
Differential Revision: http://llvm-reviews.chandlerc.com/D1163

llvm-svn: 186718

11 years agoReworked the test decorators to match the test results on the buildbots.
Ashok Thirumurthi [Fri, 19 Jul 2013 20:22:43 +0000 (20:22 +0000)]
Reworked the test decorators to match the test results on the buildbots.

llvm-svn: 186717

11 years agoObjectiveC migrator: Another use case of enum
Fariborz Jahanian [Fri, 19 Jul 2013 20:18:36 +0000 (20:18 +0000)]
ObjectiveC migrator: Another use case of enum
declaration which can be migrated to NS_ENUM.

llvm-svn: 186716

11 years agoAdd support for raw_ostream on the printing methods of Diagnostics.
Samuel Benzaquen [Fri, 19 Jul 2013 20:02:35 +0000 (20:02 +0000)]
Add support for raw_ostream on the printing methods of Diagnostics.

Summary:
Add printToStream*(llvm::raw_ostream&) methods to Diagnostics, and reimplement everything based on streams instead of concatenating strings.
Also, fix some functions to start with lowercase to match the style guide.

Reviewers: klimek

CC: cfe-commits, revane
Differential Revision: http://llvm-reviews.chandlerc.com/D1187

llvm-svn: 186715

11 years agoCreate calling convention AttributedType sugar nodes
Reid Kleckner [Fri, 19 Jul 2013 19:51:03 +0000 (19:51 +0000)]
Create calling convention AttributedType sugar nodes

Canonical types are unchanged.  The type printer had to be changed to
avoid printing any non-default implicit calling convention as well as
the calling convention attribute.

Reviewers: rjmccall

Differential Revision: http://llvm-reviews.chandlerc.com/D1132

llvm-svn: 186714

11 years agoFix for template substitution with packs.
Eli Friedman [Fri, 19 Jul 2013 19:40:38 +0000 (19:40 +0000)]
Fix for template substitution with packs.

When we see a pack, and replace it with a template argument which is
also a pack, we want to use the pack pattern, not the expanded pack.
The caller should take care of expanding the pack afterwards.

Fixes PR16646.

llvm-svn: 186713

11 years agoAdd another link to the Python API docs.
Daniel Malea [Fri, 19 Jul 2013 19:15:45 +0000 (19:15 +0000)]
Add another link to the Python API docs.

llvm-svn: 186712

11 years agoUpdate users manual to indicate:
Richard Smith [Fri, 19 Jul 2013 19:06:48 +0000 (19:06 +0000)]
Update users manual to indicate:
  1) clang++ must be used when linking C++ programs using -fsanitize=undefined, and
  2) MSan can't be combined with TSan or ASan.

llvm-svn: 186711

11 years ago[mips] Add support for command-line options -mno-check-zero-division and
Akira Hatanaka [Fri, 19 Jul 2013 18:58:48 +0000 (18:58 +0000)]
[mips] Add support for command-line options -mno-check-zero-division and
-mcheck-zero-division.

llvm-svn: 186710

11 years ago[arcmt] After checking is successful disable auto-synthesize to avoid "@synthesize...
Argyrios Kyrtzidis [Fri, 19 Jul 2013 18:57:15 +0000 (18:57 +0000)]
[arcmt] After checking is successful disable auto-synthesize to avoid "@synthesize of 'weak' property is only
allowed in ARC" errors.

rdar://14461559

llvm-svn: 186709

11 years agoReplace some existing type attribute diagnostics with a
Aaron Ballman [Fri, 19 Jul 2013 18:53:44 +0000 (18:53 +0000)]
Replace some existing type attribute diagnostics with a
single diagnostic that selects.  No functional changes intended.

llvm-svn: 186708

11 years agoAdd SourceRange to PPCallbacks::Defined callback.
John Thompson [Fri, 19 Jul 2013 18:50:04 +0000 (18:50 +0000)]
Add SourceRange to PPCallbacks::Defined callback.

llvm-svn: 186707

11 years agoUpdated the test suite to fix xpasses on the gcc buildbot primarily due to r186347...
Ashok Thirumurthi [Fri, 19 Jul 2013 18:46:55 +0000 (18:46 +0000)]
Updated the test suite to fix xpasses on the gcc buildbot primarily due to r186347 (thanks Greg!).
Your mileage may vary depending on the gcc and stl versions in use (see llvm.org/pr15301).

llvm-svn: 186706

11 years agos/compiler_used/compiler.used/.
Rafael Espindola [Fri, 19 Jul 2013 18:44:51 +0000 (18:44 +0000)]
s/compiler_used/compiler.used/.

We were incorrectly using compiler_used instead of compiler.used. Unfortunately
the passes using the broken name had tests also using the broken name.

llvm-svn: 186705

11 years agoAdd some flag exclusion tests.
Reid Kleckner [Fri, 19 Jul 2013 18:05:13 +0000 (18:05 +0000)]
Add some flag exclusion tests.

llvm-svn: 186704

11 years ago[Option] Add inclusion and exclusion flags to option parsing
Reid Kleckner [Fri, 19 Jul 2013 18:04:57 +0000 (18:04 +0000)]
[Option] Add inclusion and exclusion flags to option parsing

Summary:
This allows the clang driver to put MSVC compatible options in the same
enumerator space as its normal options but exclude them from normal
option parsing.

Also changes the standard ParseArgs() method to consider unknown
arguments with a leading slash as being inputs rather than flags.

High level discussion for clang-cl is here:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-June/030404.html

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1049

llvm-svn: 186703

11 years agoFix source range of implicitly instantiated friend declaration.
Enea Zaffanella [Fri, 19 Jul 2013 18:02:36 +0000 (18:02 +0000)]
Fix source range of implicitly instantiated friend declaration.

llvm-svn: 186702

11 years agoFix test to actually check things.
Benjamin Kramer [Fri, 19 Jul 2013 17:49:21 +0000 (17:49 +0000)]
Fix test to actually check things.

llvm-svn: 186701

11 years agoFixes an ObjC migrator crash when last decl
Fariborz Jahanian [Fri, 19 Jul 2013 17:44:32 +0000 (17:44 +0000)]
Fixes an ObjC migrator crash when last decl
in file is an enum.

llvm-svn: 186700

11 years agoAdd links to LLDB API reference docs
Daniel Malea [Fri, 19 Jul 2013 17:33:02 +0000 (17:33 +0000)]
Add links to LLDB API reference docs

llvm-svn: 186699

11 years agoMinor typeo fixes in doc scripts
Daniel Malea [Fri, 19 Jul 2013 17:32:48 +0000 (17:32 +0000)]
Minor typeo fixes in doc scripts

llvm-svn: 186698

11 years agoAdd LLDB API reference docs (for Python and C++)
Daniel Malea [Fri, 19 Jul 2013 17:28:54 +0000 (17:28 +0000)]
Add LLDB API reference docs (for Python and C++)

llvm-svn: 186697

11 years agoThis patch implements __get_cpuid_max() as an inline and __cpuid() and
Roman Divacky [Fri, 19 Jul 2013 17:28:36 +0000 (17:28 +0000)]
This patch implements __get_cpuid_max() as an inline and __cpuid() and
__cpuid_count() as macros to be compatible with GCC's cpuid.h.  It also adds
bit_<foo> constants for the various feature bits as described in version 039
(May 2011) of Intel's SDM Volume 2 in the description of the CPUID
instruction.  The list of bit_<foo> constants is a bit exhaustive (GCC
doesn't do near this many).  More bits could be added from a newer version of
SDM if desired.

Patch by John Baldwin!

llvm-svn: 186696

11 years agolit: Support cancellation on Windows
Nico Rieck [Fri, 19 Jul 2013 17:08:08 +0000 (17:08 +0000)]
lit: Support cancellation on Windows

The current machinery using KeyboardInterrupt for canceling doesn't work
with multiple threads on Windows as it just cancels the currently run tests
but the runners continue.

We install a handler for Ctrl-C which stops the provider from providing any
more tests to the runners. Together with aborting all currently running
tests, this brings lit to a halt.

llvm-svn: 186695

11 years ago[SystemZ] Add -march= command-line option
Richard Sandiford [Fri, 19 Jul 2013 16:51:51 +0000 (16:51 +0000)]
[SystemZ] Add -march= command-line option

llvm-svn: 186694

11 years agoinclude only LLDB API in docs generated by lldb-cpp-doc (cmake) target
Daniel Malea [Fri, 19 Jul 2013 16:50:24 +0000 (16:50 +0000)]
include only LLDB API in docs generated by lldb-cpp-doc (cmake) target

llvm-svn: 186693

11 years agoAdd a line that got missed off somehow. Sorry about that!
Joey Gouly [Fri, 19 Jul 2013 16:45:16 +0000 (16:45 +0000)]
Add a line that got missed off somehow. Sorry about that!

llvm-svn: 186692

11 years agoImplement generic upsample()
Aaron Watry [Fri, 19 Jul 2013 16:44:37 +0000 (16:44 +0000)]
Implement generic upsample()

Reduces all vector upsamples down to its scalar components, so probably
not the most efficient thing in the world, but it does what the
spec says it needs to do.

Another possible implementation would be to convert/cast everything as
unsigned if necessary, upsample the input vectors, create the upsampled
value, and then cast back to signed if required.

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
llvm-svn: 186691

11 years ago[SystemZ] Add tests for ALHSIK and ALGHSIK
Richard Sandiford [Fri, 19 Jul 2013 16:44:32 +0000 (16:44 +0000)]
[SystemZ] Add tests for ALHSIK and ALGHSIK

The insn definitions themselves crept into r186689, sorry.
This should be the last of the distinct-ops instructions.

llvm-svn: 186690

11 years ago[SystemZ] Add ALRK, AGLRK, SLRK and SGLRK
Richard Sandiford [Fri, 19 Jul 2013 16:37:00 +0000 (16:37 +0000)]
[SystemZ] Add ALRK, AGLRK, SLRK and SGLRK

Follows the same lines as r186686, but much more limited, since we only
use ADD LOGICAL for multi-i64 additions.

llvm-svn: 186689

11 years ago[ARMv8] Implement the NEON instructions VRINT{N, X, A, Z, M, P}.
Joey Gouly [Fri, 19 Jul 2013 16:34:16 +0000 (16:34 +0000)]
[ARMv8] Implement the NEON instructions VRINT{N, X, A, Z, M, P}.

llvm-svn: 186688

11 years ago[SystemZ] Add AHIK and AGHIK
Richard Sandiford [Fri, 19 Jul 2013 16:32:12 +0000 (16:32 +0000)]
[SystemZ] Add AHIK and AGHIK

I did these as a separate patch because it uses a slightly different
form of RIE layout.

llvm-svn: 186687

11 years ago[SystemZ] Add ARK, AGRK, SRK and SGRK
Richard Sandiford [Fri, 19 Jul 2013 16:26:39 +0000 (16:26 +0000)]
[SystemZ] Add ARK, AGRK, SRK and SGRK

The testsuite changes follow the same lines as for r186683.

llvm-svn: 186686

11 years ago[SystemZ] Add NGRK, OGRK and XGRK
Richard Sandiford [Fri, 19 Jul 2013 16:24:22 +0000 (16:24 +0000)]
[SystemZ] Add NGRK, OGRK and XGRK

Like r186683, but for 64 bits.

llvm-svn: 186685

11 years agoInitialize TempFileHandle.
Serge Pavlov [Fri, 19 Jul 2013 16:23:54 +0000 (16:23 +0000)]
Initialize TempFileHandle.

llvm-svn: 186684

11 years ago[SystemZ] Add NRK, ORK and XRK
Richard Sandiford [Fri, 19 Jul 2013 16:21:55 +0000 (16:21 +0000)]
[SystemZ] Add NRK, ORK and XRK

The atomic tests assume the two-operand forms, so I've restricted them to z10.

Running and-01.ll, or-01.ll and xor-01.ll for z196 as well as z10 shows why
using convertToThreeAddress() is better than exposing the three-operand forms
first and then converting back to two operands where possible (which is what
I'd originally tried).  Using the three-operand form first stops us from
taking advantage of NG, OG and XG for spills.

llvm-svn: 186683

11 years agoARM: Add instruction aliases for the Thumb2 PLD/PLDW (literal) alternate form.
Tilmann Scheller [Fri, 19 Jul 2013 16:18:56 +0000 (16:18 +0000)]
ARM: Add instruction aliases for the Thumb2 PLD/PLDW (literal) alternate form.

See A8.8.127 in ARM DDI 0406C.b.

Related to <rdar://problem/14403733>.

llvm-svn: 186682

11 years ago[SystemZ] Use SLLK, SRLK and SRAK for codegen
Richard Sandiford [Fri, 19 Jul 2013 16:12:08 +0000 (16:12 +0000)]
[SystemZ] Use SLLK, SRLK and SRAK for codegen

This patch uses the instructions added in r186680 for codegen.

llvm-svn: 186681

11 years ago[SystemZ] Start adding z196 and zEC12 support
Richard Sandiford [Fri, 19 Jul 2013 16:09:03 +0000 (16:09 +0000)]
[SystemZ] Start adding z196 and zEC12 support

This first step just adds definitions for SLLK, SRLK and SRAK.
The next patch will actually make use of them during codegen.

insn-bad.s tests that some form of error is reported when using these
instructions on z10.  More work is needed to get the "instruction requires:
distinct-ops" that we'd ideally like, so I've stubbed that part out for now.
I'll come back and make it mandatory once the necessary changes are in.

llvm-svn: 186680

11 years agoSplit openFileForWrite into windows and unix versions.
Rafael Espindola [Fri, 19 Jul 2013 15:02:03 +0000 (15:02 +0000)]
Split openFileForWrite into windows and unix versions.

It is similar to 186511, but for creating files for writing.

llvm-svn: 186679

11 years agoAdd a unit test for checking that we respect the F_Binary flag.
Rafael Espindola [Fri, 19 Jul 2013 14:41:25 +0000 (14:41 +0000)]
Add a unit test for checking that we respect the F_Binary flag.

llvm-svn: 186676

11 years agoFixed some formatting issues with clang-format to get a baseline.
John Thompson [Fri, 19 Jul 2013 14:19:31 +0000 (14:19 +0000)]
Fixed some formatting issues with clang-format to get a baseline.

llvm-svn: 186675

11 years ago[SystemZ] Enable frame-pointer elimination for -O1 and above
Richard Sandiford [Fri, 19 Jul 2013 14:06:49 +0000 (14:06 +0000)]
[SystemZ] Enable frame-pointer elimination for -O1 and above

Copies the x86 behavior.

llvm-svn: 186674

11 years agoRevert r186672 - turns out ASan supports Mac OS 10.6 yet.
Alexey Samsonov [Fri, 19 Jul 2013 12:53:04 +0000 (12:53 +0000)]
Revert r186672 - turns out ASan supports Mac OS 10.6 yet.

llvm-svn: 186673

11 years ago[ASan] Reflect the dropped Mac OS 10.6 support in docs
Alexey Samsonov [Fri, 19 Jul 2013 12:33:30 +0000 (12:33 +0000)]
[ASan] Reflect the dropped Mac OS 10.6 support in docs

llvm-svn: 186672

11 years agoAllow clang tools to display an overview when using the CommonOptionsParser.
Manuel Klimek [Fri, 19 Jul 2013 12:20:59 +0000 (12:20 +0000)]
Allow clang tools to display an overview when using the CommonOptionsParser.

Patch by Guillaume Papin.

llvm-svn: 186671

11 years agoAdds overlapsWith and contains predicates on tooling::Range.
Manuel Klimek [Fri, 19 Jul 2013 12:12:36 +0000 (12:12 +0000)]
Adds overlapsWith and contains predicates on tooling::Range.

Patch by Guillaume Papin.

llvm-svn: 186670

11 years agoAdds ctorInitializer and forEachConstructorInitializer matchers.
Manuel Klimek [Fri, 19 Jul 2013 11:50:54 +0000 (11:50 +0000)]
Adds ctorInitializer and forEachConstructorInitializer matchers.

llvm-svn: 186668

11 years agoCleanup the stats counters for the new implementation. These actually
Chandler Carruth [Fri, 19 Jul 2013 10:57:36 +0000 (10:57 +0000)]
Cleanup the stats counters for the new implementation. These actually
count the right things and have the right names.

llvm-svn: 186667

11 years agoFix another assert failure very similar to PR16651's test case. This
Chandler Carruth [Fri, 19 Jul 2013 10:57:32 +0000 (10:57 +0000)]
Fix another assert failure very similar to PR16651's test case. This
test case came from Benjamin and found the parallel bug in the vector
promotion code.

llvm-svn: 186666

11 years agoStmtOpenMP.h: Prune a stray \param in the comment of OMPExecutableDirective(). [...
NAKAMURA Takumi [Fri, 19 Jul 2013 10:31:05 +0000 (10:31 +0000)]
StmtOpenMP.h: Prune a stray \param in the comment of OMPExecutableDirective(). [-Wdocumentation]

-  /// \param Clauses A list of clauses.

llvm-svn: 186665

11 years agoStmtOpenMP.h: Fix bogus \param(s). [-Wdocumentation]
NAKAMURA Takumi [Fri, 19 Jul 2013 10:30:58 +0000 (10:30 +0000)]
StmtOpenMP.h: Fix bogus \param(s). [-Wdocumentation]

llvm-svn: 186664

11 years agoARM: delete two tests now integrated into the larger files
Tim Northover [Fri, 19 Jul 2013 10:23:15 +0000 (10:23 +0000)]
ARM: delete two tests now integrated into the larger files

Somehow forgot to git rm these two files. I believe I left the remaining
invalid* tests intentionally, though whether my reasons were sound is a
different matter.

llvm-svn: 186663

11 years agoARM: remove invalid invalid tests
Tim Northover [Fri, 19 Jul 2013 10:19:56 +0000 (10:19 +0000)]
ARM: remove invalid invalid tests

The tests were checking for barriers which the ARM ARM says they must execute
as a full system DMB/DSB, rather than that they're UNDEFINED and LLVM does in
fact represent them.

The tests happened to be passing because they were using a non-versioned ARM
triple which didn't have *any* DMB/DSB instructions.

llvm-svn: 186662

11 years agoImprove llvm-mc disassembler mode and refactor ARM tests to use it
Tim Northover [Fri, 19 Jul 2013 10:05:04 +0000 (10:05 +0000)]
Improve llvm-mc disassembler mode and refactor ARM tests to use it

This allows "llvm-mc -disassemble" to accept two new features:
  + Using comma as a byte separator
  + Grouping bytes with '[' and ']' pairs.

The behaviour outside a [...] group is unchanged. But within the group once
llvm-mc encounters a true error, it stops rather than trying to resynchronise
the stream at the next byte. This is more useful for disassembly tests, where
we have an almost-instruction in mind and don't care what the misaligned
interpretation would be. Particularly if it means llvm-mc won't actually see
the next intended almost-instruction.

As a side effect, this means llvm-mc can disassemble its own -show-encoding
output if copy-pasted.

llvm-svn: 186661

11 years agoImprove clang-format vim integration.
Daniel Jasper [Fri, 19 Jul 2013 09:30:44 +0000 (09:30 +0000)]
Improve clang-format vim integration.

The previous line-by-line replacement causes vim to take a long time if
the foldmethod is set to 'syntax'. This should significantly improve
performance in that case.

llvm-svn: 186660

11 years agoTry to move to a more reasonable set of naming conventions given the new
Chandler Carruth [Fri, 19 Jul 2013 09:13:58 +0000 (09:13 +0000)]
Try to move to a more reasonable set of naming conventions given the new
implementation of the SROA algorithm. We were using the term 'partition'
in many places that no longer ever represented an actual partition, but
rather just an arbitrary slice of an alloca.

No functionality change intended here. Mostly just renaming of types,
functions, variables, and rewording of comments. Several comments were
rewritten to make a lot more sense in the new structure of things.

The stats are still weird and not reflective of how this really works.
I'll fix those up in a separate patch as it is a touch more semantic of
a change...

llvm-svn: 186659

11 years agoFix uninitialized memory read found by MemorySanitizer: always set output parameter...
Alexey Samsonov [Fri, 19 Jul 2013 08:55:18 +0000 (08:55 +0000)]
Fix uninitialized memory read found by MemorySanitizer: always set output parameter of ConvergingScheduler::SchedBoundary::getOtherResourceCount

llvm-svn: 186658

11 years agoSimplify the CodeGenFunction::Build*Virtual*Call family of functions
Timur Iskhodzhanov [Fri, 19 Jul 2013 08:14:45 +0000 (08:14 +0000)]
Simplify the CodeGenFunction::Build*Virtual*Call family of functions

llvm-svn: 186657

11 years agoA long overdue cleanup in SROA to use 'DL' instead of 'TD' for the
Chandler Carruth [Fri, 19 Jul 2013 07:21:28 +0000 (07:21 +0000)]
A long overdue cleanup in SROA to use 'DL' instead of 'TD' for the
DataLayout variables.

llvm-svn: 186656

11 years agoFix PR16651, an assert introduced in my recent re-work of the innards of
Chandler Carruth [Fri, 19 Jul 2013 07:12:23 +0000 (07:12 +0000)]
Fix PR16651, an assert introduced in my recent re-work of the innards of
SROA.

The crux of the issue is that now we track uses of a partition of the
alloca in two places: the iterators over the partitioning uses and the
previously collected split uses vector. We weren't accounting for the
fact that the split uses might invalidate integer widening in ways other
than due to their width (in this case due to being volatile).

Further reduced testcase added to the tests.

llvm-svn: 186655

11 years ago[PECOFF][Driver] Process "LINK" environment variable.
Rui Ueyama [Fri, 19 Jul 2013 05:06:20 +0000 (05:06 +0000)]
[PECOFF][Driver] Process "LINK" environment variable.

llvm-svn: 186654

11 years agoTry to appease the bots.
Manman Ren [Fri, 19 Jul 2013 04:56:51 +0000 (04:56 +0000)]
Try to appease the bots.

llvm-svn: 186653

11 years agoRemove trailing whitespace.
Craig Topper [Fri, 19 Jul 2013 04:46:31 +0000 (04:46 +0000)]
Remove trailing whitespace.

llvm-svn: 186652

11 years agoDon't use a function-scope static varaibles in
Jason Molenda [Fri, 19 Jul 2013 04:39:22 +0000 (04:39 +0000)]
Don't use a function-scope static varaibles in
RegisterContextLLDB::SavedLocationForRegister to cache the pc and
sp register numbers -- if lldb is debugging multiple Targets of
different architectures, this will be incorrect.  If these were
to be cached anywhere, it would have to be up in the Target.

llvm-svn: 186651

11 years ago[PECOFF][Driver] Add -defaultlib command line option.
Rui Ueyama [Fri, 19 Jul 2013 04:11:37 +0000 (04:11 +0000)]
[PECOFF][Driver] Add -defaultlib command line option.

llvm-svn: 186650

11 years agoRemove unnecessary IsFirst variable from debug codde in GetDiagInfo.
Craig Topper [Fri, 19 Jul 2013 03:59:51 +0000 (03:59 +0000)]
Remove unnecessary IsFirst variable from debug codde in GetDiagInfo.

llvm-svn: 186649

11 years ago[PECOFF][Driver] Interpret "LIB" environment variable.
Rui Ueyama [Fri, 19 Jul 2013 03:27:03 +0000 (03:27 +0000)]
[PECOFF][Driver] Interpret "LIB" environment variable.

llvm-svn: 186648

11 years agoOpenMP: basic support for #pragma omp parallel
Alexey Bataev [Fri, 19 Jul 2013 03:13:43 +0000 (03:13 +0000)]
OpenMP: basic support for #pragma omp parallel

llvm-svn: 186647

11 years agoTurn off fast stepping for ARM till the MC's MayAffectControlFlow gets more accurate.
Jim Ingham [Fri, 19 Jul 2013 02:18:31 +0000 (02:18 +0000)]
Turn off fast stepping for ARM till the MC's MayAffectControlFlow gets more accurate.

rdar://problem/14488761

llvm-svn: 186646

11 years ago[PECOFF] Use library search path when looking for a .lib file.
Rui Ueyama [Fri, 19 Jul 2013 02:18:25 +0000 (02:18 +0000)]
[PECOFF] Use library search path when looking for a .lib file.

llvm-svn: 186645

11 years ago[PECOFF][Driver] Add -libpath command line option.
Rui Ueyama [Fri, 19 Jul 2013 01:38:49 +0000 (01:38 +0000)]
[PECOFF][Driver] Add -libpath command line option.

The logic to search a library from the library paths will be implemented
in a different patch.

llvm-svn: 186644

11 years agollvm/test/MC/AsmParser/secure_log_unique.s: Use env(1) here. Then r186611 can be...
NAKAMURA Takumi [Fri, 19 Jul 2013 01:26:08 +0000 (01:26 +0000)]
llvm/test/MC/AsmParser/secure_log_unique.s: Use env(1) here. Then r186611 can be reverted.

llvm-svn: 186643

11 years ago[mips] Delete MFC1_FT_CCR, MTC1_FT_CCR and MOVCCRToCCR.
Akira Hatanaka [Fri, 19 Jul 2013 01:19:52 +0000 (01:19 +0000)]
[mips] Delete MFC1_FT_CCR, MTC1_FT_CCR and MOVCCRToCCR.

No functionality change.

llvm-svn: 186642

11 years agoObjectiveC migrator: add support to migrate to
Fariborz Jahanian [Fri, 19 Jul 2013 01:05:49 +0000 (01:05 +0000)]
ObjectiveC migrator: add support to migrate to
NS_OPTIONS.

llvm-svn: 186641

11 years agoAdd -help option to Darwin Driver. Use grouping in Options table to better format...
Nick Kledzik [Fri, 19 Jul 2013 01:02:49 +0000 (01:02 +0000)]
Add -help option to Darwin Driver.  Use grouping in Options table to better format help output

llvm-svn: 186640

11 years ago[analyzer] Include analysis stack in crash traces.
Jordan Rose [Fri, 19 Jul 2013 00:59:08 +0000 (00:59 +0000)]
[analyzer] Include analysis stack in crash traces.

Sample output:

0.     Program arguments: ...
1.     <eof> parser at end of file
2.     While analyzing stack:
       #0 void inlined()
       #1 void test()
3.     crash-trace.c:6:3: Error evaluating statement

llvm-svn: 186639

11 years agoUpdate createCompileUnit call for llvm changes.
Eric Christopher [Fri, 19 Jul 2013 00:51:58 +0000 (00:51 +0000)]
Update createCompileUnit call for llvm changes.

llvm-svn: 186638

11 years agoRemove DIBuilder cache of variable TheCU and change the few
Eric Christopher [Fri, 19 Jul 2013 00:51:47 +0000 (00:51 +0000)]
Remove DIBuilder cache of variable TheCU and change the few
uses that wanted it. Also change the interface for createCompileUnit
to compensate. Fix comments that refer to TheCU as well.

llvm-svn: 186637

11 years agoClarify comment for extension().
Rui Ueyama [Fri, 19 Jul 2013 00:51:17 +0000 (00:51 +0000)]
Clarify comment for extension().

llvm-svn: 186636

11 years agoMI Sched: test case fix for previous checkin.
Andrew Trick [Fri, 19 Jul 2013 00:31:31 +0000 (00:31 +0000)]
MI Sched: test case fix for previous checkin.

llvm-svn: 186635