platform/upstream/llvm.git
10 years ago[docs] Fix up some links to the preferred style.
Sean Silva [Tue, 8 Apr 2014 21:06:22 +0000 (21:06 +0000)]
[docs] Fix up some links to the preferred style.

:doc:`...` and :ref:`...` links help Sphinx keep track the dependencies
between documents and ensure that they are not pointing to nowhere.

Raw HTML links work just fine and are easier for people less familiar
with reST/Sphinx. They are easy to change over to the :doc:/:ref: style
after the fact so this is not a problem.

This commit doesn't fix all of them.

llvm-svn: 205792

10 years ago[Constant Hoisting][ARM64] Enable constant hoisting for ARM64.
Juergen Ributzka [Tue, 8 Apr 2014 20:39:59 +0000 (20:39 +0000)]
[Constant Hoisting][ARM64] Enable constant hoisting for ARM64.

This implements the target-hooks for ARM64 to enable constant hoisting.

This fixes <rdar://problem/14774662> and <rdar://problem/16381500>.

llvm-svn: 205791

10 years agoThis function should be const.
Jim Ingham [Tue, 8 Apr 2014 20:24:45 +0000 (20:24 +0000)]
This function should be const.

llvm-svn: 205790

10 years agoRegAlloc: Account for a variable entry block frequency
Duncan P. N. Exon Smith [Tue, 8 Apr 2014 19:18:56 +0000 (19:18 +0000)]
RegAlloc: Account for a variable entry block frequency

Until r197284, the entry frequency was constant -- i.e., set to 2^14.
Although current ToT still has a constant entry frequency, since r197284
that has been an implementation detail (which is soon going to change).

  - r204690 made the wrong assumption for the CSRCost metric.  Adjust
    callee-saved register cost based on entry frequency.

  - r185393 made the wrong assumption (although it was valid at the
    time).  Update SpillPlacement.cpp::Threshold to be relative to the
    entry frequency.

Since ToT still has 2^14 entry frequency, this should have no observable
functionality change.

<rdar://problem/14292693>

llvm-svn: 205789

10 years ago[PowerPC] Don't return false from PPC::isVSLDOIShuffleMask
Hal Finkel [Tue, 8 Apr 2014 19:00:27 +0000 (19:00 +0000)]
[PowerPC] Don't return false from PPC::isVSLDOIShuffleMask

PPC::isVSLDOIShuffleMask should return -1, not false, when the shuffle
predicate should be false.

Noticed by inspection; no test case (yet).

llvm-svn: 205787

10 years agoFix the GetArrayElementType() call so it will not crash when called on a non-array...
Enrico Granata [Tue, 8 Apr 2014 18:36:09 +0000 (18:36 +0000)]
Fix the GetArrayElementType() call so it will not crash when called on a non-array thing
Also, the stride is now a pointer so one can avoid passing it if it's not required

llvm-svn: 205782

10 years agoFix the funcsig test with an explicit triple
Reid Kleckner [Tue, 8 Apr 2014 18:28:09 +0000 (18:28 +0000)]
Fix the funcsig test with an explicit triple

llvm-svn: 205781

10 years agoAdd support for MSVC's __FUNCSIG__
Reid Kleckner [Tue, 8 Apr 2014 18:13:24 +0000 (18:13 +0000)]
Add support for MSVC's __FUNCSIG__

It is very similar to GCC's __PRETTY_FUNCTION__, except it prints the
calling convention.

Reviewers: majnemer

Differential Revision: http://reviews.llvm.org/D3311

llvm-svn: 205780

10 years agoFix the ARM VLD3 (single 3-element structure to all lanes)
Kevin Enderby [Tue, 8 Apr 2014 18:00:52 +0000 (18:00 +0000)]
Fix the ARM VLD3 (single 3-element structure to all lanes)
size 16 double-spaced registers instruction printing.

This:
vld3.16 {d0[], d2[], d4[]}, [r4]!

was being printed as:

vld3.16 {d0[], d1[], d2[]}, [r4]!

rdar://16531387

llvm-svn: 205779

10 years agointrin.h: Fix up bugs in the cr3 and msr intrinsics
Reid Kleckner [Tue, 8 Apr 2014 17:49:16 +0000 (17:49 +0000)]
intrin.h: Fix up bugs in the cr3 and msr intrinsics

Don't include input and output regs in clobbers.  Prefix some
identifiers with __.  Add a memory constraint to __readcr3 to prevent
reordering.  This constraint is heavy handed, but conservatively
correct.

Thanks to PaX Team for the suggestions.

