platform/upstream/llvm.git
9 years ago[x86] Make computing the zeroable elements slightly more powerful, at
Chandler Carruth [Sun, 15 Feb 2015 09:33:36 +0000 (09:33 +0000)]
[x86] Make computing the zeroable elements slightly more powerful, at
least in theory.

I don't actually have a test case that benefits from this, but
theoretically, it could come up, and I don't want to try to think about
whether this is the culprit or something else is, so I'd rather just
make this code powerful. =/ Makes me sad that I can't really test it
though.

llvm-svn: 229298

9 years agogold-plugin: fix test to allow default visibility on local symbols
Michael Kuperstein [Sun, 15 Feb 2015 09:32:30 +0000 (09:32 +0000)]
gold-plugin: fix test to allow default visibility on local symbols

GNU ld sets default, not hidden, visibility on local symbols.
Having default or hidden visibility on local symbols makes no difference in run-time behavior.

Patch by: H.J. Lu <hjl.tools@gmail.com>

llvm-svn: 229297

9 years ago[x86] Update some tests with the latest version of my script and llc.
Chandler Carruth [Sun, 15 Feb 2015 09:26:15 +0000 (09:26 +0000)]
[x86] Update some tests with the latest version of my script and llc.
This mostly adds some shuffle decode comments and cleans up indentation.

llvm-svn: 229296

9 years agoFix a typo in r229291 causing buildbot failure.
Larisse Voufo [Sun, 15 Feb 2015 08:47:33 +0000 (08:47 +0000)]
Fix a typo in r229291 causing buildbot failure.

llvm-svn: 229295

9 years agoAdd more tests for crashes that happend to be fixed by r229288.
Larisse Voufo [Sun, 15 Feb 2015 08:47:31 +0000 (08:47 +0000)]
Add more tests for crashes that happend to be fixed by r229288.

llvm-svn: 229294

9 years agoDon't crash on `struct ::, struct ::` (and the same for enums).
Larisse Voufo [Sun, 15 Feb 2015 08:47:30 +0000 (08:47 +0000)]
Don't crash on `struct ::, struct ::` (and the same for enums).

The first part of that line doesn't parse correctly and ParseClassSpecifier() for
some reason skips to tok::comma to recover, and then
ParseDeclarationSpecifiers() sees the next struct and calls
ParseClassSpecifier() again with the same DeclSpec object.

However, the first call already called ActOnCXXGlobalScopeSpecifier() on the
DeclSpec's CXXScopeSpec, and sema gets confused when this gets called again.

