oota-llvm.git
10 years agoSupport: improve identify_magic to recognize COFF bigobj
Rui Ueyama [Thu, 11 Sep 2014 21:09:57 +0000 (21:09 +0000)]
Support: improve identify_magic to recognize COFF bigobj

identify_magic recognized a COFF bigobj as an import library file.
This patch fixes that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217627 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMisc cleanups to the FileSytem api.
Rafael Espindola [Thu, 11 Sep 2014 20:30:02 +0000 (20:30 +0000)]
Misc cleanups to the FileSytem api.

The main difference is the removal of

std::error_code exists(const Twine &path, bool &result);

It was an horribly redundant interface since a file not existing is also a valid
error_code. Now we have an access function that returns just an error_code. This
is the only function that has to be implemented for Unix and Windows. The
functions can_write, exists and can_execute an now just wrappers.

One still has to be very careful using these function to avoid introducing
race conditions (Time of check to time of use).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217625 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd missing colon to RUN line...
Bill Schmidt [Thu, 11 Sep 2014 20:13:52 +0000 (20:13 +0000)]
Add missing colon to RUN line...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217623 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[PATCH, PowerPC] Accept 'U' and 'X' constraints in inline asm
Bill Schmidt [Thu, 11 Sep 2014 20:10:03 +0000 (20:10 +0000)]
[PATCH, PowerPC] Accept 'U' and 'X' constraints in inline asm

Inline asm may specify 'U' and 'X' constraints to print a 'u' for an
update-form memory reference, or an 'x' for an indexed-form memory
reference.  However, these are really only useful in GCC internal code
generation.  In inline asm the operand of the memory constraint is
typically just a register containing the address, so 'U' and 'X' make
no sense.

This patch quietly accepts 'U' and 'X' in inline asm patterns, but
otherwise does nothing.  If we ever unexpectedly see a non-register,
we'll assert and sort it out afterwards.

I've added a new test for these constraints; the test case should be
used for other asm-constraints changes down the road.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217622 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[MCJIT] Add support for ARM HALF_DIFF relocations to MCJIT.
Lang Hames [Thu, 11 Sep 2014 19:21:14 +0000 (19:21 +0000)]
[MCJIT] Add support for ARM HALF_DIFF relocations to MCJIT.

Fixes <rdar://problem/18297804>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217620 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUse simpler version of sys::fs::exists. NFC.
Rafael Espindola [Thu, 11 Sep 2014 19:11:02 +0000 (19:11 +0000)]
Use simpler version of sys::fs::exists. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217618 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUse the simpler sys::fs:;exists. NFC.
Rafael Espindola [Thu, 11 Sep 2014 18:44:26 +0000 (18:44 +0000)]
Use the simpler sys::fs:;exists. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217617 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd triple to test to fix bots
Matt Arsenault [Thu, 11 Sep 2014 17:50:20 +0000 (17:50 +0000)]
Add triple to test to fix bots

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217612 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoProvide an implementation of getNoopForMachoTarget for SPARC.
Brad Smith [Thu, 11 Sep 2014 17:40:51 +0000 (17:40 +0000)]
Provide an implementation of getNoopForMachoTarget for SPARC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217611 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd DAG combine for shl + add of constants.
Matt Arsenault [Thu, 11 Sep 2014 17:34:19 +0000 (17:34 +0000)]
Add DAG combine for shl + add of constants.

Do
 (shl (add x, c1), c2) -> (add (shl x, c2), c1 << c2)

This is already done for multiplies, but since multiplies
by powers of two are turned into shifts, we also need
to handle it here.

This might want checks for isLegalAddImmediate to avoid
transforming an add of a legal immediate with one that isn't.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217610 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[MCJIT] Take the relocation addend into account when applying ARM MachO VANILLA
Lang Hames [Thu, 11 Sep 2014 17:27:01 +0000 (17:27 +0000)]
[MCJIT] Take the relocation addend into account when applying ARM MachO VANILLA
and BR24 relocations.

<rdar://problem/18296496>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217605 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdded missing LLVM_NOEXCEPT to the definition of _obj2yaml_error_category::name
Ismail Pazarbasi [Thu, 11 Sep 2014 17:19:54 +0000 (17:19 +0000)]
Added missing LLVM_NOEXCEPT to the definition of _obj2yaml_error_category::name

LLVM_NOEXCEPT was added in r210591.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217603 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AVX512] Fix miscompile for unpack
Adam Nemet [Thu, 11 Sep 2014 16:51:10 +0000 (16:51 +0000)]
[AVX512] Fix miscompile for unpack