llvm-svn: 205778

10 years agoVerifier: Give the right message for bad atomic loads
Duncan P. N. Exon Smith [Tue, 8 Apr 2014 17:07:44 +0000 (17:07 +0000)]
Verifier: Give the right message for bad atomic loads

Talk about load (not store) on an invalid atomic load.

<rdar://problem/16287567>

llvm-svn: 205777

10 years agoRevert r205769 as it breaks the build on FreeBSD:
Ed Maste [Tue, 8 Apr 2014 17:02:25 +0000 (17:02 +0000)]
Revert r205769 as it breaks the build on FreeBSD:

error: declaration of constexpr static data member 'spec' requires an
initializer

llvm-svn: 205776

10 years agoAdd -pass-remarks flag to 'opt'.
Diego Novillo [Tue, 8 Apr 2014 16:42:38 +0000 (16:42 +0000)]
Add -pass-remarks flag to 'opt'.

Summary:
This adds support in 'opt' to filter pass remarks emitted by
optimization passes. A new flag -pass-remarks specifies which
passes should emit a diagnostic when LLVMContext::emitOptimizationRemark
is invoked.

This will allow the front end to simply pass along the regular
expression from its own -Rpass flag when launching the backend.

Depends on D3227.

Reviewers: qcolombet

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

llvm-svn: 205775

10 years agoAdd support for optimization reports.
Diego Novillo [Tue, 8 Apr 2014 16:42:34 +0000 (16:42 +0000)]
Add support for optimization reports.

Summary:
This patch adds backend support for -Rpass=, which indicates the name
of the optimization pass that should emit remarks stating when it
made a transformation to the code.

Pass names are taken from their DEBUG_NAME definitions.

When emitting an optimization report diagnostic, the lack of debug
information causes the diagnostic to use "<unknown>:0:0" as the
location string.

This is the back end counterpart for

http://llvm-reviews.chandlerc.com/D3226

Reviewers: qcolombet

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

llvm-svn: 205774

10 years agoHave validate-system-headers override validate-once-per-build-session
Ben Langmuir [Tue, 8 Apr 2014 15:36:28 +0000 (15:36 +0000)]
Have validate-system-headers override validate-once-per-build-session

llvm-svn: 205773

10 years agoX86MCAsmInfoGNUCOFF: Set PointerSize as 8 for targeting x64. It caused DW_LNE_set_add...
NAKAMURA Takumi [Tue, 8 Apr 2014 15:28:50 +0000 (15:28 +0000)]
X86MCAsmInfoGNUCOFF: Set PointerSize as 8 for targeting x64. It caused DW_LNE_set_address was misemitted on x64.

FIXME: I haven't investigate whether CalleeSaveStackSlotSize should be 8.
llvm-svn: 205772

10 years agoAccept DWARF version 2 and 3 in debug_line tables
Ed Maste [Tue, 8 Apr 2014 15:12:07 +0000 (15:12 +0000)]
Accept DWARF version 2 and 3 in debug_line tables

Issue reported by Matthew Gardiner.  Further work is necessary to
synchronize LLDB's DWARF classes with the derivatives now in LLVM.

llvm-svn: 205771

10 years agoAdded i686 architecture (ArchSpec::Core::eCore_x86_32_i686).
Virgile Bello [Tue, 8 Apr 2014 14:48:48 +0000 (14:48 +0000)]
Added i686 architecture (ArchSpec::Core::eCore_x86_32_i686).

llvm-svn: 205770

10 years agoImprove demangler to compile with MSVC.
Virgile Bello [Tue, 8 Apr 2014 14:46:44 +0000 (14:46 +0000)]
Improve demangler to compile with MSVC.

llvm-svn: 205769

10 years agoclang-format: Fix incorrect multi-block-parameter computation.
Daniel Jasper [Tue, 8 Apr 2014 14:04:31 +0000 (14:04 +0000)]
clang-format: Fix incorrect multi-block-parameter computation.

llvm-svn: 205763

10 years agoIf a header is explicitly included in module A, and excluded from an umbrella
Richard Smith [Tue, 8 Apr 2014 13:13:04 +0000 (13:13 +0000)]
If a header is explicitly included in module A, and excluded from an umbrella
directory in module B, don't include it in module B!

llvm-svn: 205762

10 years agoclang-format: Correctly understand arrays of pointers.
Daniel Jasper [Tue, 8 Apr 2014 13:07:41 +0000 (13:07 +0000)]
clang-format: Correctly understand arrays of pointers.

Before:
  A<int * []> a;