As a fix, let ParseClassSpecifier() (and ParseEnumSpecifier()) call
ParseOptionalCXXScopeSpec() with a temporary CXXScopeSpec object, and only
copy it into the DeclSpec if things work out.  (This is also how all the other
functions that set the DeclSpec's TypeSpecScope set it.)

Found by SLi's bot.

llvm-svn: 229293

9 years ago[x86] Add a slight variation on some of the other generic shuffle
Chandler Carruth [Sun, 15 Feb 2015 08:26:30 +0000 (08:26 +0000)]
[x86] Add a slight variation on some of the other generic shuffle
lowerings -- one which decomposes into an initial blend followed by
a permute.

Particularly on newer chips, blends are handled independently of
shuffles and so this is much less bottlenecked on the single port that
floating point shuffles are executed with on Intel.

I'll be adding this lowering to a bunch of other code paths in
subsequent commits to handle still more places where we can effectively
leverage blends when they're available in the ISA.

llvm-svn: 229292

9 years agoMore on fixing sized deallocation implementation logic: Fix PR21754.
Larisse Voufo [Sun, 15 Feb 2015 08:16:37 +0000 (08:16 +0000)]
More on fixing sized deallocation implementation logic: Fix PR21754.

llvm-svn: 229291

9 years agoEnabled cost calculation for masked memory operations.
Elena Demikhovsky [Sun, 15 Feb 2015 08:08:48 +0000 (08:08 +0000)]
Enabled cost calculation for masked memory operations.

We already have implementation for cost calculation for
masked memory operations. I just call it from the loop vectorizer.

llvm-svn: 229290

9 years agoAdd more tests for crashes that happend to be fixed by r229288.
Nico Weber [Sun, 15 Feb 2015 07:45:39 +0000 (07:45 +0000)]
Add more tests for crashes that happend to be fixed by r229288.

llvm-svn: 229289

9 years agoDon't crash on `struct ::, struct ::` (and the same for enums).
Nico Weber [Sun, 15 Feb 2015 07:26:13 +0000 (07:26 +0000)]
Don't crash on `struct ::, struct ::` (and the same for enums).

The first part of that line doesn't parse correctly and ParseClassSpecifier() for
some reason skips to tok::comma to recover, and then
ParseDeclarationSpecifiers() sees the next struct and calls
ParseClassSpecifier() again with the same DeclSpec object.

However, the first call already called ActOnCXXGlobalScopeSpecifier() on the
DeclSpec's CXXScopeSpec, and sema gets confused when this gets called again.

As a fix, let ParseClassSpecifier() (and ParseEnumSpecifier()) call
ParseOptionalCXXScopeSpec() with a temporary CXXScopeSpec object, and only
copy it into the DeclSpec if things work out.  (This is also how all the other
functions that set the DeclSpec's TypeSpecScope set it.)

Found by SLi's bot.

llvm-svn: 229288

9 years ago[X86] Add assembly parser support for mnemonic aliases for AVX-512 vpcmp instructions.
Craig Topper [Sun, 15 Feb 2015 07:13:48 +0000 (07:13 +0000)]
[X86] Add assembly parser support for mnemonic aliases for AVX-512 vpcmp instructions.

llvm-svn: 229287

9 years ago[x86] Add a test case for PR22390 which was a dup of PR22377 and fixed
Chandler Carruth [Sun, 15 Feb 2015 07:05:50 +0000 (07:05 +0000)]
[x86] Add a test case for PR22390 which was a dup of PR22377 and fixed
by r229285. This is a nice different test case though, so I'd like to
have the extra testing of these kinds of patterns.

llvm-svn: 229286

9 years ago[x86] Fix PR22377, a regression with the new vector shuffle legality
Chandler Carruth [Sun, 15 Feb 2015 07:01:10 +0000 (07:01 +0000)]
[x86] Fix PR22377, a regression with the new vector shuffle legality
test.

This was just a matter of the DAG combine for vector shuffles being too
aggressive. This is a bit of a grey area, but I think generally if we
can re-use intermediate shuffles, we should. Certainly, given the test
cases I have available, this seems like the right call.

llvm-svn: 229285

9 years ago[x86] Switch a collection of tests explicitly to the new vector shuffle
Chandler Carruth [Sun, 15 Feb 2015 06:37:21 +0000 (06:37 +0000)]
[x86] Switch a collection of tests explicitly to the new vector shuffle
legality test (essentially, everything is legal).

I'm planning to make this the default shortly, but I'd like to fix
a collection of the bugs it exposes first, and this will let me easily
test them. It also showcases both the improvements and a few of the
regressions triggered by the change. The biggest improvements by far are
the significantly reduced shuffling and domain crossing in the combining
test case. The biggest regressions are missing some clever blending
patterns.

llvm-svn: 229284

9 years ago[x86] Remove the now-default-on flag for the new vector shuffle lowering
Chandler Carruth [Sun, 15 Feb 2015 06:20:51 +0000 (06:20 +0000)]
[x86] Remove the now-default-on flag for the new vector shuffle lowering
strategy from a bunch of tests.

llvm-svn: 229283

9 years agoWrap to 80 columns. No behavior change.
Nico Weber [Sun, 15 Feb 2015 06:15:40 +0000 (06:15 +0000)]
Wrap to 80 columns. No behavior change.

llvm-svn: 229282

9 years agoImplement C++14's sized deallocation functions, since there are no longer implicitly...
Larisse Voufo [Sun, 15 Feb 2015 05:18:55 +0000 (05:18 +0000)]
Implement C++14's sized deallocation functions, since there are no longer implicitly defined by clang, as of r229241.

llvm-svn: 229281

9 years ago[X86] Add assembler predicates for the rest of the AVX512 feature flags. This makes...
Craig Topper [Sun, 15 Feb 2015 04:54:55 +0000 (04:54 +0000)]
[X86] Add assembler predicates for the rest of the AVX512 feature flags. This makes the assembly matching consistent across all AVX512 instructions. Without this we were allowing some AVX512 instructions to be parsed always, but not the foundation instructions.

llvm-svn: 229280

9 years ago[X86] Add the remaining 11 possible exact ModRM formats. This makes their encodings...
Craig Topper [Sun, 15 Feb 2015 04:16:44 +0000 (04:16 +0000)]
[X86] Add the remaining 11 possible exact ModRM formats. This makes their encodings linear which can then be used to simplify some other code.

llvm-svn: 229279

9 years agoFileCheck-ize a test to make it easier to migrate to typeless pointers
David Blaikie [Sun, 15 Feb 2015 04:14:00 +0000 (04:14 +0000)]
FileCheck-ize a test to make it easier to migrate to typeless pointers

llvm-svn: 229278

9 years agoUpdate a test to make it easier to migrate to untyped pointers
David Blaikie [Sun, 15 Feb 2015 04:13:58 +0000 (04:13 +0000)]
Update a test to make it easier to migrate to untyped pointers

llvm-svn: 229277

9 years agoUpdate a test to use FileCheck so it's easier to migrate to future typeless pointer...
David Blaikie [Sun, 15 Feb 2015 04:13:57 +0000 (04:13 +0000)]
Update a test to use FileCheck so it's easier to migrate to future typeless pointer changes

llvm-svn: 229276

9 years agoReformat test case to be easier to migrate to typeless pointers.
David Blaikie [Sun, 15 Feb 2015 04:13:53 +0000 (04:13 +0000)]
Reformat test case to be easier to migrate to typeless pointers.

llvm-svn: 229275

9 years agoRemove trailing whitespace to make test compatible with typeless pointer migration
David Blaikie [Sun, 15 Feb 2015 04:12:22 +0000 (04:12 +0000)]
Remove trailing whitespace to make test compatible with typeless pointer migration

llvm-svn: 229274

9 years agoRemove trailing whitespace to make test compatible with typeless pointer migration
David Blaikie [Sun, 15 Feb 2015 04:12:21 +0000 (04:12 +0000)]
Remove trailing whitespace to make test compatible with typeless pointer migration

llvm-svn: 229273

9 years agoRemove trailing whitespace to make test compatible with typeless pointer migration
David Blaikie [Sun, 15 Feb 2015 04:12:19 +0000 (04:12 +0000)]
Remove trailing whitespace to make test compatible with typeless pointer migration

llvm-svn: 229272

9 years agoRemove trailing whitespace to help make test compatible with typeless pointer migration
David Blaikie [Sun, 15 Feb 2015 04:12:17 +0000 (04:12 +0000)]
Remove trailing whitespace to help make test compatible with typeless pointer migration

llvm-svn: 229271

9 years agoUpdate test to be ready for typeless pointer changes
David Blaikie [Sun, 15 Feb 2015 04:12:16 +0000 (04:12 +0000)]
Update test to be ready for typeless pointer changes

llvm-svn: 229270

9 years agoUpdate test to make it robust to migration to typeless pointers
David Blaikie [Sun, 15 Feb 2015 04:12:14 +0000 (04:12 +0000)]
Update test to make it robust to migration to typeless pointers

llvm-svn: 229269

9 years ago[x86] Teach my test updating script about another quirk of the printed
Chandler Carruth [Sun, 15 Feb 2015 00:08:01 +0000 (00:08 +0000)]
[x86] Teach my test updating script about another quirk of the printed
asm and port the mmx vector shuffle test to it.

Not thrilled with how it handles the stack manipulation logic, but I'm
much less bothered by that than I am by updating the test manually. =]
If anyone wants to teach the test checks management script about stack
adjustment patterns, that'd be cool too.

llvm-svn: 229268

9 years ago[X86][XOP] Enable commutation for XOP instructions
Simon Pilgrim [Sat, 14 Feb 2015 22:40:46 +0000 (22:40 +0000)]
[X86][XOP] Enable commutation for XOP instructions

Patch to allow XOP instructions (integer comparison and integer multiply-add) to be commuted. The comparison instructions sometimes require the compare mode to be flipped but the remaining instructions can use default commutation modes.

This patch also sets the SSE domains of all the XOP instructions.

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

llvm-svn: 229267

9 years ago[X86] Improve parsing support AVX/SSE floating point compare instruction mnemonic...
Craig Topper [Sat, 14 Feb 2015 21:54:03 +0000 (21:54 +0000)]
[X86] Improve parsing support AVX/SSE floating point compare instruction mnemonic aliases. They'll now print with the alias the parser received instead of converting to the explicit immediate form.

llvm-svn: 229266

9 years agoInstCombine: propagate deref via new addDereferenceableAttr
Ramkumar Ramachandra [Sat, 14 Feb 2015 19:37:54 +0000 (19:37 +0000)]
InstCombine: propagate deref via new addDereferenceableAttr

The "dereferenceable" attribute cannot be added via .addAttribute(),
since it also expects a size in bytes. AttrBuilder#addAttribute or
AttributeSet#addAttribute is wrapped by classes Function, InvokeInst,
and CallInst. Add corresponding wrappers to
AttrBuilder#addDereferenceableAttr.

Having done this, propagate the dereferenceable attribute via
gc.relocate, adding a test to exercise it. Note that -datalayout is
required during execution over and above -instcombine, because
InstCombine only optionally requires DataLayoutPass.

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

llvm-svn: 229265

9 years agoReplace snprintf with a Twine. NFC.
Benjamin Kramer [Sat, 14 Feb 2015 18:19:55 +0000 (18:19 +0000)]
Replace snprintf with a Twine. NFC.

llvm-svn: 229264

9 years agotsan: fix build
Dmitry Vyukov [Sat, 14 Feb 2015 16:14:10 +0000 (16:14 +0000)]
tsan: fix build

Revision 229127 introduced a bug:
zero value is not OK for trace headers,
because stack0 needs constructor call.
Instead unmap the unused part of trace after
all ctors have been executed.

llvm-svn: 229263

9 years agotsan: always subtract one from program counters
Dmitry Vyukov [Sat, 14 Feb 2015 16:06:22 +0000 (16:06 +0000)]
tsan: always subtract one from program counters

Go has a pending change to pass proper PCs to tsan:
https://go-review.googlesource.com/#/c/4902/
So now we can always subtract one from PCs.

llvm-svn: 229262

9 years agoTarget: Canonicalize access to function attributes, NFC
Duncan P. N. Exon Smith [Sat, 14 Feb 2015 15:36:52 +0000 (15:36 +0000)]
Target: Canonicalize access to function attributes, NFC

Canonicalize access to function attributes to use the simpler API.

getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind)
  => getFnAttribute(Kind)

getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind)
  => hasFnAttribute(Kind)

llvm-svn: 229261

9 years agoNVPTX: Canonicalize access to function attributes, NFC
Duncan P. N. Exon Smith [Sat, 14 Feb 2015 15:35:43 +0000 (15:35 +0000)]
NVPTX: Canonicalize access to function attributes, NFC

Canonicalize access to function attributes to use the simpler API.

getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind)
  => getFnAttribute(Kind)

getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind)
  => hasFnAttribute(Kind)

llvm-svn: 229260

9 years ago[optnone] Skip pass Constant Hoisting on optnone functions.
Andrea Di Biagio [Sat, 14 Feb 2015 15:11:48 +0000 (15:11 +0000)]
[optnone] Skip pass Constant Hoisting on optnone functions.

Added test CodeGen/X86/constant-hoisting-optnone.ll to verify that
pass Constant Hoisting is not run on optnone functions.

llvm-svn: 229258

9 years ago[X86] Ensure integer domain on scalar load/store stack folding tests. NFC
Simon Pilgrim [Sat, 14 Feb 2015 14:10:44 +0000 (14:10 +0000)]
[X86] Ensure integer domain on scalar load/store stack folding tests. NFC

llvm-svn: 229257

9 years agoLine ending fix. NFC.
Simon Pilgrim [Sat, 14 Feb 2015 13:27:53 +0000 (13:27 +0000)]
Line ending fix. NFC.