r189189 implemented AVX512 unpack by essentially performing a 256-bit unpack
between the low and the high 256 bits of src1 into the low part of the
destination and another unpack of the low and high 256 bits of src2 into the
high part of the destination.

I don't think that's how unpack works.  AVX512 unpack simply has more 128-bit
lanes but other than it works the same way as AVX.  So in each 128-bit lane,
we're always interleaving certain parts of both operands rather different
parts of one of the operands.

E.g. for this:
__v16sf a = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
__v16sf b = { 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 };
__v16sf c = __builtin_shufflevector(a, b, 0, 8, 1, 9, 4, 12, 5, 13, 16,
                  24, 17, 25, 20, 28, 21, 29);

we generated punpcklps (notice how the elements of a and b are not interleaved
in the shuffle).  In turn, c was set to this:

  0 16 1 17 4 20 5 21 8 24 9 25 12 28 13 29

Obviously this should have just returned the mask vector of the shuffle
vector.

I mostly reverted this change and made sure the original AVX code worked
for 512-bit vectors as well.

Also updated the tests because they matched the logic from the code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217602 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd triple and remove hashes to account for buildbot differences in comment strings.
Sanjay Patel [Thu, 11 Sep 2014 16:08:44 +0000 (16:08 +0000)]
Add triple and remove hashes to account for buildbot differences in comment strings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217601 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMove constant-sized bitvector to the stack.
Benjamin Kramer [Thu, 11 Sep 2014 15:58:39 +0000 (15:58 +0000)]
Move constant-sized bitvector to the stack.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217600 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoCombine fmul vector FP constants when unsafe math is allowed.
Sanjay Patel [Thu, 11 Sep 2014 15:45:27 +0000 (15:45 +0000)]
Combine fmul vector FP constants when unsafe math is allowed.

This is an extension of the change made with r215820:
http://llvm.org/viewvc/llvm-project?view=revision&revision=215820

That patch allowed combining of splatted vector FP constants that are multiplied.

This patch allows combining non-uniform vector FP constants too by relaxing the
check on the type of vector. Also, canonicalize a vector fmul in the
same way that we already do for scalars - if only one operand of the fmul is a
constant, make it operand 1. Otherwise, we miss potential folds.

This fold is also done by -instcombine, but it's possible that extra
fmuls may have been generated during lowering.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217599 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agotypo
Sanjay Patel [Thu, 11 Sep 2014 15:41:01 +0000 (15:41 +0000)]
typo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217597 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600: Add cmpxchg instruction for evergreen
Aaron Watry [Thu, 11 Sep 2014 15:02:54 +0000 (15:02 +0000)]
R600: Add cmpxchg instruction for evergreen

Refactored the R600_LDS_1A2D class a bit to get it to actually work.

It seemed to be previously unused and broken.

We also have to disable the conversion to the noret variant for now in
R600ISelLowering because the getLDSNoRetOp method only handles 1A1D LDS ops.

Someone can feel free to modify the AMDGPU::getLDSNoRetOp method to
work for more than 1A1D variants of LDS operations. It's being left as a
future TODO for now.

Signed-off-by: Aaron Watry <awatry at gmail.com>
Reviewed-by: Matt Arsenault <matthew.arsenault@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217596 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600: Test local atomics for evergreen
Aaron Watry [Thu, 11 Sep 2014 15:02:52 +0000 (15:02 +0000)]
R600: Test local atomics for evergreen

Now that the operations are all implemented, we can test this sub-arch here.

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Matt Arsenault <matthew.arsenault@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217595 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600: Add LDS_WRXCHG[_RET] instructions for Evergreen.
Aaron Watry [Thu, 11 Sep 2014 15:02:49 +0000 (15:02 +0000)]
R600: Add LDS_WRXCHG[_RET] instructions for Evergreen.

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Matt Arsenault <matthew.arsenault@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217594 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600: Add LDS_MIN_[U]INT[_RET] instructions for Evergreen
Aaron Watry [Thu, 11 Sep 2014 15:02:47 +0000 (15:02 +0000)]
R600: Add LDS_MIN_[U]INT[_RET] instructions for Evergreen

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Matt Arsenault <matthew.arsenault@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217593 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600: Add LDS_XOR[_RET] instructions for Evergreen
Aaron Watry [Thu, 11 Sep 2014 15:02:46 +0000 (15:02 +0000)]
R600: Add LDS_XOR[_RET] instructions for Evergreen

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Matt Arsenault <matthew.arsenault@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217592 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600: Add LDS_OR[_RET] instructions for Evergreen
Aaron Watry [Thu, 11 Sep 2014 15:02:44 +0000 (15:02 +0000)]
R600: Add LDS_OR[_RET] instructions for Evergreen

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Matt Arsenault <matthew.arsenault@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217591 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600: Add LDS_AND[_RET] instructions for Evergreen
Aaron Watry [Thu, 11 Sep 2014 15:02:43 +0000 (15:02 +0000)]
R600: Add LDS_AND[_RET] instructions for Evergreen

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Matt Arsenault <matthew.arsenault@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217590 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600: Add LDS_MAX_[U]INT[_RET] instructions for Evergreen
Aaron Watry [Thu, 11 Sep 2014 15:02:41 +0000 (15:02 +0000)]
R600: Add LDS_MAX_[U]INT[_RET] instructions for Evergreen