After:
  A<int *[]> a;

This fixes llvm.org/PR19360.

llvm-svn: 205761

10 years agoclang-format: Extend AllowShortFunctions.. to only merge inline functions.
Daniel Jasper [Tue, 8 Apr 2014 12:46:38 +0000 (12:46 +0000)]
clang-format: Extend AllowShortFunctions.. to only merge inline functions.

Before AllowShortFunctionsOnASingleLine could either be true, merging
all functions, or false, merging no functions. This patch adds a third
value "Inline", which can be used to only merge short functions defined
inline in a class, i.e.:

  void f() {
    return 42;
  }

  class C {
    void f() { return 42; }
  };

llvm-svn: 205760

10 years agoOutput clang-tidy errors in a consistent order.
Alexander Kornienko [Tue, 8 Apr 2014 12:27:49 +0000 (12:27 +0000)]
Output clang-tidy errors in a consistent order.

Summary: Sort errors by path, file offset and message.

Reviewers: djasper, klimek

Reviewed By: djasper

CC: cfe-commits
Differential Revision: http://reviews.llvm.org/D3314

llvm-svn: 205759

10 years agoARM64: fix fmsub patterns which assumed accum operand was first
Tim Northover [Tue, 8 Apr 2014 12:23:51 +0000 (12:23 +0000)]
ARM64: fix fmsub patterns which assumed accum operand was first

Confusingly, the NEON fmla instructions put the accumulator first but the
scalar versions put it at the end (like the fma lib function & LLVM's
intrinsic).

This should fix PR19345, assuming there's only one issue.

llvm-svn: 205758

10 years agoPR19346: Adding 0 to a null pointer has defined behavior in C++. Allow it in constant...
Richard Smith [Tue, 8 Apr 2014 12:19:28 +0000 (12:19 +0000)]
PR19346: Adding 0 to a null pointer has defined behavior in C++. Allow it in constant expressions.

llvm-svn: 205757

10 years agoThe content of .eh_frame may be misaligned, so use memcpy. This is seen
Joerg Sonnenberger [Tue, 8 Apr 2014 11:43:49 +0000 (11:43 +0000)]
The content of .eh_frame may be misaligned, so use memcpy. This is seen
in the wild on SH3.

llvm-svn: 205756

10 years agoThe LLVM C API shouldn't be including a file from the C++ API. Especially not a
Richard Smith [Tue, 8 Apr 2014 10:47:04 +0000 (10:47 +0000)]
The LLVM C API shouldn't be including a file from the C++ API. Especially not a
file that it doesn't use.

llvm-svn: 205755

10 years agoAVX-512: Added fp_to_uint and uint_to_fp patterns.
Elena Demikhovsky [Tue, 8 Apr 2014 07:24:02 +0000 (07:24 +0000)]
AVX-512: Added fp_to_uint and uint_to_fp patterns.

llvm-svn: 205754

10 years agoFix a (legacy) PassManager crash that occurs when a ModulePass
Andrew Trick [Tue, 8 Apr 2014 03:40:34 +0000 (03:40 +0000)]
Fix a (legacy) PassManager crash that occurs when a ModulePass
indirectly requires a function analysis.

This bug was reported by Jason Kim. He included a test case here:
http://reviews.llvm.org/D3312

llvm-svn: 205753

10 years agoX86: Split the relocation selection up
David Majnemer [Tue, 8 Apr 2014 02:15:13 +0000 (02:15 +0000)]
X86: Split the relocation selection up

Before, we would have conditional operators where one side of the
operator would be of type RelocationTypeAMD64 and the other is of type
RelocationTypeI386.  GCC would noisly warn with -Wenum-compare
diagnostic.

Instead, refactor the code so it is more like the X86 ELF object writer.

llvm-svn: 205752

10 years agointrin.h: Implement __readmsr, __readcr3, and __writecr3
Reid Kleckner [Tue, 8 Apr 2014 00:28:22 +0000 (00:28 +0000)]
intrin.h: Implement __readmsr, __readcr3, and __writecr3

Fixes PR19301.

Based on a patch from Steven Graf!

llvm-svn: 205751

10 years agoFixed an issue where if you called:
Greg Clayton [Mon, 7 Apr 2014 23:50:17 +0000 (23:50 +0000)]
Fixed an issue where if you called:

SBTarget::AddModule(const char *path,
                    const char *triple,
                    const char *uuid_cstr,
                    const char *symfile);

If "symfile" was filled in, it would cause us to not correctly add the module. Same goes for:

SBTarget::AddModule(SBModuleSpec ...)

Where you filled in the symfile.

<rdar://problem/16529799>

llvm-svn: 205750

10 years agoTidy up comments a bit.
Jim Grosbach [Mon, 7 Apr 2014 23:47:23 +0000 (23:47 +0000)]
Tidy up comments a bit.

Punctuation, grammar, formatting, etc..

llvm-svn: 205749

10 years agoARM64: Range based for loop in ARM64PromoteConstant pass
Jim Grosbach [Mon, 7 Apr 2014 23:47:21 +0000 (23:47 +0000)]
ARM64: Range based for loop in ARM64PromoteConstant pass

llvm-svn: 205748

10 years agoARM64: Clean up file header comment a bit.
Jim Grosbach [Mon, 7 Apr 2014 23:14:38 +0000 (23:14 +0000)]
ARM64: Clean up file header comment a bit.

llvm-svn: 205747

10 years agoobj2yaml: Use the correct relocation type for different machine types
David Majnemer [Mon, 7 Apr 2014 23:12:20 +0000 (23:12 +0000)]
obj2yaml: Use the correct relocation type for different machine types

The IO normalizer would essentially lump I386 and AMD64 relocations
together.  Relocation types with the same numeric value would then get
mapped in appropriately.

For example:
IMAGE_REL_AMD64_ADDR64 and IMAGE_REL_I386_DIR16 both have a numeric
value of one.  We would see IMAGE_REL_I386_DIR16 in obj2yaml conversions
of object files with a machine type of IMAGE_FILE_MACHINE_AMD64.

llvm-svn: 205746

10 years agoThread Safety Analysis: various fixes to new SExpr code.
DeLesley Hutchins [Mon, 7 Apr 2014 22:56:24 +0000 (22:56 +0000)]
Thread Safety Analysis: various fixes to new SExpr code.
Implemented ownership policy, updated to use nullptr, const-cleanup.

llvm-svn: 205745

10 years ago[docs] Fix some links
Sean Silva [Mon, 7 Apr 2014 22:46:40 +0000 (22:46 +0000)]
[docs] Fix some links

The TableGen docs have changed structure

Patch by Tay Ray Chuan!

llvm-svn: 205744

10 years ago[docs] Update link title
Sean Silva [Mon, 7 Apr 2014 22:42:53 +0000 (22:42 +0000)]
[docs] Update link title

docs/TableGen/ is not really just "fundamentals" anymore, but rather
more of a portal for all things TableGen.

llvm-svn: 205743

10 years ago[docs] Fix some Sphinx warnings that have crept in.
Sean Silva [Mon, 7 Apr 2014 22:29:53 +0000 (22:29 +0000)]
[docs] Fix some Sphinx warnings that have crept in.

llvm-svn: 205742

10 years agoReverting commit r205628 due to mips64 issues.
Reed Kotler [Mon, 7 Apr 2014 22:11:40 +0000 (22:11 +0000)]
Reverting commit r205628 due to mips64 issues.

llvm-svn: 205741

10 years agoFixed a case where we could spin indefinitely if we got an error from fgets that...
Greg Clayton [Mon, 7 Apr 2014 21:37:59 +0000 (21:37 +0000)]
Fixed a case where we could spin indefinitely if we got an error from fgets that isn't EINTR.

<rdar://problem/16535437>

llvm-svn: 205740

10 years agoCleanup the code a bit.
Greg Clayton [Mon, 7 Apr 2014 21:37:03 +0000 (21:37 +0000)]
Cleanup the code a bit.

llvm-svn: 205739

10 years agoPut a limit on ScheduleDAGSDNodes::ClusterNeighboringLoads to avoid blowing up compil...
Andrew Trick [Mon, 7 Apr 2014 21:29:22 +0000 (21:29 +0000)]
Put a limit on ScheduleDAGSDNodes::ClusterNeighboringLoads to avoid blowing up compile time.

Fixes PR16365 - Extremely slow compilation in -O1 and -O2.

The SD scheduler has a quadratic implementation of load clustering
which absolutely blows up compile time for large blocks with constant
pool loads. The MI scheduler has a better implementation of load
clustering. However, we have not done the work yet to completely
eliminate the SD scheduler. Some benchmarks still seem to benefit from
early load clustering, although maybe by chance.

As an intermediate term fix, I just put a nice limit on the number of
DAG users to search before finding a match. With this limit there are no
binary differences in the LLVM test suite, and the PR16365 test case
does not suffer any compile time impact from this routine.

llvm-svn: 205738