llvm-svn: 229256

9 years agoItaniumMangle: Correctly mangle <base-unresolved-name>
David Majnemer [Sat, 14 Feb 2015 13:23:54 +0000 (13:23 +0000)]
ItaniumMangle: Correctly mangle <base-unresolved-name>

We had two bugs:
- We were missing the "on" prefix for unresolved operators.
- We didn't handle the mangling of destructors at all.

This fixes PR22584.

llvm-svn: 229255

9 years agoAdd getSize() to the SCoP class.
Johannes Doerfert [Sat, 14 Feb 2015 12:13:17 +0000 (12:13 +0000)]
Add getSize() to the SCoP class.

llvm-svn: 229254

9 years agoDo not try to optimize empty SCoPs.
Johannes Doerfert [Sat, 14 Feb 2015 12:02:24 +0000 (12:02 +0000)]
Do not try to optimize empty SCoPs.

llvm-svn: 229253

9 years agoOveraproximate divisions in for the alias checks.
Johannes Doerfert [Sat, 14 Feb 2015 12:00:06 +0000 (12:00 +0000)]
Overaproximate divisions in for the alias checks.

  Alias checks might become costly if there are divisions that complicate the
  description of the accessed locations. By overaproximating them we get fairly
  accurate results without the huge compile time cost.

llvm-svn: 229252

9 years ago[gold] Consolidate the gold plugin options and actually search for
Chandler Carruth [Sat, 14 Feb 2015 09:43:57 +0000 (09:43 +0000)]
[gold] Consolidate the gold plugin options and actually search for
a gold binary explicitly. Substitute this binary into the tests rather
than just directly executing the 'ld' binary.

This should allow folks to inject a cross compiling gold binary, or in
my case to use a gold binary built and installed somewhere other than
/usr/bin/ld. It should also allow the tests to find 'ld.gold' so that
things work even if gold isn't the default on the system.

I've only stubbed out support in the makefile to preserve the existing
behavior with none of the fancy logic. If someone else wants to add
logic here, they're welcome to do so.

llvm-svn: 229251

9 years agoRemove a variable only used in an assert and sink its initializer into
Chandler Carruth [Sat, 14 Feb 2015 09:14:44 +0000 (09:14 +0000)]
Remove a variable only used in an assert and sink its initializer into
the assert. Fixes -Wunused-variable on non-asserts builds.