This was only present for SI before.

Cayman may still be missing, but I am unable to test that currently.

v2: Don't create atomicrmw max tests in separate file

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Matt Arsenault <matthew.arsenault@amd.com>
CC: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217589 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[docs] Mention character array constants in docs/LangRef.rst
Daniel Sanders [Thu, 11 Sep 2014 12:02:59 +0000 (12:02 +0000)]
[docs] Mention character array constants in docs/LangRef.rst

Summary:
They were used in the 'Module Structure' example but weren't otherwise
documented.

Credit to Reed Kotler for noticing.

Reviewers: hans

Reviewed By: hans

Subscribers: hans, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217583 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[ARM] Add Thumb-2 code size optimization regression test for LSR (register).
Tilmann Scheller [Thu, 11 Sep 2014 10:45:50 +0000 (10:45 +0000)]
[ARM] Add Thumb-2 code size optimization regression test for LSR (register).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217582 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[ARM] Add Thumb-2 code size optimization regression test for LSR (immediate).
Tilmann Scheller [Thu, 11 Sep 2014 10:42:17 +0000 (10:42 +0000)]
[ARM] Add Thumb-2 code size optimization regression test for LSR (immediate).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217581 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64] Reenable the PBQP test now that the leak issue has been fixed.
Arnaud A. de Grandmaison [Thu, 11 Sep 2014 10:39:52 +0000 (10:39 +0000)]
[AArch64] Reenable the PBQP test now that the leak issue has been fixed.

David Blaikie's commits r217563 & r217564, which added shared_ptr to the
CostPool have fixed some memory leak issues exposed by the PBQP with
coalescing constraints.

The sanitizer bot was failing because of those leaks. Now that the leaks
are gone, we can reenable the aarch64/pbqp test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217580 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[ARM] Add Thumb-2 code size optimization regression test for LSL (register).
Tilmann Scheller [Thu, 11 Sep 2014 10:33:39 +0000 (10:33 +0000)]
[ARM] Add Thumb-2 code size optimization regression test for LSL (register).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217579 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[ARM] Add Thumb2 code size optimization regression test for LSL (immediate).
Tilmann Scheller [Thu, 11 Sep 2014 10:29:42 +0000 (10:29 +0000)]
[ARM] Add Thumb2 code size optimization regression test for LSL (immediate).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217576 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[x86] Fixup r217565 which baked in an assumption about the function
Chandler Carruth [Thu, 11 Sep 2014 10:21:25 +0000 (10:21 +0000)]
[x86] Fixup r217565 which baked in an assumption about the function
name that breaks on some platforms. This part of the test just doesn't
matter...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217575 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AlignmentFromAssumptions] Don't crash just because the target is 32-bit
Hal Finkel [Thu, 11 Sep 2014 08:40:17 +0000 (08:40 +0000)]
[AlignmentFromAssumptions] Don't crash just because the target is 32-bit

