platform/upstream/llvm.git
10 years agoAdd extern template instantiations of llvm::Calculate.
Rafael Espindola [Fri, 14 Feb 2014 22:36:16 +0000 (22:36 +0000)]
Add extern template instantiations of llvm::Calculate.

This should be a small build time improvement in general and fixes
the build on OS X with -DBUILD_SHARED_LIBS=ON.

The issue is that not all users are including GenericDomTreeConstruction.h,
causing undefined references when ld64 managed to hide the
linkonce_odr symbols.

llvm-svn: 201440

10 years ago[CodeGenPrepare][AddressingModeMatcher] Give up on type promotion if the
Quentin Colombet [Fri, 14 Feb 2014 22:23:22 +0000 (22:23 +0000)]
[CodeGenPrepare][AddressingModeMatcher] Give up on type promotion if the
transformation does not bring any immediate benefits and introduce an illegal
operation.

llvm-svn: 201439

10 years agoFix crash-on-invalid if decltype(auto) is used as a deduced return type in
Richard Smith [Fri, 14 Feb 2014 22:17:32 +0000 (22:17 +0000)]
Fix crash-on-invalid if decltype(auto) is used as a deduced return type in
C++11 mode. Continue to disallow return type deduction in C++11 for now.

llvm-svn: 201438

10 years agoConsistently print anonymous namespace names as "<anonymous namespace>"
David Blaikie [Fri, 14 Feb 2014 22:12:54 +0000 (22:12 +0000)]
Consistently print anonymous namespace names as "<anonymous namespace>"

For some reason we have two bits of code handling this printing:

lib/AST/Decl.cpp:        OS << "<anonymous namespace>";
lib/AST/TypePrinter.cpp:      OS << "<anonymous namespace>::";

it would be nice if we only had one...

llvm-svn: 201437

10 years agoPrint anonymous namespaces as <anonymous namespace> instead of <anonymous>
David Blaikie [Fri, 14 Feb 2014 22:12:51 +0000 (22:12 +0000)]
Print anonymous namespaces as <anonymous namespace> instead of <anonymous>

llvm-svn: 201436

10 years agoAllow FreeBSD/i386 core files to be loaded
Ed Maste [Fri, 14 Feb 2014 21:57:27 +0000 (21:57 +0000)]
Allow FreeBSD/i386 core files to be loaded

llvm-svn: 201435

10 years agoCorrect offset calculation for FreeBSD i386 core NT_PRSTATUS
Ed Maste [Fri, 14 Feb 2014 21:29:05 +0000 (21:29 +0000)]
Correct offset calculation for FreeBSD i386 core NT_PRSTATUS

llvm-svn: 201434

10 years agoTargetLowering: n * r where n > 2 should be an illegal addressing mode
Tom Stellard [Fri, 14 Feb 2014 21:10:34 +0000 (21:10 +0000)]
TargetLowering: n * r where n > 2 should be an illegal addressing mode

llvm-svn: 201433

10 years agoRemove myself as owner of libc++
Howard Hinnant [Fri, 14 Feb 2014 21:09:01 +0000 (21:09 +0000)]
Remove myself as owner of libc++

llvm-svn: 201432

10 years agoAdd generic nvptx targets
Tom Stellard [Fri, 14 Feb 2014 20:33:53 +0000 (20:33 +0000)]
Add generic nvptx targets

These do not import the code specific to nvidiacl

Patch by: Jeroen Ketema

llvm-svn: 201431

10 years agoRemove unused #include
Eli Bendersky [Fri, 14 Feb 2014 20:15:56 +0000 (20:15 +0000)]
Remove unused #include

llvm-svn: 201430

10 years agoDebugInfo: Don't include the name of the CU file in the line table file list when...
David Blaikie [Fri, 14 Feb 2014 19:51:35 +0000 (19:51 +0000)]
DebugInfo: Don't include the name of the CU file in the line table file list when it's unneeded

Recommitting r201380 (reverted in r201389)
Recommitting r201351 and r201355 (reverted in r201351 and r201355)

We weren't emitting the an empty (header only) line table when the line
table was empty - this made the DWARF invalid (the compile unit would
point to the zero-size debug_lines section where there should've been an
empty line table but there was nothing at all). Fix that, and as a
consequence this works around/addresses PR18809.

Also, we emit a non-empty line table to workaround a darwin linker bug,
so XFAILing on darwin too.

Also, mark the test as 'REQUIRES: object-emission' because it does.