llvm-svn: 229250

9 years agoBreak some test. Revert until I got a proper fix
Jean-Daniel Dupas [Sat, 14 Feb 2015 09:10:25 +0000 (09:10 +0000)]
Break some test. Revert until I got a proper fix

llvm-svn: 229249

9 years agoBack out two accidental changes that snuck in with r229245. Sorry these
Chandler Carruth [Sat, 14 Feb 2015 09:05:58 +0000 (09:05 +0000)]
Back out two accidental changes that snuck in with r229245. Sorry these
snuck in, they weren't ready for prime time and had *nothing* to do
with that commit.

llvm-svn: 229248

9 years ago[lit] Make the gold plugin support testing work with a python3
Chandler Carruth [Sat, 14 Feb 2015 09:05:56 +0000 (09:05 +0000)]
[lit] Make the gold plugin support testing work with a python3
interpreter. Seems that's a better path than pinning to python2.7.

Thanks to Justin for prodding me toward a fix. =]

llvm-svn: 229247

9 years agoUpdate ARM and x86 ArchHandler to match 64bits counterparts. NFC
Jean-Daniel Dupas [Sat, 14 Feb 2015 08:34:37 +0000 (08:34 +0000)]
Update ARM and x86 ArchHandler to match 64bits counterparts. NFC

Summary:
Define an explicit type for arch specific reference kind and use it in switch statement to make the compiler emit warnings if some case is not cover.
It will help to catch such errors when we add new mach-o reference kind.

Reviewers: shankarke, kledzik

Reviewed By: shankarke

Subscribers: shankarke, aemerson, llvm-commits

Projects: #lld

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

llvm-svn: 229246

9 years agoRevert r229224: Make the 'llvm-lit' utility defend against a system where Python3
Chandler Carruth [Sat, 14 Feb 2015 07:11:25 +0000 (07:11 +0000)]
Revert r229224: Make the 'llvm-lit' utility defend against a system where Python3

Apparantly python2.7 also doesn't work. Awesome.

llvm-svn: 229245

9 years ago[lit] Make the 'llvm-lit' utility defend against a system where Python3
Chandler Carruth [Sat, 14 Feb 2015 07:05:15 +0000 (07:05 +0000)]
[lit] Make the 'llvm-lit' utility defend against a system where Python3
is the default.

The lit.cfg files are not all valid Python3 and I've no idea if anyone
is really prepared to update them. The easiest way I know of to ensure
that this script uses Python 2 is to use 'python2.7' in the command. Mac
and Linux are definitely fine with this and I think other platforms will
be as well, but if anyone struggles with this set up and has better
ideas, let me know.

llvm-svn: 229244

9 years ago[modules] Try harder to stop DebugInfo/PDB/DIA being built if not available.
Richard Smith [Sat, 14 Feb 2015 05:54:56 +0000 (05:54 +0000)]
[modules] Try harder to stop DebugInfo/PDB/DIA being built if not available.

llvm-svn: 229243

9 years agoMake a reference const. No behavior change.
Nico Weber [Sat, 14 Feb 2015 05:47:01 +0000 (05:47 +0000)]
Make a reference const. No behavior change.

llvm-svn: 229242

9 years agoRevise the implementation logic of sized deallocation: Do not automatically generate...
Larisse Voufo [Sat, 14 Feb 2015 05:42:57 +0000 (05:42 +0000)]
Revise the implementation logic of sized deallocation: Do not automatically generate weak definitions of the sized operator delete (in terms of unsized operator delete). Instead, provide the funcitonality via a new compiler flag, -fdef-sized-delete.
The current implementation causes link-time ODR violations when the delete symbols are exported into the dynamic table.

llvm-svn: 229241

9 years ago[modules] Accept //-style comments in module maps on purpose rather than by
Richard Smith [Sat, 14 Feb 2015 05:32:00 +0000 (05:32 +0000)]
[modules] Accept //-style comments in module maps on purpose rather than by
accident, and accept them even when they begin '//*'.

llvm-svn: 229240

9 years agoR600/SI: Implement correct f64 fdiv
Matt Arsenault [Sat, 14 Feb 2015 04:30:08 +0000 (04:30 +0000)]
R600/SI: Implement correct f64 fdiv

This version passes the OpenCL conformance test.

llvm-svn: 229239

9 years agoR600/SI: Use complex operand folding for div_scale
Matt Arsenault [Sat, 14 Feb 2015 04:24:28 +0000 (04:24 +0000)]
R600/SI: Use complex operand folding for div_scale

llvm-svn: 229238

9 years agoR600/SI: Add tests for div_fmas with inline immediate operands
Matt Arsenault [Sat, 14 Feb 2015 04:22:02 +0000 (04:22 +0000)]
R600/SI: Add tests for div_fmas with inline immediate operands