10 years agoEarly continue to reduce nesting.
Rui Ueyama [Mon, 7 Apr 2014 21:13:33 +0000 (21:13 +0000)]
Early continue to reduce nesting.

llvm-svn: 205737

10 years agoNo else after return.
Rui Ueyama [Mon, 7 Apr 2014 21:01:11 +0000 (21:01 +0000)]
No else after return.

llvm-svn: 205736

10 years ago[ELF] Unit tests for -o and --noinhibit-exec.
Rui Ueyama [Mon, 7 Apr 2014 20:52:48 +0000 (20:52 +0000)]
[ELF] Unit tests for -o and --noinhibit-exec.

llvm-svn: 205735

10 years agoDisable JITLoaderGDB on "vendor == apple" for now due to performance slowdowns for...
Greg Clayton [Mon, 7 Apr 2014 20:13:57 +0000 (20:13 +0000)]
Disable JITLoaderGDB on "vendor == apple" for now due to performance slowdowns for every first run process as a global name lookup in all shared libraries if performed.

<rdar://problem/16542894>

llvm-svn: 205734

10 years agoThread Safety Analysis: fix warning.
DeLesley Hutchins [Mon, 7 Apr 2014 19:51:32 +0000 (19:51 +0000)]
Thread Safety Analysis: fix warning.

llvm-svn: 205733

10 years agoR600/SI: Handle INSERT_SUBREG in SIFixSGPRCopies
Tom Stellard [Mon, 7 Apr 2014 19:45:45 +0000 (19:45 +0000)]
R600/SI: Handle INSERT_SUBREG in SIFixSGPRCopies

llvm-svn: 205732

10 years agoR600: Match 24-bit arithmetic patterns in a Target DAGCombine
Tom Stellard [Mon, 7 Apr 2014 19:45:41 +0000 (19:45 +0000)]
R600: Match 24-bit arithmetic patterns in a Target DAGCombine

Moving these patterns from TableGen files to PerformDAGCombine()
should allow us to generate better code by eliminating unnecessary
shifts and extensions earlier.

This also fixes a bug where the MAD pattern was calling
SimplifyDemandedBits with a 24-bit mask on the first operand
even when the full pattern wasn't being matched.  This occasionally
resulted in some instructions being incorrectly deleted from the
program.

v2:
  - Fix bug with 64-bit mul

llvm-svn: 205731

10 years agoR600: Replace dyn_cast + assert with cast
Tom Stellard [Mon, 7 Apr 2014 19:31:13 +0000 (19:31 +0000)]
R600: Replace dyn_cast + assert with cast

llvm-svn: 205730

10 years ago-fms-extensions: Don't define __PRETTY_FUNCTION__ to __FUNCTION__
Reid Kleckner [Mon, 7 Apr 2014 19:27:58 +0000 (19:27 +0000)]
-fms-extensions: Don't define __PRETTY_FUNCTION__ to __FUNCTION__

This reverts r90596 from 2009. Having this macro definition makes Clang
strictly less useful with -fms-extensions.

llvm-svn: 205729

10 years agoThread Safety Analysis: update to internal SExpr handling.
DeLesley Hutchins [Mon, 7 Apr 2014 18:09:54 +0000 (18:09 +0000)]
Thread Safety Analysis: update to internal SExpr handling.
This patch is the first part of a significant refactoring that seeks to restore
sanity to way thread safety analysis deals with capability expressions.  The
current patch merely provides an outline of the structure of the new system.
It's not yet connected to the actual analysis, so there's no change in
functionality.

llvm-svn: 205728

10 years agoMangle the vbptr offset into pointers to member functions
Reid Kleckner [Mon, 7 Apr 2014 18:07:03 +0000 (18:07 +0000)]
Mangle the vbptr offset into pointers to member functions

This can actually be non-zero if you override a function from a virtual
base and you have forced the most_general pointer to member
representation.

llvm-svn: 205727

10 years agoRemove an unused file.
Richard Smith [Mon, 7 Apr 2014 17:17:00 +0000 (17:17 +0000)]
Remove an unused file.

Using this file would result in an odr violation: it defines an llvm::Interval
class that conflicts with the one in Analysis/Interval.h.

llvm-svn: 205726

10 years agoWhen a CHECK-NEXT fails because there was no match on the next line, include
Richard Smith [Mon, 7 Apr 2014 17:09:53 +0000 (17:09 +0000)]
When a CHECK-NEXT fails because there was no match on the next line, include
the non-matching next line in the diagnostic to make the problem more obvious.

llvm-svn: 205725