We used to crash processing any relevant @llvm.assume on a 32-bit target
(because we'd ask SE to subtract expressions of differing types). I've copied
our 'simple.ll' test, but with the data layout from arm-linux-gnueabihf to get
some meaningful test coverage here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217574 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoBuild correct vector filled with undef nodes
David Xu [Thu, 11 Sep 2014 05:10:28 +0000 (05:10 +0000)]
Build correct vector filled with undef nodes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217570 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoutils: Teach lldbDataFormatters how to format ArrayRefs
Justin Bogner [Thu, 11 Sep 2014 01:47:38 +0000 (01:47 +0000)]
utils: Teach lldbDataFormatters how to format ArrayRefs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217567 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[x86] FileCheck-ize this test.
Chandler Carruth [Thu, 11 Sep 2014 00:13:35 +0000 (00:13 +0000)]
[x86] FileCheck-ize this test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217565 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUse CostPool::PoolRef typedef some more
David Blaikie [Thu, 11 Sep 2014 00:08:54 +0000 (00:08 +0000)]
Use CostPool::PoolRef typedef some more

Cleanup to 217563 suggested by Lang Hames in post-commit review.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217564 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoshared_ptrify ownershp of PoolEntries in PBQP's CostPool
David Blaikie [Wed, 10 Sep 2014 23:54:45 +0000 (23:54 +0000)]
shared_ptrify ownershp of PoolEntries in PBQP's CostPool

Leveraging both intrusive shared_ptr-ing (std::enable_shared_from_this)
and shared_ptr<T>-owning-U (to allow external users to hold
std::shared_ptr<CostT> while keeping the underlying PoolEntry alive).

The intrusiveness could be removed if we had a weak_set that implicitly
removed items from the set when their underlying data went away.

This /might/ fix an existing memory leak reported by LeakSanitizer in
r217504.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217563 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600/SI: Fix losing chain when fixing reg class of loads.
Matt Arsenault [Wed, 10 Sep 2014 23:26:19 +0000 (23:26 +0000)]
R600/SI: Fix losing chain when fixing reg class of loads.

The lost chain resulting in earlier side effecting nodes
being deleted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217561 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600/SI: Report offset in correct units for st64 DS instructions
Matt Arsenault [Wed, 10 Sep 2014 23:26:16 +0000 (23:26 +0000)]
R600/SI: Report offset in correct units for st64 DS instructions

Need to convert the 64 element offset into bytes, not just the element
size like the normal case instructions.

Noticed by inspection. This can't be hit now because
st64 instructions aren't emitted during instruction selection,
and the post-RA scheduler isn't enabled.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217560 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd LLVMgold target to test dependencies.
Peter Collingbourne [Wed, 10 Sep 2014 22:20:49 +0000 (22:20 +0000)]
Add LLVMgold target to test dependencies.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217557 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600: Custom lower frem
Matt Arsenault [Wed, 10 Sep 2014 21:44:27 +0000 (21:44 +0000)]
R600: Custom lower frem

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217553 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd doInitialization/doFinalization to DataLayoutPass.
Rafael Espindola [Wed, 10 Sep 2014 21:27:43 +0000 (21:27 +0000)]
Add doInitialization/doFinalization to DataLayoutPass.

With this a DataLayoutPass can be reused for multiple modules.

Once we have doInitialization/doFinalization, it doesn't seem necessary to pass
a Module to the constructor.

Overall this change seems in line with the idea of making DataLayout a required
part of Module. With it the only way of having a DataLayout used is to add it
to the Module.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217548 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoEnable use of __builtin_assume_aligned when self-hosting
Hal Finkel [Wed, 10 Sep 2014 21:06:11 +0000 (21:06 +0000)]
Enable use of __builtin_assume_aligned when self-hosting

Clang/LLVM trunk now have support for __builtin_assume_aligned, turn this &&
into an || so we can use it ourselves.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217545 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AlignmentFromAssumptions] Don't divide by zero for unknown starting alignment
Hal Finkel [Wed, 10 Sep 2014 21:05:52 +0000 (21:05 +0000)]
[AlignmentFromAssumptions] Don't divide by zero for unknown starting alignment

The routine that determines an alignment given some SCEV returns zero if the
answer is unknown. In a case where we could determine the increment of an
AddRec but not the starting alignment, we would compute the integer modulus by
zero (which is illegal and traps). Prevent this by returning early if either
the start or increment alignment is unknown (zero).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217544 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[sphinx cleanup]
Dan Liew [Wed, 10 Sep 2014 20:43:03 +0000 (20:43 +0000)]
[sphinx cleanup]
Fix sphinx warning introduced by r217537

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217541 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64] Revert r216141 for cyclone
Gerolf Hoflehner [Wed, 10 Sep 2014 20:31:57 +0000 (20:31 +0000)]
[AArch64] Revert r216141 for cyclone