llvm-svn: 229237

9 years agoR600/SI: Fix implicit vcc operand to v_div_fmas_*
Matt Arsenault [Sat, 14 Feb 2015 04:22:00 +0000 (04:22 +0000)]
R600/SI: Fix implicit vcc operand to v_div_fmas_*

This should allow finally fixing the f64 fdiv implementation.

Test is disabled for VI since there seems to be a problem with one
of the buffer load instructions on it.

llvm-svn: 229236

9 years agoR600/SI: Fix schedule model for v_div_scale_{f32|f64}
Matt Arsenault [Sat, 14 Feb 2015 04:03:18 +0000 (04:03 +0000)]
R600/SI: Fix schedule model for v_div_scale_{f32|f64}

llvm-svn: 229235

9 years agoR600/SI: Really fix size of VReg_1
Matt Arsenault [Sat, 14 Feb 2015 03:54:32 +0000 (03:54 +0000)]
R600/SI: Really fix size of VReg_1

llvm-svn: 229234

9 years agoR600/SI: Rename encoding field to match docs for VOP3b
Matt Arsenault [Sat, 14 Feb 2015 03:54:29 +0000 (03:54 +0000)]
R600/SI: Rename encoding field to match docs for VOP3b

llvm-svn: 229233

9 years agollvm-pdbdump: Only dump whitelisted global symbols.
Zachary Turner [Sat, 14 Feb 2015 03:54:28 +0000 (03:54 +0000)]
llvm-pdbdump: Only dump whitelisted global symbols.

Dumping the global scope contains a lot of very uninteresting
things and is generally polluted with a lot of random junk.
Furthermore, it dumps values unsorted, making it hard to read.
This patch dumps known interesting types only, and as a side
effect sorts the list by symbol type.

llvm-svn: 229232

9 years agollvm-pdbdump: Re-order header files according to LLVM style guide.
Zachary Turner [Sat, 14 Feb 2015 03:53:56 +0000 (03:53 +0000)]
llvm-pdbdump: Re-order header files according to LLVM style guide.

llvm-svn: 229231

9 years agoR600/SI: Fix not encoding src2 for v_div_scale_{f32|f64}
Matt Arsenault [Sat, 14 Feb 2015 03:40:35 +0000 (03:40 +0000)]
R600/SI: Fix not encoding src2 for v_div_scale_{f32|f64}

This apparently got lost in the VI changes.

llvm-svn: 229230

9 years agoUpdate cxx_dr_status to cover dr1748 and add test.
Richard Smith [Sat, 14 Feb 2015 03:38:31 +0000 (03:38 +0000)]
Update cxx_dr_status to cover dr1748 and add test.

llvm-svn: 229229

9 years agoR600/SI: Fix VOP3b encoding on VI
Matt Arsenault [Sat, 14 Feb 2015 03:02:23 +0000 (03:02 +0000)]
R600/SI: Fix VOP3b encoding on VI

llvm-svn: 229228

9 years agoR600/SI: Fix phys reg copies in SIFoldOperands
Matt Arsenault [Sat, 14 Feb 2015 02:55:57 +0000 (02:55 +0000)]
R600/SI: Fix phys reg copies in SIFoldOperands

llvm-svn: 229227

9 years agoR600/SI: Fix copies from SGPR to VCC
Matt Arsenault [Sat, 14 Feb 2015 02:55:56 +0000 (02:55 +0000)]
R600/SI: Fix copies from SGPR to VCC

This shows up without optimizations when vcc is required
to be used.

llvm-svn: 229226

9 years agoR600/SI: Add hack to copy from a VGPR to VCC
Matt Arsenault [Sat, 14 Feb 2015 02:55:54 +0000 (02:55 +0000)]
R600/SI: Add hack to copy from a VGPR to VCC

This hopefully should be fixed when VReg_1 is removed.

llvm-svn: 229225

9 years agoPowerPC: Canonicalize access to function attributes, NFC
Duncan P. N. Exon Smith [Sat, 14 Feb 2015 02:54:07 +0000 (02:54 +0000)]
PowerPC: Canonicalize access to function attributes, NFC

Canonicalize access to function attributes to use the simpler API.

getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind)
  => getFnAttribute(Kind)

getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind)
  => hasFnAttribute(Kind)

llvm-svn: 229224

9 years agoR600/SI: Fix size of VReg_1
Matt Arsenault [Sat, 14 Feb 2015 02:51:44 +0000 (02:51 +0000)]
R600/SI: Fix size of VReg_1

This is really a 32-bit register, if we try to check the size of it,
we want 32-bits.

llvm-svn: 229223