10 years agoUse std::swap
Matt Arsenault [Mon, 7 Apr 2014 16:44:26 +0000 (16:44 +0000)]
Use std::swap

llvm-svn: 205723

10 years agoUse .data() instead of &x[0]
Matt Arsenault [Mon, 7 Apr 2014 16:44:24 +0000 (16:44 +0000)]
Use .data() instead of &x[0]

llvm-svn: 205722

10 years ago[analyzer] Fix mistake in example for potential checker "posix.Errno".
Jordan Rose [Mon, 7 Apr 2014 16:36:15 +0000 (16:36 +0000)]
[analyzer] Fix mistake in example for potential checker "posix.Errno".

Found by Richard Osbourne!

llvm-svn: 205721

10 years ago[analyzer] Re-enable test I accidentally committed commented-out.
Jordan Rose [Mon, 7 Apr 2014 16:36:08 +0000 (16:36 +0000)]
[analyzer] Re-enable test I accidentally committed commented-out.

Thanks, Alex!

llvm-svn: 205720

10 years agoCorrect typo: waychpoint -> watchpoint
Ed Maste [Mon, 7 Apr 2014 16:33:53 +0000 (16:33 +0000)]
Correct typo: waychpoint -> watchpoint

llvm-svn: 205719

10 years agoRevert r205646 (keeping the test in its modified form) as
Fariborz Jahanian [Mon, 7 Apr 2014 16:32:54 +0000 (16:32 +0000)]
Revert r205646 (keeping the test in its modified form) as
it is subsumed by r205521.

llvm-svn: 205718

10 years agoFix a typo introduced in r205716
David Majnemer [Mon, 7 Apr 2014 16:19:27 +0000 (16:19 +0000)]
Fix a typo introduced in r205716

llvm-svn: 205717

10 years agoclang-cl: make /Gw map to -fdata-sections
David Majnemer [Mon, 7 Apr 2014 16:14:38 +0000 (16:14 +0000)]
clang-cl: make /Gw map to -fdata-sections

Note that /Gy no longer implies -fdata-sections.

llvm-svn: 205716