The increase of the interleave factor to 4 has side-effects
like performance losses eg. due to reminder loops being executed
more frequently and may increase code size. It requires more
analysis and careful heuristic tuning. Expect double digit gains
in small benchmarks like lowercase.c and losses in puzzle.c.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217540 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[PassManager] Adding Hidden attribute to EnableMLSM option
Gerolf Hoflehner [Wed, 10 Sep 2014 20:24:03 +0000 (20:24 +0000)]
[PassManager] Adding Hidden attribute to EnableMLSM option

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217539 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[MergedLoadStoreMotion] Move pass enabling option to PassManagerBuilder
Gerolf Hoflehner [Wed, 10 Sep 2014 19:55:29 +0000 (19:55 +0000)]
[MergedLoadStoreMotion] Move pass enabling option to PassManagerBuilder

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217538 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix docs reference to inexistent class.
Nico Weber [Wed, 10 Sep 2014 19:50:55 +0000 (19:50 +0000)]
Fix docs reference to inexistent class.

Patch sent via telegraph by TNorthover. Thanks!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217537 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemember to eraseFromParent after replaceAllUsesWith.
Rafael Espindola [Wed, 10 Sep 2014 19:39:41 +0000 (19:39 +0000)]
Remember to eraseFromParent after replaceAllUsesWith.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217536 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoCleanup: Use the appropriate API for accessing the DIVariable of a
Adrian Prantl [Wed, 10 Sep 2014 18:52:29 +0000 (18:52 +0000)]
Cleanup: Use the appropriate API for accessing the DIVariable of a
DBG_VALUE intrinsic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217533 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64] Temporarily desactivate the PBQP test, while I investigate some leaks in...
Arnaud A. de Grandmaison [Wed, 10 Sep 2014 18:40:18 +0000 (18:40 +0000)]
[AArch64] Temporarily desactivate the PBQP test, while I investigate some leaks in the allocator

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217531 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMake CallingConv::ID an alias of "unsigned".
Alexey Samsonov [Wed, 10 Sep 2014 18:00:17 +0000 (18:00 +0000)]
Make CallingConv::ID an alias of "unsigned".

Summary:
Make CallingConv::ID a plain unsigned instead of enum with a
fixed set of valus. LLVM IR allows arbitraty calling conventions (you are
free to write cc12345), and loading them as enum is an undefined
behavior. This was reported by UBSan.

Test Plan: llvm regression test suite

Reviewers: nicholas

Reviewed By: nicholas

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217529 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRename getMaximumUnrollFactor -> getMaxInterleaveFactor; also rename option names...
Sanjay Patel [Wed, 10 Sep 2014 17:58:16 +0000 (17:58 +0000)]
Rename getMaximumUnrollFactor -> getMaxInterleaveFactor; also rename option names controlling this variable.

"Unroll" is not the appropriate name for this variable. Clang already uses
the term "interleave" in pragmas and metadata for this.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217528 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemoved misleading comment.
Gerolf Hoflehner [Wed, 10 Sep 2014 17:54:50 +0000 (17:54 +0000)]
Removed misleading comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217527 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdded missing blank
Gerolf Hoflehner [Wed, 10 Sep 2014 17:52:27 +0000 (17:52 +0000)]
Added missing blank

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217526 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoLangRef: @baz should be @bar in the COMDAT example
Hans Wennborg [Wed, 10 Sep 2014 17:05:08 +0000 (17:05 +0000)]
LangRef: @baz should be @bar in the COMDAT example

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217520 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64] Address Chad's post commit review comments for r217504 (PBQP experimental...
Arnaud A. de Grandmaison [Wed, 10 Sep 2014 17:03:25 +0000 (17:03 +0000)]
[AArch64] Address Chad's post commit review comments for r217504 (PBQP experimental support)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217518 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agotypo
Sanjay Patel [Wed, 10 Sep 2014 16:58:40 +0000 (16:58 +0000)]
typo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217516 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix comments of createReplaceableForwardDecl() and createForwardDecl().
Frederic Riss [Wed, 10 Sep 2014 16:03:14 +0000 (16:03 +0000)]
Fix comments of createReplaceableForwardDecl() and createForwardDecl().

Noticed while trying to understand how the merge of forward decalred types
and defintions work.

Reviewers: echristo, dblaikie, aprantl

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217514 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoReplace a few virtual with override.
Rafael Espindola [Wed, 10 Sep 2014 15:50:08 +0000 (15:50 +0000)]
Replace a few virtual with override.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217513 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64] Pacify lld buildbot complaining about an unused static function in release...
Arnaud A. de Grandmaison [Wed, 10 Sep 2014 14:24:02 +0000 (14:24 +0000)]
[AArch64] Pacify lld buildbot complaining about an unused static function in release build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217505 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64] Add experimental PBQP support
Arnaud A. de Grandmaison [Wed, 10 Sep 2014 14:06:10 +0000 (14:06 +0000)]
[AArch64] Add experimental PBQP support