9 years agoR600: Canonicalize access to function attributes, NFC
Duncan P. N. Exon Smith [Sat, 14 Feb 2015 02:45:45 +0000 (02:45 +0000)]
R600: Canonicalize access to function attributes, NFC

Canonicalize access to function attributes to use the simpler API.

getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind)
  => getFnAttribute(Kind)

getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind)
  => hasFnAttribute(Kind)

llvm-svn: 229222

9 years agoMips: Canonicalize access to function attributes, NFC
Duncan P. N. Exon Smith [Sat, 14 Feb 2015 02:37:48 +0000 (02:37 +0000)]
Mips: Canonicalize access to function attributes, NFC

Canonicalize access to function attributes to use the simpler API.

getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind)
  => getFnAttribute(Kind)

getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind)
  => hasFnAttribute(Kind)

llvm-svn: 229221

9 years agoARM: Canonicalize access to function attributes, NFC
Duncan P. N. Exon Smith [Sat, 14 Feb 2015 02:24:44 +0000 (02:24 +0000)]
ARM: Canonicalize access to function attributes, NFC

Canonicalize access to function attributes to use the simpler API.

getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind)
  => getFnAttribute(Kind)

getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind)
  => hasFnAttribute(Kind)

llvm-svn: 229220

9 years agoTry to unbreak the Hexagon bot
David Majnemer [Sat, 14 Feb 2015 02:18:14 +0000 (02:18 +0000)]
Try to unbreak the Hexagon bot

llvm-svn: 229219

9 years agoAArch64: Canonicalize access to function attributes, NFC
Duncan P. N. Exon Smith [Sat, 14 Feb 2015 02:09:06 +0000 (02:09 +0000)]
AArch64: Canonicalize access to function attributes, NFC

Canonicalize access to function attributes to use the simpler API.

getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind)
  => getFnAttribute(Kind)

getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind)
  => hasFnAttribute(Kind)

llvm-svn: 229218

9 years agollvm-cov: Actually use the command line arguments when reporting
Justin Bogner [Sat, 14 Feb 2015 02:05:05 +0000 (02:05 +0000)]
llvm-cov: Actually use the command line arguments when reporting

This code didn't really make sense as is. If a filename is passed in,
the user obviously wants the coverage *for that file*, not *for
everything*.

llvm-svn: 229217

9 years agoMoar post-commit review.
Jonathan Roelofs [Sat, 14 Feb 2015 02:02:56 +0000 (02:02 +0000)]
Moar post-commit review.

Apparently typing is hard.

llvm-svn: 229216

9 years agollvm-cov: Simplify coverage reports, fixing PR22575 in the process
Justin Bogner [Sat, 14 Feb 2015 02:01:24 +0000 (02:01 +0000)]
llvm-cov: Simplify coverage reports, fixing PR22575 in the process

PR22575 occurred because we were unsafely storing references into a
std::vector. If the vector moved because it grew, we'd be left
iterating through garbage memory. This avoids the issue by simplifying
the logic to gather coverage information as we go, rather than storing
it and iterating over it.

I'm relying on the existing tests showing that this is semantically
NFC, since it's difficult to hit the issue this fixes without
relatively large covered programs.

llvm-svn: 229215

9 years agoX86: Canonicalize access to function attributes, NFC
Duncan P. N. Exon Smith [Sat, 14 Feb 2015 01:59:52 +0000 (01:59 +0000)]
X86: Canonicalize access to function attributes, NFC

Canonicalize access to function attributes to use the simpler API.

getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind)
  => getFnAttribute(Kind)

getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind)
  => hasFnAttribute(Kind)

llvm-svn: 229214

9 years agoDR1748: the reserved placement allocation functions have undefined behavior if
Richard Smith [Sat, 14 Feb 2015 01:52:20 +0000 (01:52 +0000)]
DR1748: the reserved placement allocation functions have undefined behavior if
they're given a null pointer as an argument, so we do not need to emit null
checks on their results.

llvm-svn: 229213

9 years agoCodeGen: _Atomic(_Complex) shouldn't crash
David Majnemer [Sat, 14 Feb 2015 01:48:17 +0000 (01:48 +0000)]
CodeGen: _Atomic(_Complex) shouldn't crash

We could be a little kinder if we did a compare-exchange loop instead of
an atomic-load/store pair.

llvm-svn: 229212

9 years agoBuild cgo and llgo-go
Peter Collingbourne [Sat, 14 Feb 2015 01:46:01 +0000 (01:46 +0000)]
Build cgo and llgo-go

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

llvm-svn: 229211

9 years agollvm-go: Set $GCCGO instead of putting a gccgo executable on $PATH.
Peter Collingbourne [Sat, 14 Feb 2015 01:45:57 +0000 (01:45 +0000)]
llvm-go: Set $GCCGO instead of putting a gccgo executable on $PATH.