10 years agoFix clang-tidy warning (argument comments don't match parameter names).
Richard Smith [Mon, 7 Apr 2014 15:16:58 +0000 (15:16 +0000)]
Fix clang-tidy warning (argument comments don't match parameter names).

llvm-svn: 205715

10 years agolibclang: add clang_CXXMethod_isConst API that allows to determine if a C++
Dmitri Gribenko [Mon, 7 Apr 2014 14:59:13 +0000 (14:59 +0000)]
libclang: add clang_CXXMethod_isConst API that allows to determine if a C++
member function or member function template is declared 'const'

Patch by Kevin Funk with testcase updates by me.

llvm-svn: 205714

10 years agoInvert the option to enable debug info verification. No functional
Eric Christopher [Mon, 7 Apr 2014 13:55:21 +0000 (13:55 +0000)]
Invert the option to enable debug info verification. No functional
change outside of the command line to enable it.

llvm-svn: 205713

10 years agoAdd decorator for FreeBSD DynamicValueTestCase failure
Ed Maste [Mon, 7 Apr 2014 13:42:05 +0000 (13:42 +0000)]
Add decorator for FreeBSD DynamicValueTestCase failure

Not yet root-caused, but I presume it is the same issue that affects
Linux.

llvm-svn: 205712

10 years agoRevert the last couple of patches here and go back to something
Eric Christopher [Mon, 7 Apr 2014 13:36:26 +0000 (13:36 +0000)]
Revert the last couple of patches here and go back to something
that at least failed reliably.

llvm-svn: 205711

10 years agoHandle vlas during inline cost computation if they'll be turned
Eric Christopher [Mon, 7 Apr 2014 13:36:21 +0000 (13:36 +0000)]
Handle vlas during inline cost computation if they'll be turned
into a constant size alloca by inlining.

Ran a run over the testsuite, no results out of the noise, fixes
the testcase in the PR.

PR19115.

llvm-svn: 205710

10 years agoFix PR19819
Marshall Clow [Mon, 7 Apr 2014 13:32:26 +0000 (13:32 +0000)]
Fix PR19819

llvm-svn: 205709

10 years agoXFAIL this completely at the moment:
Eric Christopher [Mon, 7 Apr 2014 13:10:27 +0000 (13:10 +0000)]
XFAIL this completely at the moment:

cygwin has llvm-dwarfdump problems and isn't paying attention to the
specific xfail there.

s390x isn't matching for an unknown reason.

llvm-svn: 205708

10 years agoFix a typo in the comment.
Simon Atanasyan [Mon, 7 Apr 2014 12:59:36 +0000 (12:59 +0000)]
Fix a typo in the comment.

llvm-svn: 205707

10 years agoAdd NDEBUG markers around debug only function.
Eric Christopher [Mon, 7 Apr 2014 12:46:30 +0000 (12:46 +0000)]
Add NDEBUG markers around debug only function.

llvm-svn: 205706

10 years agoAdd debug location information to the vectorizer debug statements.
Eric Christopher [Mon, 7 Apr 2014 12:32:17 +0000 (12:32 +0000)]
Add debug location information to the vectorizer debug statements.

Patch by Zinovy Nis.

llvm-svn: 205705

10 years agoMake test run on most platforms and only fail on cygwin/mingw while
Eric Christopher [Mon, 7 Apr 2014 12:32:12 +0000 (12:32 +0000)]
Make test run on most platforms and only fail on cygwin/mingw while
it's being investigated for those.

llvm-svn: 205704

10 years agoUpdate arc config to new domain.
Manuel Klimek [Mon, 7 Apr 2014 10:23:19 +0000 (10:23 +0000)]
Update arc config to new domain.

llvm-svn: 205703

10 years agoUpdate arc config to new domain.
Manuel Klimek [Mon, 7 Apr 2014 10:22:41 +0000 (10:22 +0000)]
Update arc config to new domain.

llvm-svn: 205702

10 years agoMake docs point to new domain.
Manuel Klimek [Mon, 7 Apr 2014 10:21:33 +0000 (10:21 +0000)]
Make docs point to new domain.

llvm-svn: 205701

10 years agoRemoved 'sized deallocation' from C++14 status page since it turned out to require...
Marshall Clow [Mon, 7 Apr 2014 07:28:33 +0000 (07:28 +0000)]
Removed 'sized deallocation' from C++14 status page since it turned out to require no library work, and fixed a typo in index.html. Thanks to Tobias for pointing these out.

llvm-svn: 205700

10 years agoUse 'false' for a bool instead of '0'
Craig Topper [Mon, 7 Apr 2014 06:59:39 +0000 (06:59 +0000)]
Use 'false' for a bool instead of '0'

llvm-svn: 205699

10 years agoUpdate Phabricator server.
Rui Ueyama [Mon, 7 Apr 2014 04:52:24 +0000 (04:52 +0000)]
Update Phabricator server.

llvm-svn: 205698

10 years ago[C++11] Make use of 'nullptr' in the Support library.
Craig Topper [Mon, 7 Apr 2014 04:17:22 +0000 (04:17 +0000)]
[C++11] Make use of 'nullptr' in the Support library.

llvm-svn: 205697

10 years agoUpdated phabricator server.
Serge Pavlov [Mon, 7 Apr 2014 03:57:04 +0000 (03:57 +0000)]
Updated phabricator server.

llvm-svn: 205696

10 years agoUpdated phabricator server.
Serge Pavlov [Mon, 7 Apr 2014 03:39:55 +0000 (03:39 +0000)]
Updated phabricator server.

llvm-svn: 205695

10 years ago[ELF] Accept "-rpath=<foo>" as well as "-rpath <foo>".
Rui Ueyama [Sun, 6 Apr 2014 21:23:24 +0000 (21:23 +0000)]
[ELF] Accept "-rpath=<foo>" as well as "-rpath <foo>".

llvm-svn: 205694

10 years ago[ELF] Fix driver bug.
Rui Ueyama [Sun, 6 Apr 2014 21:15:05 +0000 (21:15 +0000)]
[ELF] Fix driver bug.

GNU LD-comptaible driver wrongly requires a space after '=' for a few
options such as "-init=<symbol>" or "-entry=<symbol>". This patch is
to fix that bug and add a few tests for it.

llvm-svn: 205693

10 years ago[ELF] Use typedefs to make class field declarations shorter.
Simon Atanasyan [Sun, 6 Apr 2014 19:44:50 +0000 (19:44 +0000)]
[ELF] Use typedefs to make class field declarations shorter.

No functional changes.

llvm-svn: 205692

10 years agoDebugInfo: Support type alias templates
David Blaikie [Sun, 6 Apr 2014 17:14:06 +0000 (17:14 +0000)]
DebugInfo: Support type alias templates

We already got the type alias correct (though I've included a test case
here) since Clang represents that like any other typedef - but type
alias templates weren't being handled.

llvm-svn: 205691

10 years agoChanges in IntelJITEventListener - By Arch Robinson
Elena Demikhovsky [Sun, 6 Apr 2014 11:08:33 +0000 (11:08 +0000)]
Changes in IntelJITEventListener - By Arch Robinson
   - take->release: LLVM has moved to C++11.  MockWrapper became an instance of unique_ptr.

   - method symbol_iterator::increment disappeared recently, in this revision:

     r200442 | rafael | 2014-01-29 20:49:50 -0600 (Wed, 29 Jan 2014) | 9 lines

Simplify the handling of iterators in ObjectFile.

None of the object file formats reported error on iterator increment. In
retrospect, that is not too surprising: no object format stores symbols or
sections in a linked list or other structure that requires chasing pointers.
As a consequence, all error checking can be done on begin() and end().

This reduces the text segment of bin/llvm-readobj in my machine from 521233 to
518526 bytes.

My change mimics the change that the revision made to lib/DebugInfo/DWARFContext.cpp .

    - const_cast: Shut up a warning from gcc.

I ran unittests/ExecutionEngine/JIT/Debug+Asserts/JITTests to make sure it worked.

- Arch

llvm-svn: 205689

10 years agoQuick fix: Triple::isOSMSVCRT() should be false for targeting cygwin.
NAKAMURA Takumi [Sun, 6 Apr 2014 10:01:23 +0000 (10:01 +0000)]
Quick fix: Triple::isOSMSVCRT() should be false for targeting cygwin.

It affected callee's stack pop in x86. It is one of devergences between cygwin and mingw since mingw-gcc-4.6.

Added testcases to llvm/test/CodeGen/X86/win32_sret.ll for cygwin.

llvm-svn: 205688

10 years ago[yaml2obj][ELF] Rename class SectionNameToIdxMap => NameToIdxMap. It can
Simon Atanasyan [Sun, 6 Apr 2014 09:02:55 +0000 (09:02 +0000)]
[yaml2obj][ELF] Rename class SectionNameToIdxMap => NameToIdxMap. It can
be used for indexing not only section's names.

No functional changes.

llvm-svn: 205687

10 years agoDebugInfo: emit namespace aliases as named imported declarations instead of named...
David Blaikie [Sun, 6 Apr 2014 06:30:03 +0000 (06:30 +0000)]
DebugInfo: emit namespace aliases as named imported declarations instead of named imported entities

Apparently that's how DWARF4 suggests they be emitted. So let's do that.

llvm-svn: 205686

10 years agoDebugInfo: Support namespace aliases as DW_TAG_imported_declaration instead of DW_TAG...
David Blaikie [Sun, 6 Apr 2014 06:29:01 +0000 (06:29 +0000)]
DebugInfo: Support namespace aliases as DW_TAG_imported_declaration instead of DW_TAG_imported_module

I really should read the spec more often (and test GCC more often too).
I just assumed that namespace aliases would be the same as using
directives, except with a name. But apparently that's not how the DWARF
standards suggests they be implemented. DWARF4 provides an example and
other non-normative text suggesting that namespace aliases be
implemented by named imported declarations intsead of named imported
modules.

So be it.

llvm-svn: 205685

10 years ago[Frontend] If the module file lock owner have died, try to get the lock again. Needs...
Argyrios Kyrtzidis [Sun, 6 Apr 2014 03:21:44 +0000 (03:21 +0000)]
[Frontend] If the module file lock owner have died, try to get the lock again. Needs llvm r205683.

llvm-svn: 205684

10 years ago[Support] Modify LockFileManager::waitForUnlock() to return info about how the lock...
Argyrios Kyrtzidis [Sun, 6 Apr 2014 03:19:31 +0000 (03:19 +0000)]
[Support] Modify LockFileManager::waitForUnlock() to return info about how the lock was released.

llvm-svn: 205683

10 years agoRemove unused parameter
David Blaikie [Sat, 5 Apr 2014 23:33:25 +0000 (23:33 +0000)]
Remove unused parameter

Also update a few null pointers in this function to be consistent with
new null pointers being added.

Patch by Robert Matusewicz!

Differential Revision: http://reviews.llvm.org/D3123

llvm-svn: 205682

10 years agoAsmParser: add a warning for compatibility parsing
Saleem Abdulrasool [Sat, 5 Apr 2014 22:42:53 +0000 (22:42 +0000)]
AsmParser: add a warning for compatibility parsing

This adds a warning when linker_private or linker_private_weak is provided and
we handle it in a compatible manner.

Suggested by Chris Lattner!

llvm-svn: 205681