This adds target specific support for using the PBQP register allocator on the
AArch64, for the A57 cpu.

By default, the PBQP allocator is not used, unless explicitely required
on the command line with "-aarch64-pbqp".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217504 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch 64] Use a constant pool load for weak symbol references when
Asiri Rathnayake [Wed, 10 Sep 2014 13:54:38 +0000 (13:54 +0000)]
[AArch 64] Use a constant pool load for weak symbol references when
using static relocation model and small code model.

Summary: currently we generate GOT based relocations for weak symbol
references regardless of the underlying relocation model. This should
be change so that in static relocation model we use a constant pool
load instead.

Patch from: Keith Walker

Reviewers: Renato Golin, Tim Northover

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217503 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd missing HWEncoding to base register class.
Sid Manning [Wed, 10 Sep 2014 13:09:25 +0000 (13:09 +0000)]
Add missing HWEncoding to base register class.

This change gives tblgen the information needed to fill in the
HexagonRegEncodingTable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217500 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAttempt to pacify buildbots.
David Majnemer [Wed, 10 Sep 2014 13:01:03 +0000 (13:01 +0000)]
Attempt to pacify buildbots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217499 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoARM: don't size-reduce STMs using the LR register.
Tim Northover [Wed, 10 Sep 2014 12:53:28 +0000 (12:53 +0000)]
ARM: don't size-reduce STMs using the LR register.

The only Thumb-1 multi-store capable of using LR is the PUSH instruction, which
translates to STMDB, so we shouldn't convert STMIAs.

Patch by Sergey Dmitrouk.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217498 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoObject: Add support for bigobj
David Majnemer [Wed, 10 Sep 2014 12:51:52 +0000 (12:51 +0000)]
Object: Add support for bigobj

This adds support for reading the "bigobj" variant of COFF produced by
cl's /bigobj and mingw's -mbig-obj.

The most significant difference that bigobj brings is more than 2**16
sections to COFF.

bigobj brings a few interesting differences with it:
- It doesn't have a Characteristics field in the file header.
- It doesn't have a SizeOfOptionalHeader field in the file header (it's
  only used in executable files).
- Auxiliary symbol records have the same width as a symbol table entry.
  Since symbol table entries are bigger, so are auxiliary symbol
  records.

Write support will come soon.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217496 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[mips] Remove inverted predicates from MipsSubtarget that were only used by MipsCalli...
Daniel Sanders [Wed, 10 Sep 2014 12:02:27 +0000 (12:02 +0000)]
[mips] Remove inverted predicates from MipsSubtarget that were only used by MipsCallingConv.td

Summary: No functional change

Reviewers: echristo, vmedic

Reviewed By: echristo, vmedic

Subscribers: echristo, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217494 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDon't attempt to run llvm-config in cmake/modules/Makefile when doing
Dan Liew [Wed, 10 Sep 2014 11:09:23 +0000 (11:09 +0000)]
Don't attempt to run llvm-config in cmake/modules/Makefile when doing
``make clean`` because it won't be available.

This is an attempt to unbreak buildbots broken by r217484.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217490 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFunctionPassManager isn't used by the JIT anymore, it is used in
Yaron Keren [Wed, 10 Sep 2014 10:48:06 +0000 (10:48 +0000)]
FunctionPassManager isn't used by the JIT anymore, it is used in
clang EmitAssemblyHelper::CreatePasses() in BackendUtil.cpp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217488 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[mips] Return an ArrayRef from MipsCC::intArgRegs() and remove MipsCC::numIntArgRegs()
Daniel Sanders [Wed, 10 Sep 2014 10:37:03 +0000 (10:37 +0000)]
[mips] Return an ArrayRef from MipsCC::intArgRegs() and remove MipsCC::numIntArgRegs()

Summary: No functional change.

Reviewers: vmedic

Reviewed By: vmedic

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217485 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAttempt to fix PR20884
Dan Liew [Wed, 10 Sep 2014 10:18:59 +0000 (10:18 +0000)]
Attempt to fix PR20884

This fixes the generation of broken LLVMExports.cmake file by
the Autoconf/Makefile build system when --enable-shared is passed to
configure.

When --enable_shared is passed the Makefile.rules does not set the
LLVMConfigLibs variable which cmake/modules/Makefile previously relied
on. Now it runs the llvm-config command itself to get the library names.