Now that llgo ships its own go command we can rely on it having support for $GCCGO.

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

llvm-svn: 229210

9 years agollvm-go: Add flag for specifying path to go command.
Peter Collingbourne [Sat, 14 Feb 2015 01:45:56 +0000 (01:45 +0000)]
llvm-go: Add flag for specifying path to go command.

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

llvm-svn: 229209

9 years agoCodeGen: Canonicalize access to function attributes, NFC
Duncan P. N. Exon Smith [Sat, 14 Feb 2015 01:44:41 +0000 (01:44 +0000)]
CodeGen: Canonicalize access to function attributes, NFC

Canonicalize access to function attributes to use the simpler API.

getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind)
  => getFnAttribute(Kind)

getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind)
  => hasFnAttribute(Kind)

Also, add `Function::getFnStackAlignment()`, and canonicalize:

getAttributes().getStackAlignment(AttributeSet::FunctionIndex)
  => getFnStackAlignment()

llvm-svn: 229208

9 years agoAddress post-commit review comments
Jonathan Roelofs [Sat, 14 Feb 2015 01:38:35 +0000 (01:38 +0000)]
Address post-commit review comments

llvm-svn: 229207

9 years ago[X86] Factor out the CMOV pseudo definitions. NFCI.
Ahmed Bougacha [Sat, 14 Feb 2015 01:36:53 +0000 (01:36 +0000)]
[X86] Factor out the CMOV pseudo definitions. NFCI.

llvm-svn: 229206

9 years agoRevert "Revert r229082 for a bit, it caused PR22577."
David Majnemer [Sat, 14 Feb 2015 01:35:12 +0000 (01:35 +0000)]
Revert "Revert r229082 for a bit, it caused PR22577."

This reverts commit r229123.  It was a red herring, the bug was present
without r229082.

llvm-svn: 229205

9 years agoCodeGen: Correctly convert atomic bool from i8 to i1
David Majnemer [Sat, 14 Feb 2015 01:35:07 +0000 (01:35 +0000)]
CodeGen: Correctly convert atomic bool from i8 to i1

Bools are a little tricky, they are i8 in memory and must be coerced
back to i1 before further operations can be performed on them.

This fixes PR22577.

llvm-svn: 229204

9 years agoRevert "On ELF, put PIC jump tables in a non executable section."
Matthias Braun [Sat, 14 Feb 2015 01:16:54 +0000 (01:16 +0000)]
Revert "On ELF, put PIC jump tables in a non executable section."

This reverts commit r228939.

The commit broke something in the output of exception handling tables on
darwin x86-64.

llvm-svn: 229203

9 years agoTransforms: Canonicalize access to function attributes, NFC
Duncan P. N. Exon Smith [Sat, 14 Feb 2015 01:11:29 +0000 (01:11 +0000)]
Transforms: Canonicalize access to function attributes, NFC

Canonicalize access to function attributes to use the simpler API.

getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind)
  => getFnAttribute(Kind)

getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind)
  => hasFnAttribute(Kind)

llvm-svn: 229202

9 years agoCorrectly handle N_INDR nlist entries and don't rely on the trie information in order...
Greg Clayton [Sat, 14 Feb 2015 00:51:13 +0000 (00:51 +0000)]
Correctly handle N_INDR nlist entries and don't rely on the trie information in order to reproduce them since this dyld trie info can be missing.

<rdar://problem/19749670>

llvm-svn: 229201

9 years ago[modules] Split off a separate module for DebugInfo/PDB/DIA so that its headers
Richard Smith [Sat, 14 Feb 2015 00:47:20 +0000 (00:47 +0000)]
[modules] Split off a separate module for DebugInfo/PDB/DIA so that its headers
don't get included on systems where the DIA SDK is unavailable.

llvm-svn: 229200

9 years agoRevert r229185, "Raising minimum required Visual Studio version to 2013."
NAKAMURA Takumi [Sat, 14 Feb 2015 00:45:32 +0000 (00:45 +0000)]
Revert r229185, "Raising minimum required Visual Studio version to 2013."

All builders are not ready yet.

llvm-svn: 229199

9 years agoUpdate test case to be compatible with auto-migration to new getelementptr syntax...
David Blaikie [Sat, 14 Feb 2015 00:41:07 +0000 (00:41 +0000)]
Update test case to be compatible with auto-migration to new getelementptr syntax coming in the near future

The first change won't touch GEPOperators such as these, but the update
script only identifies them by the leading '(' after getelementptr or
'getelementptr inbounds', so update this test to at least have those
features to allow auto-migrating.

llvm-svn: 229198