llvm-svn: 201429

10 years ago[IRGen]. Fixes a crash in using Objective-C array
Fariborz Jahanian [Fri, 14 Feb 2014 19:37:25 +0000 (19:37 +0000)]
[IRGen]. Fixes a crash in using Objective-C array
properties by fixing shouldBindAsLValue to accept arrays
(like record types) because we always manipulate
them in memory. Patch suggested by John MaCall.
// rdar://15610943

llvm-svn: 201428

10 years agoSupport DWARF discriminators in object streamer.
Diego Novillo [Fri, 14 Feb 2014 19:27:53 +0000 (19:27 +0000)]
Support DWARF discriminators in object streamer.

Summary:
This adds support for emitting DWARF path discriminator values in
the object streamer. It also changes the DWARF dumper to show
discriminator values in the line table output.

Reviewers: echristo

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

llvm-svn: 201427

10 years agoThis patch has two main functions:
Reed Kotler [Fri, 14 Feb 2014 19:16:39 +0000 (19:16 +0000)]
This patch has two main functions:

1) Fix a specific bug when certain conversion functions are called in a program compiled as mips16 with hard float and
the program is linked as c++. There are two libraries that are reversed in the link order with gcc/g++ and clang/clang++ for
mips16 in this case and the proper stubs will then not be called. These stubs are normally handled in the Mips16HardFloat pass
but in this case we don't know at that time that we need to generate the stubs. This must all be handled later in code generation
and we have moved this functionality to MipsAsmPrinter. When linked as C (gcc or clang) the proper stubs are linked in from libc.

2) Set up the infrastructure to handle 90% of what is in the Mips16HardFloat pass in this new area of MipsAsmPrinter. This is a more
logical place to handle this and we have known for some time that we needed to move the code later and not implement it using
inline asm as we do now but it was not clear exactly where to do this and what mechanism should be used. Now it's clear to us
how to do this and this patch contains the infrastructure to move most of this to MipsAsmPrinter but the actual moving will be done
in a follow on patch. The same infrastructure is used to fix this current bug as described in #1. This change was requested by the list
during the original putback of the Mips16HardFloat pass but was not practical for us do at that time.

llvm-svn: 201426

10 years agoTrivial cleanup: reuse existing variable.
Rafael Espindola [Fri, 14 Feb 2014 19:02:01 +0000 (19:02 +0000)]
Trivial cleanup: reuse existing variable.

Extracted while trying to understand http://llvm-reviews.chandlerc.com/D1764.

Patch by Matt Arsenault.

llvm-svn: 201425

10 years agoclang-format: Fix formatting of class template declaration.
Daniel Jasper [Fri, 14 Feb 2014 18:22:40 +0000 (18:22 +0000)]
clang-format: Fix formatting of class template declaration.

Before:
  template <class R, class C>
  struct Aaaaaaaaaaaaaaaaa<R (C::*)(int)
                           const> : Aaaaaaaaaaaaaaaaa<R (C::*)(int)> {};

After:
  template <class R, class C>
  struct Aaaaaaaaaaaaaaaaa<R (C::*)(int) const>
      : Aaaaaaaaaaaaaaaaa<R (C::*)(int)> {};

llvm-svn: 201424

10 years agoGenerate the DWARF stack frame decode operations in the function prologue for ARM...
Artyom Skrobov [Fri, 14 Feb 2014 17:19:07 +0000 (17:19 +0000)]
Generate the DWARF stack frame decode operations in the function prologue for ARM/Thumb functions.

Patch by Keith Walker!

llvm-svn: 201423

10 years agoAdjust logging test case after r201372
Ed Maste [Fri, 14 Feb 2014 16:06:35 +0000 (16:06 +0000)]
Adjust logging test case after r201372

The final "HandleCommand, command succeeded" for "log disable lldb"
doesn't make it to the log file before the command takes effect.

llvm-svn: 201422

10 years agoLSan: Print warning about dynamic linker only in verbose mode
Alexey Samsonov [Fri, 14 Feb 2014 15:12:46 +0000 (15:12 +0000)]
LSan: Print warning about dynamic linker only in verbose mode

llvm-svn: 201421

10 years ago[asan] Replace posix_memalign with memalign in test.
Evgeniy Stepanov [Fri, 14 Feb 2014 15:02:36 +0000 (15:02 +0000)]
[asan] Replace posix_memalign with memalign in test.

Android does not provide posix_memalign.

llvm-svn: 201420