This still isn't perfect because the generated LLVM targets refer to the
static libraries and not the shared library but that is much larger
problem to fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217484 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMergeFunctions: FunctionPtr has been renamed to FunctionNode.
Stepan Dyatkovskiy [Wed, 10 Sep 2014 10:08:25 +0000 (10:08 +0000)]
MergeFunctions: FunctionPtr has been renamed to FunctionNode.
It's supposed to store additional pass information for current function here.
That was the reason for name change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217483 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[asan-assembly-instrumentation] Added CFI directives to the generated instrumentation...
Yuri Gorshenin [Wed, 10 Sep 2014 09:45:49 +0000 (09:45 +0000)]
[asan-assembly-instrumentation] Added CFI directives to the generated instrumentation code.

Summary: [asan-assembly-instrumentation] Added CFI directives to the generated instrumentation code.

Reviewers: eugenis

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217482 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDrop the W postfix on the 16-bit registers.
Job Noorman [Wed, 10 Sep 2014 06:58:14 +0000 (06:58 +0000)]
Drop the W postfix on the 16-bit registers.

This ensures the inline assembly register constraints are properly recognised in
TargetLowering::getRegForInlineAsmConstraint.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217479 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Remove an overly system specific test
Justin Bogner [Wed, 10 Sep 2014 06:35:38 +0000 (06:35 +0000)]
llvm-cov: Remove an overly system specific test

It appears that the -filename-equivalence option for testing llvm-cov
doesn't work correctly with -show-expansions. I'm reverting this test
to get the bots green while I look into fixing that.

This partially reverts r217476

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217478 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[MIPS] Add aliases for sync instruction used by Octeon CPU
Kai Nacke [Wed, 10 Sep 2014 06:10:24 +0000 (06:10 +0000)]
[MIPS] Add aliases for sync instruction used by Octeon CPU

This commit adds aliases for the sync instruction (synciobdma,
syncs, syncw, syncws) which are used by the Octeon CPU.

Reviewed by D. Sanders

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217477 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Fix a misuse of ArrayRef::slice I introduced in r217430
Justin Bogner [Wed, 10 Sep 2014 06:06:07 +0000 (06:06 +0000)]
llvm-cov: Fix a misuse of ArrayRef::slice I introduced in r217430

It appears this code was completely untested, so using ArrayRef wrong
didn't break anything obvious.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217476 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUse cast to MVT instead of EVT on a couple calls to getSizeInBits.
Craig Topper [Wed, 10 Sep 2014 04:51:36 +0000 (04:51 +0000)]
Use cast to MVT instead of EVT on a couple calls to getSizeInBits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217473 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[MCJIT] Remove redundant architecture check from RuntimeDyldMachOI386.
Lang Hames [Wed, 10 Sep 2014 00:13:42 +0000 (00:13 +0000)]
[MCJIT] Remove redundant architecture check from RuntimeDyldMachOI386.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217470 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSink PrevCU updating into DwarfUnit::addRange to ensure consistency
David Blaikie [Tue, 9 Sep 2014 23:13:01 +0000 (23:13 +0000)]
Sink PrevCU updating into DwarfUnit::addRange to ensure consistency

So that the two operations in DwarfDebug couldn't get separated (because
I accidentally separated them in some work in progress), put them
together. While we're here, move DwarfUnit::addRange to
DwarfCompileUnit, since it's not relevant to type units.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217468 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemove DwarfDebug::PrevSection, PrevCU is sufficient for handling address range holes.
David Blaikie [Tue, 9 Sep 2014 22:56:36 +0000 (22:56 +0000)]
Remove DwarfDebug::PrevSection, PrevCU is sufficient for handling address range holes.

PrevSection/PrevCU are used to detect holes in the address range of a CU
to ensure the DW_AT_ranges does not include those holes. When we see a
function with no debug info, though it may be in the same range as the
prior and subsequent functions, there should be a gap in the CU's
ranges. By setting PrevCU to null in that case, the range would not be
extended to cover the gap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217466 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSampleProfile.cpp: Prune a stray \param added in r217437. [-Wdocumentation]
NAKAMURA Takumi [Tue, 9 Sep 2014 22:44:30 +0000 (22:44 +0000)]
SampleProfile.cpp: Prune a stray \param added in r217437. [-Wdocumentation]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217465 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoHandle common linkage correctly in the gold plugin.
Rafael Espindola [Tue, 9 Sep 2014 20:08:22 +0000 (20:08 +0000)]
Handle common linkage correctly in the gold plugin.