10 years agoIf the headermap maps the filename to a framework include ("Foo.h" -> "Foo/Foo.h"),
Argyrios Kyrtzidis [Fri, 14 Feb 2014 14:58:28 +0000 (14:58 +0000)]
If the headermap maps the filename to a framework include ("Foo.h" -> "Foo/Foo.h"),
continue header lookup using the framework include as filename.

This allows us to conveniently treat
  #import "Foo.h"
as an implicit module import if we can resolve "Foo/Foo.h" as such.

rdar://16042979

llvm-svn: 201419

10 years agoUpdate decorators for tests that still fail with FreeBSD Watchpoint support
Ed Maste [Fri, 14 Feb 2014 14:52:10 +0000 (14:52 +0000)]
Update decorators for tests that still fail with FreeBSD Watchpoint support

llvm.org/pr18832

Reported by John Wolfe

llvm-svn: 201418

10 years ago[ASan] Rename asan_runtime_libraries to asan. Re-enable tests on Android.
Alexey Samsonov [Fri, 14 Feb 2014 14:45:13 +0000 (14:45 +0000)]
[ASan] Rename asan_runtime_libraries to asan. Re-enable tests on Android.

llvm-svn: 201417

10 years ago[asan] Disabled one more test on Android.
Evgeniy Stepanov [Fri, 14 Feb 2014 14:37:13 +0000 (14:37 +0000)]
[asan] Disabled one more test on Android.

llvm-svn: 201416

10 years ago[asan] Change stack uar test to not use ulimit.
Evgeniy Stepanov [Fri, 14 Feb 2014 14:36:42 +0000 (14:36 +0000)]
[asan] Change stack uar test to not use ulimit.

Because of how Android test runner is implemented, ulimit in RUN: line
gets executed on the host machine and does not affect the test.

llvm-svn: 201415

10 years agoMove TSan lit-tests under test/tsan
Alexey Samsonov [Fri, 14 Feb 2014 14:35:48 +0000 (14:35 +0000)]
Move TSan lit-tests under test/tsan

llvm-svn: 201414

10 years agoMove ASan lit-tests under test/asan
Alexey Samsonov [Fri, 14 Feb 2014 14:06:10 +0000 (14:06 +0000)]
Move ASan lit-tests under test/asan

llvm-svn: 201413

10 years agoMove MSan lit-tests under test/msan
Alexey Samsonov [Fri, 14 Feb 2014 13:02:58 +0000 (13:02 +0000)]
Move MSan lit-tests under test/msan

llvm-svn: 201412

10 years ago[asan] Revert r201402, r201404.
Evgeniy Stepanov [Fri, 14 Feb 2014 12:37:41 +0000 (12:37 +0000)]
[asan] Revert r201402, r201404.

Test fails in bootstrap build.

llvm-svn: 201411

10 years ago[sanitizer] Fix getpwuid_r (and similar) interceptors missing one of the arguments.
Evgeniy Stepanov [Fri, 14 Feb 2014 12:32:15 +0000 (12:32 +0000)]
[sanitizer] Fix getpwuid_r (and similar) interceptors missing one of the arguments.

llvm-svn: 201410

10 years agoRemove empty directories
Alexey Samsonov [Fri, 14 Feb 2014 12:28:05 +0000 (12:28 +0000)]
Remove empty directories

llvm-svn: 201409

10 years agoMove LSan test suite under test/
Alexey Samsonov [Fri, 14 Feb 2014 12:26:05 +0000 (12:26 +0000)]
Move LSan test suite under test/

llvm-svn: 201408

10 years ago[tsan] rudimentary support for deadlock detector in tsan (nothing really works yet...
Kostya Serebryany [Fri, 14 Feb 2014 12:20:42 +0000 (12:20 +0000)]
[tsan] rudimentary support for deadlock detector in tsan (nothing really works yet except for a single tiny test). Also rename tsan's DeadlockDetector to InternalDeadlockDetector

llvm-svn: 201407

10 years agoDelete LSan unit tests
Alexey Samsonov [Fri, 14 Feb 2014 12:13:59 +0000 (12:13 +0000)]
Delete LSan unit tests

llvm-svn: 201406

10 years ago[sanitizer] add iterators to bit vectors; make bit vector operations use little stack...
Kostya Serebryany [Fri, 14 Feb 2014 12:08:23 +0000 (12:08 +0000)]
[sanitizer] add iterators to bit vectors; make bit vector operations use little stack; add common flag 'detect_deadlocks'

llvm-svn: 201405

10 years ago[asan] Disable assembly on windows.
Evgeniy Stepanov [Fri, 14 Feb 2014 12:07:22 +0000 (12:07 +0000)]
[asan] Disable assembly on windows.

llvm-svn: 201404

10 years agoMove DFSan test suite under test/
Alexey Samsonov [Fri, 14 Feb 2014 12:05:41 +0000 (12:05 +0000)]
Move DFSan test suite under test/

llvm-svn: 201403

10 years ago[asan] Added assembly functions for x86/amd64 asan.
Evgeniy Stepanov [Fri, 14 Feb 2014 11:55:53 +0000 (11:55 +0000)]
[asan] Added assembly functions for x86/amd64 asan.

These are runtime support functions for inline assembly instrumentation.

Patch by Yuri Gorshenin.

llvm-svn: 201402

10 years agoMove UBSan test suite under test/
Alexey Samsonov [Fri, 14 Feb 2014 11:42:22 +0000 (11:42 +0000)]
Move UBSan test suite under test/

llvm-svn: 201401

10 years ago[sanitizer] Use mmap to zero-fill large shadow regions.
Evgeniy Stepanov [Fri, 14 Feb 2014 11:41:26 +0000 (11:41 +0000)]
[sanitizer] Use mmap to zero-fill large shadow regions.

This is covered by existing ASan test.
This does not change anything for TSan by default (but provides a flag to
change the threshold size).
Based on a patch by florent.bruneau here:
  https://code.google.com/p/address-sanitizer/issues/detail?id=256

llvm-svn: 201400

10 years agoMove shared configs for lit test suites to test/ and unittests/ directories
Alexey Samsonov [Fri, 14 Feb 2014 11:00:07 +0000 (11:00 +0000)]
Move shared configs for lit test suites to test/ and unittests/ directories

llvm-svn: 201399

10 years agoRemove empty directory
Alexey Samsonov [Fri, 14 Feb 2014 09:50:48 +0000 (09:50 +0000)]
Remove empty directory

llvm-svn: 201398

10 years ago[msan] Replicate mmap-below-shadow check in mmap64 interceptor.
Evgeniy Stepanov [Fri, 14 Feb 2014 09:49:29 +0000 (09:49 +0000)]
[msan] Replicate mmap-below-shadow check in mmap64 interceptor.

llvm-svn: 201397

10 years agoMove tests for BlocksRuntime and builtins to corresponding directories under test/
Alexey Samsonov [Fri, 14 Feb 2014 09:47:31 +0000 (09:47 +0000)]
Move tests for BlocksRuntime and builtins to corresponding directories under test/

llvm-svn: 201396

10 years ago[AArch64 NEON] Fix a bug to avoid using floating type as condition type in lowering...
Kevin Qin [Fri, 14 Feb 2014 09:41:15 +0000 (09:41 +0000)]
[AArch64 NEON] Fix a bug to avoid using floating type as condition type in lowering SELECT_CC.

llvm-svn: 201395

10 years ago[asan] Android test runner for ASan lit tests.
Evgeniy Stepanov [Fri, 14 Feb 2014 09:22:10 +0000 (09:22 +0000)]
[asan] Android test runner for ASan lit tests.

This change replaces 32- and 64- bit config.in-s with a single config template
that is used to generate both 32 and 64 bits configs as well as the new
arm-android config. Arm-android config is special because it can run tests on
a remote device over adb (android debug bridge).

We replace %clang with a script that run the compiler, upload the result to
the device, and replaces it with another script. The second script runs the
binary on the device and delivers stdout/stderr/exitcode back.

llvm-svn: 201394

10 years agoMove original compiler-rt functions (libgcc replacement) to lib/builtins directory
Alexey Samsonov [Fri, 14 Feb 2014 09:20:33 +0000 (09:20 +0000)]
Move original compiler-rt functions (libgcc replacement) to lib/builtins directory

llvm-svn: 201393

10 years ago[libsanitizer] Create SanitizerCommonDecorator which provides the Warning() and EndWa...
Alexander Potapenko [Fri, 14 Feb 2014 08:59:42 +0000 (08:59 +0000)]
[libsanitizer] Create SanitizerCommonDecorator which provides the Warning() and EndWarning() methods
(needed for SEGV handling in sanitizer_common)

llvm-svn: 201392

10 years agoEnable generation of unwind tables when building with sanitizers.
Evgeniy Stepanov [Fri, 14 Feb 2014 08:56:25 +0000 (08:56 +0000)]
Enable generation of unwind tables when building with sanitizers.

llvm-svn: 201391

10 years agoMove BlocksRuntime to lib/ directory
Alexey Samsonov [Fri, 14 Feb 2014 08:38:30 +0000 (08:38 +0000)]
Move BlocksRuntime to lib/ directory

llvm-svn: 201390

10 years agoRevert "DebugInfo: Don't include the name of the CU file in the line table file list...
Eric Christopher [Fri, 14 Feb 2014 05:33:16 +0000 (05:33 +0000)]
Revert "DebugInfo: Don't include the name of the CU file in the line table file list when it's unneeded"

This reverts commit r201380 for now while we investigate.

llvm-svn: 201389

10 years agollvm/test/DebugInfo/empty.ll: Mark it as XFAIL:win32 lacking of line table.
NAKAMURA Takumi [Fri, 14 Feb 2014 05:26:49 +0000 (05:26 +0000)]
llvm/test/DebugInfo/empty.ll: Mark it as XFAIL:win32 lacking of line table.

llvm-svn: 201388

10 years agoFix minor build warning on Mac OS X x86_64.
Jason Molenda [Fri, 14 Feb 2014 05:16:17 +0000 (05:16 +0000)]
Fix minor build warning on Mac OS X x86_64.

llvm-svn: 201387

10 years agoAdd a new target setting, trap-handler-names, where a user can
Jason Molenda [Fri, 14 Feb 2014 05:06:49 +0000 (05:06 +0000)]
Add a new target setting, trap-handler-names, where a user can
specify a list of functions which should be treated as trap handlers.
This will be primarily useful to people working in non-user-level
process debugging - kernels and other standalone environments.
For most people, the trap handler functions provided by the Platform
plugin will be sufficient.

<rdar://problem/15835846>, <rdar://problem/15982682>

llvm-svn: 201386

10 years agoEnable AArch64 NEON by default.
Jiangning Liu [Fri, 14 Feb 2014 04:38:09 +0000 (04:38 +0000)]
Enable AArch64 NEON by default.

llvm-svn: 201385

10 years agoEnable AArch64 NEON by default.
Jiangning Liu [Fri, 14 Feb 2014 04:37:46 +0000 (04:37 +0000)]
Enable AArch64 NEON by default.

llvm-svn: 201384

10 years ago[PR18809] Remove XFAIL from DebugInfo/empty.ll.
NAKAMURA Takumi [Fri, 14 Feb 2014 03:59:43 +0000 (03:59 +0000)]
[PR18809] Remove XFAIL from DebugInfo/empty.ll.

I added it in r201211.

llvm-svn: 201383

10 years ago[AArch64]Fix the assertion failure caused by "v1i1 SETCC" DAG node.
Hao Liu [Fri, 14 Feb 2014 02:21:56 +0000 (02:21 +0000)]
[AArch64]Fix the assertion failure caused by "v1i1 SETCC" DAG node.
As v1i1 is illegal, the type legalizer tries to scalarize such node. But if the type operands of SETCC is legal, the scalarization algorithm will cause an assertion failure.

llvm-svn: 201381

10 years agoDebugInfo: Don't include the name of the CU file in the line table file list when...
David Blaikie [Fri, 14 Feb 2014 01:57:59 +0000 (01:57 +0000)]
DebugInfo: Don't include the name of the CU file in the line table file list when it's unneeded

Recommitting r201351 and r201355 (reverted in r201351 and r201355)

We weren't emitting the an empty (header only) line table when the line
table was empty - this made the DWARF invalid (the compile unit would
point to the zero-size debug_lines section where there should've been an
empty line table but there was nothing at all). Fix that, and as a
consequence this works around/addresses PR18809.

llvm-svn: 201380

10 years agoAdd a command line option -gdwarf-aranges that will turn on emitting
Eric Christopher [Fri, 14 Feb 2014 01:27:03 +0000 (01:27 +0000)]
Add a command line option -gdwarf-aranges that will turn on emitting
the dwarf .debug_aranges section.

llvm-svn: 201379

10 years agoDisable emission of aranges by default and add a command line
Eric Christopher [Fri, 14 Feb 2014 01:26:55 +0000 (01:26 +0000)]
Disable emission of aranges by default and add a command line
option to enable again that will be matched with a commit to enable
in clang.

llvm-svn: 201378

10 years ago[X86] Don't mark movabsq as cheap-as-move - it isn't that cheap.
Juergen Ributzka [Fri, 14 Feb 2014 00:51:13 +0000 (00:51 +0000)]
[X86] Don't mark movabsq as cheap-as-move - it isn't that cheap.

A simple register copy on X86 is just 3 bytes, whereas movabsq is a 10 byte
instruction. Marking movabsq as not beeing cheap will allow LICM to move it
out of the loop and it also prevents unnecessary rematerializations if the
value is needed in more than one register.

llvm-svn: 201377

10 years agoDo more addrspacecast transforms that happen for bitcast.
Matt Arsenault [Fri, 14 Feb 2014 00:49:12 +0000 (00:49 +0000)]
Do more addrspacecast transforms that happen for bitcast.

Makes addrspacecast (gep) do addrspacecast (gep) instead.

llvm-svn: 201376

10 years agoDebug info: Make DWARF4 the default for Darwin, too.
Adrian Prantl [Fri, 14 Feb 2014 00:29:33 +0000 (00:29 +0000)]
Debug info: Make DWARF4 the default for Darwin, too.

llvm-svn: 201375

10 years agoRevert "[CMake] Disable libclangTests.exe on win32 for now."
Juergen Ributzka [Thu, 13 Feb 2014 23:51:55 +0000 (23:51 +0000)]
Revert "[CMake] Disable libclangTests.exe on win32 for now."

Because I also reverted the original commit that required this change.

llvm-svn: 201374

10 years agoRevert "libclang: fix a bug in processing invalid arguments, introduced in r201249,"
Juergen Ributzka [Thu, 13 Feb 2014 23:34:54 +0000 (23:34 +0000)]
Revert "libclang: fix a bug in processing invalid arguments, introduced in r201249,"

Reverting commit (201346) for now, because it is breaking our internal builds.

llvm-svn: 201373

10 years agoFixed deadlocks that could occur when using python for breakpoints, operating system...
Greg Clayton [Thu, 13 Feb 2014 23:34:38 +0000 (23:34 +0000)]
Fixed deadlocks that could occur when using python for breakpoints, operating system plugins, and other async python usage.

<rdar://problem/16054348>
<rdar://problem/16040833>

llvm-svn: 201372

10 years agoR600/SI: Expand all v8[if]32 operations
Tom Stellard [Thu, 13 Feb 2014 23:34:15 +0000 (23:34 +0000)]
R600/SI: Expand all v8[if]32 operations

llvm-svn: 201371

10 years agoR600/SI: Add a pattern for i32 anyext
Tom Stellard [Thu, 13 Feb 2014 23:34:13 +0000 (23:34 +0000)]
R600/SI: Add a pattern for i32 anyext

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
llvm-svn: 201370

10 years agoR600/SI: Completely Disable TypeRewriter on compute
Tom Stellard [Thu, 13 Feb 2014 23:34:12 +0000 (23:34 +0000)]
R600/SI: Completely Disable TypeRewriter on compute

llvm-svn: 201369

10 years agoR600/SI: Split global vector loads with more than 4 elements
Tom Stellard [Thu, 13 Feb 2014 23:34:10 +0000 (23:34 +0000)]
R600/SI: Split global vector loads with more than 4 elements

llvm-svn: 201368

10 years agoR600/SI: Add ShaderType attribute to some tests
Tom Stellard [Thu, 13 Feb 2014 23:34:07 +0000 (23:34 +0000)]
R600/SI: Add ShaderType attribute to some tests

llvm-svn: 201367

10 years agoRevert r201292 which relaxed the stack frame alignment requirements.
Jason Molenda [Thu, 13 Feb 2014 23:29:36 +0000 (23:29 +0000)]
Revert r201292 which relaxed the stack frame alignment requirements.
This was primarily working around problems where we weren't able
to identify trap handlers for different environments -- but instead,
I'm working to make it easier to specify those trap handler function
names.

llvm-svn: 201366

10 years agoUse __literal16. It has been supported by the linker since 2005.
Rafael Espindola [Thu, 13 Feb 2014 23:16:11 +0000 (23:16 +0000)]
Use __literal16. It has been supported by the linker since 2005.

llvm-svn: 201365

10 years agoChange the way the m_trap_handlers Platform base class ivar is initialized;
Jason Molenda [Thu, 13 Feb 2014 23:11:45 +0000 (23:11 +0000)]
Change the way the m_trap_handlers Platform base class ivar is initialized;
add a new pure virtual CalculateTrapHandlerSymbolNames() that Platform
subclasses must implement which fills in the function name list with any
trap handlers that are expected on that platform.

llvm-svn: 201364

10 years agoMSBuild integration: get the LibraryPath right (PR18707)
Hans Wennborg [Thu, 13 Feb 2014 22:01:35 +0000 (22:01 +0000)]
MSBuild integration: get the LibraryPath right (PR18707)

It was pointing to lib\clang\3.4, but now we're on 3.5.
Make CMake insert the right version automatically.

llvm-svn: 201363

10 years agoDon't build DFSan functionality for Android.
Stephen Hines [Thu, 13 Feb 2014 21:21:09 +0000 (21:21 +0000)]
Don't build DFSan functionality for Android.

llvm-svn: 201362

10 years agoSimplify checks in MC/AsmParser/directive_loc.s
Diego Novillo [Thu, 13 Feb 2014 20:16:42 +0000 (20:16 +0000)]
Simplify checks in MC/AsmParser/directive_loc.s

llvm-svn: 201361

10 years agoEnable correcting a member declaration where the type is class template,
Kaelyn Uhrain [Thu, 13 Feb 2014 20:14:07 +0000 (20:14 +0000)]
Enable correcting a member declaration where the type is class template,
and the class name is shadowed by another member. Recovery still needs
to be figured out, which is non-trivial since the parser has already gone
down a much different path than if it had recognized the class template
as type instead of seeing the member that shadowed the class template.

llvm-svn: 201360

10 years agoFix generation of 'isa' and 'discriminator' keywords.
Diego Novillo [Thu, 13 Feb 2014 20:05:03 +0000 (20:05 +0000)]
Fix generation of 'isa' and 'discriminator' keywords.

Summary:
There should be a space before each of these two keywords to avoid
generating invalid assembly files.

NOTE: I could not find an obvious maintainers in CODE_OWNERS.TXT, but
      this seems related to debug info.

Reviewers: echristo

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

llvm-svn: 201359

10 years agoTweak an _MSC_VER ifdef to use typename with clang in a unittest
Reid Kleckner [Thu, 13 Feb 2014 19:51:13 +0000 (19:51 +0000)]
Tweak an _MSC_VER ifdef to use typename with clang in a unittest

In theory, Clang should figure out how to parse this correctly without
typename, but since this is the last TU that Clang falls back on in the
self-host, I'm going to compromise and check for __clang__.

And now Clang can self-host on -win32 without fallback!  The 'check' and
'check-clang' targets both pass.

llvm-svn: 201358

10 years agoRe-enable TestAbbreviations.py on Linux after test fix.
Todd Fiala [Thu, 13 Feb 2014 19:21:13 +0000 (19:21 +0000)]
Re-enable TestAbbreviations.py on Linux after test fix.

See http://llvm.org/bugs/show_bug.cgi?id=18816.

llvm-svn: 201357

10 years agoFixed a test suite failure on Darwin due to logging issues.
Greg Clayton [Thu, 13 Feb 2014 18:30:23 +0000 (18:30 +0000)]
Fixed a test suite failure on Darwin due to logging issues.

llvm-svn: 201356

10 years agoTweak llvm/test/DebugInfo/X86/generate-odr-hash.ll corresponding to r201351 (Revert...
NAKAMURA Takumi [Thu, 13 Feb 2014 18:28:28 +0000 (18:28 +0000)]
Tweak llvm/test/DebugInfo/X86/generate-odr-hash.ll corresponding to r201351 (Revert r201187).

llvm-svn: 201355

10 years agoCheck that GlobalAliases don't have section or alignment.
Rafael Espindola [Thu, 13 Feb 2014 18:26:41 +0000 (18:26 +0000)]
Check that GlobalAliases don't have section or alignment.

An alias is always in the section of its aliasee and has the same alignment
(since it has the same address).

llvm-svn: 201354

10 years agoSCCIterator: Merge MinVisitNumStack and VisitStack
Duncan P. N. Exon Smith [Thu, 13 Feb 2014 18:26:15 +0000 (18:26 +0000)]
SCCIterator: Merge MinVisitNumStack and VisitStack

This patch merges MinVisitNumStack with VisitStack using a StackElement
struct.

Patch by Mehdi Amini!

llvm-svn: 201353

10 years agoInstCombine: Replace custom constant folding code with ConstantExpr.
Benjamin Kramer [Thu, 13 Feb 2014 18:23:24 +0000 (18:23 +0000)]
InstCombine: Replace custom constant folding code with ConstantExpr.

llvm-svn: 201352

10 years ago[PR18809] Revert r201187, "DebugInfo: Don't include the name of the CU file in the...
NAKAMURA Takumi [Thu, 13 Feb 2014 18:18:56 +0000 (18:18 +0000)]
[PR18809] Revert r201187, "DebugInfo: Don't include the name of the CU file in the line table file list when it's unneeded"

It really crashes cygwin's stage2 configure with "clang -g".

llvm-svn: 201351

10 years ago[examples] Add tablegen'd ClangCommentCommandList as a dependency for plugins.
Jordan Rose [Thu, 13 Feb 2014 18:12:30 +0000 (18:12 +0000)]
[examples] Add tablegen'd ClangCommentCommandList as a dependency for plugins.

Also, remove library dependencies for the sample analyzer-plugin. The only
library changes that would require a rebuild should be in headers, which
should already implicitly be marked as dependencies.

llvm-svn: 201350

10 years agoAdd a test to make sure that vector supports incomplete types
Marshall Clow [Thu, 13 Feb 2014 17:56:12 +0000 (17:56 +0000)]
Add a test to make sure that vector supports incomplete types

llvm-svn: 201349

10 years ago[CMake] Disable libclangTests.exe on win32 for now.
NAKAMURA Takumi [Thu, 13 Feb 2014 17:51:35 +0000 (17:51 +0000)]
[CMake] Disable libclangTests.exe on win32 for now.

libclangTests.exe cannot find libclang.dll since it is not on $PATH.

llvm-svn: 201348

10 years agoUse mkdir instead of stat+mkdir.
Rafael Espindola [Thu, 13 Feb 2014 16:58:19 +0000 (16:58 +0000)]
Use mkdir instead of stat+mkdir.

This is an optimistic version of create_diretories: it tries to create the
directory first and looks at the parent only if that fails.

Running strace on "mkdir -p" shows that it is pessimistic, calling mkdir on
every element of the path. We could implement that if needed.

In any case, with both strategies there is no reason to call stat, just check
the return of mkdir.

llvm-svn: 201347

10 years agolibclang: fix a bug in processing invalid arguments, introduced in r201249,
Dmitri Gribenko [Thu, 13 Feb 2014 16:51:38 +0000 (16:51 +0000)]
libclang: fix a bug in processing invalid arguments, introduced in r201249,
pointed out by Daniel Jasper in r201329

llvm-svn: 201346

10 years agoAdd triples to try to fix the windows bots.
Rafael Espindola [Thu, 13 Feb 2014 16:49:47 +0000 (16:49 +0000)]
Add triples to try to fix the windows bots.

llvm-svn: 201345

10 years agoReduce code duplication resulting from the ConstantVector/ConstantDataVector split.
Benjamin Kramer [Thu, 13 Feb 2014 16:48:38 +0000 (16:48 +0000)]
Reduce code duplication resulting from the ConstantVector/ConstantDataVector split.

No intended functionality change.

llvm-svn: 201344

10 years agoRe-add the '!' removed by mistake.
Alexander Kornienko [Thu, 13 Feb 2014 16:29:39 +0000 (16:29 +0000)]
Re-add the '!' removed by mistake.

llvm-svn: 201343

10 years agoClang-tidy: don't create ASTConsumers not needed for the set of checks we perform.
Alexander Kornienko [Thu, 13 Feb 2014 16:10:47 +0000 (16:10 +0000)]
Clang-tidy: don't create ASTConsumers not needed for the set of checks we perform.

Summary:
This doesn't have any significant effect on the performance, but it
looks like a good thing to do.

Reviewers: djasper, klimek

Reviewed By: klimek

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

llvm-svn: 201340

10 years ago[sanitizer] replace MostSignificantSetBitIndex with LeastSignificantSetBitIndex in...
Kostya Serebryany [Thu, 13 Feb 2014 15:59:00 +0000 (15:59 +0000)]
[sanitizer] replace MostSignificantSetBitIndex with LeastSignificantSetBitIndex in bit vector (to iterate bits in increasing order)

llvm-svn: 201339

10 years ago[sanitizer] optimize TwoLevelBitVector::intersectsWith, extend tests, fix a check
Kostya Serebryany [Thu, 13 Feb 2014 15:45:20 +0000 (15:45 +0000)]
[sanitizer] optimize TwoLevelBitVector::intersectsWith, extend tests, fix a check

llvm-svn: 201338