This is the plugin version of pr20882.

This handles the case of every common symbol being in the IR. We will need some
support from gold to handle the case where some symbols are in ELF and some in
the IR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217458 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd a scheduling model for AMD 16H Jaguar (btver2).
Sanjay Patel [Tue, 9 Sep 2014 20:07:07 +0000 (20:07 +0000)]
Add a scheduling model for AMD 16H Jaguar (btver2).

This is a first pass at a scheduling model for Jaguar.
It's structured largely on the existing SandyBridge and SLM sched models.

Using this model, in addition to turning on the PostRA scheduler, results in
some perf wins on internal and 3rd party benchmarks. There's not much difference
in LLVM's test-suite benchmarking subset of tests.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217457 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMerge alignment of common GlobalValue.
Rafael Espindola [Tue, 9 Sep 2014 17:48:18 +0000 (17:48 +0000)]
Merge alignment of common GlobalValue.

Fixes pr20882.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217455 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUse armv6k default for FreeBSD/ARM
Ed Maste [Tue, 9 Sep 2014 17:47:24 +0000 (17:47 +0000)]
Use armv6k default for FreeBSD/ARM

Patch by Andrew Turner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217454 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd a test for hoisting instructions with metadata out of then/else blocks
Bjorn Steinbrink [Tue, 9 Sep 2014 17:10:21 +0000 (17:10 +0000)]
Add a test for hoisting instructions with metadata out of then/else blocks

Test for the bug fixed in r215723.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217453 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoWhen merging two common GlobalValues, keep the largest.
Rafael Espindola [Tue, 9 Sep 2014 15:59:12 +0000 (15:59 +0000)]
When merging two common GlobalValues, keep the largest.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217451 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMake this input file pass the verifier.
Rafael Espindola [Tue, 9 Sep 2014 15:40:12 +0000 (15:40 +0000)]
Make this input file pass the verifier.

This was not noticed before because llvm-link only runs the verifier on the
result and these globals were not present in the result.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217450 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMove some logic to ModuleLinker::shouldLinkFromSource. NFC.
Rafael Espindola [Tue, 9 Sep 2014 15:21:00 +0000 (15:21 +0000)]
Move some logic to  ModuleLinker::shouldLinkFromSource. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217449 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoScalarOpts/LLVMBuild.txt: Prune unused dependency to IPA.
NAKAMURA Takumi [Tue, 9 Sep 2014 15:00:38 +0000 (15:00 +0000)]
ScalarOpts/LLVMBuild.txt: Prune unused dependency to IPA.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217448 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoScalarOpts/LLVMBuild.txt: Reorder.
NAKAMURA Takumi [Tue, 9 Sep 2014 15:00:26 +0000 (15:00 +0000)]
ScalarOpts/LLVMBuild.txt: Reorder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217447 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoLLVMProfileData: Update LLVMBuild.txt corresponding to r217437.
NAKAMURA Takumi [Tue, 9 Sep 2014 15:00:13 +0000 (15:00 +0000)]
LLVMProfileData: Update LLVMBuild.txt corresponding to r217437.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217446 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix a use of an undefined value (the linkage).
Rafael Espindola [Tue, 9 Sep 2014 14:52:27 +0000 (14:52 +0000)]
Fix a use of an undefined value (the linkage).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217445 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoPrefer common over weak linkage when linking.
Rafael Espindola [Tue, 9 Sep 2014 14:27:09 +0000 (14:27 +0000)]
Prefer common over weak linkage when linking.

This matches the behavior of ELF linkers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217443 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSimplify ModuleLinker::getLinkageResult. NFC.
Rafael Espindola [Tue, 9 Sep 2014 14:07:40 +0000 (14:07 +0000)]
Simplify ModuleLinker::getLinkageResult. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217441 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[mips] Add assembler support for .set mips0 directive.
Toma Tabacu [Tue, 9 Sep 2014 12:52:14 +0000 (12:52 +0000)]
[mips] Add assembler support for .set mips0 directive.

Summary:
This directive is used to reset the assembler options to their initial values.
Assembly programmers use it in conjunction with the ".set mipsX" directives.

This patch depends on the .set push/pop directive (http://reviews.llvm.org/D4821).

Contains work done by Matheus Almeida.

Reviewers: dsanders

Reviewed By: dsanders

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217438 91177308-0d34-0410-b5e6-96231b3b80d8