oota-llvm.git
10 years ago[mips][msa] Added support for matching fmadd.[wd] from normal IR (i.e. not intrinsics)
Daniel Sanders [Fri, 11 Oct 2013 10:14:25 +0000 (10:14 +0000)]
[mips][msa] Added support for matching fmadd.[wd] from normal IR (i.e. not intrinsics)

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

10 years ago[mips][msa] Added support for matching ffint_[us].[wd], and ftrunc_[us].[wd] from...
Daniel Sanders [Fri, 11 Oct 2013 10:00:06 +0000 (10:00 +0000)]
[mips][msa] Added support for matching ffint_[us].[wd], and ftrunc_[us].[wd] from normal IR (i.e. not intrinsics)

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

10 years agoRemove another unnecessary filter from the disassembler.
Craig Topper [Fri, 11 Oct 2013 06:59:57 +0000 (06:59 +0000)]
Remove another unnecessary filter from the disassembler.

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

10 years agoLiveRangeCalc.h: Update a description corresponding to r192396. [-Wdocumentation]
NAKAMURA Takumi [Fri, 11 Oct 2013 04:52:03 +0000 (04:52 +0000)]
LiveRangeCalc.h: Update a description corresponding to r192396. [-Wdocumentation]

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

10 years agoImplement aarch64 neon instruction set AdvSIMD (copy).
Kevin Qin [Fri, 11 Oct 2013 02:33:55 +0000 (02:33 +0000)]
Implement aarch64 neon instruction set AdvSIMD (copy).

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

10 years agoFix typo
Matt Arsenault [Thu, 10 Oct 2013 23:05:37 +0000 (23:05 +0000)]
Fix typo

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

10 years agoTests: Do not unnecessarily depend on kill comments
Matthias Braun [Thu, 10 Oct 2013 22:37:49 +0000 (22:37 +0000)]
Tests: Do not unnecessarily depend on kill comments

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

10 years agoTests: Use CHECK-LABEL where possible
Matthias Braun [Thu, 10 Oct 2013 22:37:47 +0000 (22:37 +0000)]
Tests: Use CHECK-LABEL where possible

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

10 years agoPrint register in LiveInterval::print()
Matthias Braun [Thu, 10 Oct 2013 21:29:05 +0000 (21:29 +0000)]
Print register in LiveInterval::print()

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

10 years agoRepresent RegUnit liveness with LiveRange instance
Matthias Braun [Thu, 10 Oct 2013 21:29:02 +0000 (21:29 +0000)]
Represent RegUnit liveness with LiveRange instance

Previously LiveInterval has been used, but having a spill weight and
register number is unnecessary for a register unit.

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

10 years agoWork on LiveRange instead of LiveInterval where possible
Matthias Braun [Thu, 10 Oct 2013 21:28:57 +0000 (21:28 +0000)]
Work on LiveRange instead of LiveInterval where possible

Also change some pointer arguments to references at some places where
0-pointers are not allowed.

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

10 years agoChange MachineVerifier to work on LiveRange + LiveInterval
Matthias Braun [Thu, 10 Oct 2013 21:28:54 +0000 (21:28 +0000)]
Change MachineVerifier to work on LiveRange + LiveInterval

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

10 years agoPass LiveQueryResult by value
Matthias Braun [Thu, 10 Oct 2013 21:28:52 +0000 (21:28 +0000)]
Pass LiveQueryResult by value

This makes the API a bit more natural to use and makes it easier to make
LiveRanges implementation details private.

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

10 years agoRefactor LiveInterval: introduce new LiveRange class
Matthias Braun [Thu, 10 Oct 2013 21:28:47 +0000 (21:28 +0000)]
Refactor LiveInterval: introduce new LiveRange class

LiveRange just manages a list of segments and a list of value numbers
now as LiveInterval did previously, but without having details like spill
weight or a fixed register number.
LiveInterval is now a subclass of LiveRange and simply adds the spill weight
and the register number.

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

10 years agoRename LiveRange to LiveInterval::Segment
Matthias Braun [Thu, 10 Oct 2013 21:28:43 +0000 (21:28 +0000)]
Rename LiveRange to LiveInterval::Segment

The Segment struct contains a single interval; multiple instances of this struct
are used to construct a live range, but the struct is not a live range by
itself.

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

10 years agoRename parameter: defined regs are not incoming.
Matthias Braun [Thu, 10 Oct 2013 21:28:38 +0000 (21:28 +0000)]
Rename parameter: defined regs are not incoming.

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

10 years agotest commit
Sriram Murali [Thu, 10 Oct 2013 20:24:53 +0000 (20:24 +0000)]
test commit

- fix comments on vector type legalization

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

10 years agoUse getPointerSizeInBits() rather than 8 * getPointerSize()
Matt Arsenault [Thu, 10 Oct 2013 19:09:05 +0000 (19:09 +0000)]
Use getPointerSizeInBits() rather than 8 * getPointerSize()

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

10 years agoFix grammar / missing words
Matt Arsenault [Thu, 10 Oct 2013 18:47:35 +0000 (18:47 +0000)]
Fix grammar / missing words

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

10 years agoDebug Info: In DIBuilder, the context field of subprogram is updated to use
Manman Ren [Thu, 10 Oct 2013 18:40:01 +0000 (18:40 +0000)]
Debug Info: In DIBuilder, the context field of subprogram is updated to use
DIScopeRef.

A paired commit at clang is required due to changes to DIBuilder.

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

10 years agoAdd comments to debug info testing case.
Manman Ren [Thu, 10 Oct 2013 18:13:17 +0000 (18:13 +0000)]
Add comments to debug info testing case.

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

10 years agoR600: Fix trunc i64 to i32 on SI
Matt Arsenault [Thu, 10 Oct 2013 18:04:16 +0000 (18:04 +0000)]
R600: Fix trunc i64 to i32 on SI

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

10 years agoProvide msbuild integration for vs2013.
Hans Wennborg [Thu, 10 Oct 2013 17:32:01 +0000 (17:32 +0000)]
Provide msbuild integration for vs2013.

Patch by Josh Samuel!

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

10 years agoFix msbuild integration install script.
Hans Wennborg [Thu, 10 Oct 2013 17:31:54 +0000 (17:31 +0000)]
Fix msbuild integration install script.

We previously failed to check whether the SUCCESS variable was set,
and would thus always exit with a failure if vs2012 didn't exist.

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

10 years agoR600/SI: Implement SIInstrInfo::verifyInstruction() for VOP*
Tom Stellard [Thu, 10 Oct 2013 17:11:55 +0000 (17:11 +0000)]
R600/SI: Implement SIInstrInfo::verifyInstruction() for VOP*

The function is used by the machine verifier and checks that VOP*
instructions have legal operands.

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

10 years agoR600/SI: Use -verify-machineinstrs for most tests
Tom Stellard [Thu, 10 Oct 2013 17:11:46 +0000 (17:11 +0000)]
R600/SI: Use -verify-machineinstrs for most tests

We can't enable the verifier for tests with SI_IF and SI_ELSE, because
these instructions are always followed by a COPY which copies their
result to the next basic block.  This violates the machine verifier's
rule that non-terminators can not folow terminators.

Reviewed-by: Vincent Lejeune<vljn at ovi.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192366 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600/SI: Define a separate MIMG instruction for each possible output value type
Tom Stellard [Thu, 10 Oct 2013 17:11:24 +0000 (17:11 +0000)]
R600/SI: Define a separate MIMG instruction for each possible output value type

During instruction selection, we rewrite the destination register
class for MIMG instructions based on their writemasks.  This creates
machine verifier errors since the new register class does not match
the register class in the MIMG instruction definition.

We can avoid this by defining different MIMG instructions for each
possible destination type and then switching to the correct instruction
when we change the register class.

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

10 years agoR600/SI: Mark the EXEC register as reserved
Tom Stellard [Thu, 10 Oct 2013 17:11:19 +0000 (17:11 +0000)]
R600/SI: Mark the EXEC register as reserved

This prevents the machine verifier from complaining about uses of
an undefined physical register.

Reviewed-by: Vincent Lejeune<vljn at ovi.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192364 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600: Use StructurizeCFGPass for non SI targets
Tom Stellard [Thu, 10 Oct 2013 17:11:12 +0000 (17:11 +0000)]
R600: Use StructurizeCFGPass for non SI targets

StructurizeCFG pass allows to make complex cfg reducible ; it allows a lot of
shader from shadertoy (which exhibits complex control flow constructs) to works
correctly with respect to CFG handling (and allow us to detect potential bug in
other part of the backend).

We provide a cmd line argument to disable the pass for debug purpose.

Patch by: Vincent Lejeune

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192363 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoImplement AArch64 vector load/store multiple N-element structure class SIMD(lselem).
Hao Liu [Thu, 10 Oct 2013 17:00:52 +0000 (17:00 +0000)]
Implement AArch64 vector load/store multiple N-element structure class SIMD(lselem).
Including following 14 instructions:
4 ld1 insts: load multiple 1-element structure to sequential 1/2/3/4 registers.
ld2/ld3/ld4: load multiple N-element structure to sequential N registers (N=2,3,4).
4 st1 insts: store multiple 1-element structure from sequential 1/2/3/4 registers.
st2/st3/st4: store multiple N-element structure from sequential N registers (N = 2,3,4).

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

10 years agoRevert "Implement AArch64 vector load/store multiple N-element structure class SIMD...
Rafael Espindola [Thu, 10 Oct 2013 15:15:17 +0000 (15:15 +0000)]
Revert "Implement AArch64 vector load/store multiple N-element structure class SIMD(lselem). Including following 14 instructions: 4 ld1 insts: load multiple 1-element structure to sequential 1/2/3/4 registers. ld2/ld3/ld4: load multiple N-element structure to sequential N registers (N=2,3,4). 4 st1 insts: store multiple 1-element structure from sequential 1/2/3/4 registers. st2/st3/st4: store multiple N-element structure from sequential N registers (N = 2,3,4)."

This reverts commit r192352. It broke the build.

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

10 years agoImplement AArch64 vector load/store multiple N-element structure class SIMD(lselem).
Hao Liu [Thu, 10 Oct 2013 15:01:24 +0000 (15:01 +0000)]
Implement AArch64 vector load/store multiple N-element structure class SIMD(lselem).
Including following 14 instructions:
4 ld1 insts: load multiple 1-element structure to sequential 1/2/3/4 registers.
ld2/ld3/ld4: load multiple N-element structure to sequential N registers (N=2,3,4).
4 st1 insts: store multiple 1-element structure from sequential 1/2/3/4 registers.
st2/st3/st4: store multiple N-element structure from sequential N registers (N = 2,3,4).

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

10 years agoARM: Put isV8EligibleForIT into the llvm namespace. While there make it inline.
Benjamin Kramer [Thu, 10 Oct 2013 14:35:45 +0000 (14:35 +0000)]
ARM: Put isV8EligibleForIT into the llvm namespace. While there make it inline.

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

10 years agoDisable function padding to get this test to pass on atom.
Benjamin Kramer [Thu, 10 Oct 2013 12:46:23 +0000 (12:46 +0000)]
Disable function padding to get this test to pass on atom.

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

10 years agoARM: correct liveness flags during ARMLoadStoreOpt
Tim Northover [Thu, 10 Oct 2013 09:28:20 +0000 (09:28 +0000)]
ARM: correct liveness flags during ARMLoadStoreOpt

When we had a sequence like:

    s1 = VLDRS [r0, 1], Q0<imp-def>
    s3 = VLDRS [r0, 2], Q0<imp-use,kill>, Q0<imp-def>
    s0 = VLDRS [r0, 0], Q0<imp-use,kill>, Q0<imp-def>
    s2 = VLDRS [r0, 4], Q0<imp-use,kill>, Q0<imp-def>

we were gathering the {s0, s1} loads below the s3 load. This is fine,
but confused the verifier since now the s3 load had Q0<imp-use> with
no definition above it.

This should mark such uses <undef> as well. The liveness structure at
the beginning and end of the block is unaffected, and the true sN
definitions should prevent any dodgy reorderings being introduced
elsewhere.

rdar://problem/15124449

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

10 years agoAllow non-AVX form of pmovmskb to take a GR64 operand.
Craig Topper [Thu, 10 Oct 2013 05:33:31 +0000 (05:33 +0000)]
Allow non-AVX form of pmovmskb to take a GR64 operand.

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

10 years agoRemove duplicate instructions.
Craig Topper [Thu, 10 Oct 2013 05:01:22 +0000 (05:01 +0000)]
Remove duplicate instructions.

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

10 years agoFix so CRC32r64r8 isn't accidentally filtered from the disassembler tables.
Craig Topper [Thu, 10 Oct 2013 04:26:52 +0000 (04:26 +0000)]
Fix so CRC32r64r8 isn't accidentally filtered from the disassembler tables.

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

10 years ago[mips] Do not generate INS/EXT nodes if target does not have support for
Akira Hatanaka [Wed, 9 Oct 2013 23:36:17 +0000 (23:36 +0000)]
[mips] Do not generate INS/EXT nodes if target does not have support for
ins/ext.

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

10 years agoRevert "llvm-c: Make target initializer functions external functions in lib."
Rui Ueyama [Wed, 9 Oct 2013 23:15:49 +0000 (23:15 +0000)]
Revert "llvm-c: Make target initializer functions external functions in lib."

This reverts commit r192316. The original change introduced circular
dependencies between libTarget and backends. That would broke a build unless
link everything into one big binary.

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

10 years agoDebug Info: In DIBuilder, the context and type fields of template_type and
Manman Ren [Wed, 9 Oct 2013 19:46:28 +0000 (19:46 +0000)]
Debug Info: In DIBuilder, the context and type fields of template_type and
template_value are updated to use DIRef.

A paired commit at clang is required due to changes to DIBuilder.

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

10 years agollvm-c: Make target initializer functions external functions in lib.
Anders Waldenborg [Wed, 9 Oct 2013 19:02:09 +0000 (19:02 +0000)]
llvm-c: Make target initializer functions external functions in lib.

Making them proper functions defined in the (shared)lib instead of
static inlines defined in the header files makes it possible to
actually distribute a binary compiled against the shared library
without having to worry about getting undefined symbol errors when
calling e.g LLVMInitializeAllTargetInfos because the shared library on
the other system was compiled with different targets.

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

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

10 years agoDebug Info: In DIBuilder, the context field of a forward decl is updated
Manman Ren [Wed, 9 Oct 2013 18:10:55 +0000 (18:10 +0000)]
Debug Info: In DIBuilder, the context field of a forward decl is updated
to use DIScopeRef.

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

10 years agoAdd missing releases.
Bill Wendling [Wed, 9 Oct 2013 17:37:04 +0000 (17:37 +0000)]
Add missing releases.

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

10 years agoFlip the ownership of MCStreamer and MCTargetStreamer.
Benjamin Kramer [Wed, 9 Oct 2013 17:23:41 +0000 (17:23 +0000)]
Flip the ownership of MCStreamer and MCTargetStreamer.

MCStreamer now owns the target streamer. This prevents leaking the target
streamer.

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

10 years agoFix a bug in Dead Argument Elimination.
Shuxin Yang [Wed, 9 Oct 2013 17:21:44 +0000 (17:21 +0000)]
Fix a bug in Dead Argument Elimination.

  If a function seen at compile time is not necessarily the one linked to
the binary being built, it is illegal to change the actual arguments
passing to it.

  e.g.
   --------------------------
   void foo(int lol) {
     // foo() has linkage satisifying isWeakForLinker()
     // "lol" is not used at all.
   }

   void bar(int lo2) {
      // xform to foo(undef) is illegal, as compiler dose not know which
      // instance of foo() will be linked to the the binary being built.
      foo(lol2);
   }
  -----------------------------

  Such functions can be captured by isWeakForLinker(). NOTE that
mayBeOverridden() is insufficient for this purpose as it dosen't include
linkage types like AvailableExternallyLinkage and LinkOnceODRLinkage.
Take link_odr* as an example, it indicates a set of *EQUIVALENT* globals
that can be merged at link-time. However, the semantic of
*EQUIVALENT*-functions includes parameters. Changing parameters breaks
the assumption.

  Thank John McCall for help, especially for the explanation of subtle
difference between linkage types.

  rdar://11546243

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

10 years agoAdd a GlobalAlias::isValidLinkage to reduce code duplication.
Rafael Espindola [Wed, 9 Oct 2013 16:07:32 +0000 (16:07 +0000)]
Add a GlobalAlias::isValidLinkage to reduce code duplication.

Thanks to Reid Kleckner for the suggestion.

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

10 years ago[Sparc] Disable tail call optimization for sparc64.
Venkatraman Govindaraju [Wed, 9 Oct 2013 12:50:39 +0000 (12:50 +0000)]
[Sparc] Disable tail call optimization for sparc64.

This patch fixes PR17506.

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

10 years agoTest commit. Remove whitespace from otherwise empty lines.
Greg Bedwell [Wed, 9 Oct 2013 08:55:27 +0000 (08:55 +0000)]
Test commit.  Remove whitespace from otherwise empty lines.

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

10 years agoAVX-512: Added VRCP28 and VRSQRT28 instructions and intrinsics.
Elena Demikhovsky [Wed, 9 Oct 2013 08:16:14 +0000 (08:16 +0000)]
AVX-512: Added VRCP28 and VRSQRT28 instructions and intrinsics.

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

10 years agoAArch64: enable MISched by default.
Tim Northover [Wed, 9 Oct 2013 07:53:57 +0000 (07:53 +0000)]
AArch64: enable MISched by default.

Substantial SelectionDAG scheduling is going away soon, and is
interfering with Hao's attempts to implement LDn/STn instructions, so
I say we make the leap first.

There were a few reorderings (inevitably) which broke some tests. I
tried to replace them with CHECK-DAG variants mostly, but some too
complex for that to be useful and I just reordered them.

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

10 years agoAArch64: migrate ADRP relaxation test to be llvm-mc only.
Tim Northover [Wed, 9 Oct 2013 07:53:49 +0000 (07:53 +0000)]
AArch64: migrate ADRP relaxation test to be llvm-mc only.

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

10 years agoMore x86 disassembler filtering cleanup.
Craig Topper [Wed, 9 Oct 2013 06:12:53 +0000 (06:12 +0000)]
More x86 disassembler filtering cleanup.

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

10 years agoAdd missing HasAVX512 predicate.
Andrew Trick [Wed, 9 Oct 2013 05:11:10 +0000 (05:11 +0000)]
Add missing HasAVX512 predicate.

This was only working because AVX had cheaper rules in all cases.
I'm sure there are other places in this file where predicates are missing.

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

10 years agoRemove some old filters from the x86 disassembler table builder.
Craig Topper [Wed, 9 Oct 2013 05:02:29 +0000 (05:02 +0000)]
Remove some old filters from the x86 disassembler table builder.

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

10 years agoReplace a couple instructions with patterns referring to other instructions with...
Craig Topper [Wed, 9 Oct 2013 04:54:21 +0000 (04:54 +0000)]
Replace a couple instructions with patterns referring to other instructions with same encoding and operands. Mark a couple other instructions as CodeGenOnly since we have FR and VR instructions and only one of them is needed by the assembler/disassembler.

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

10 years agoUse AVX512PIi8 for the alt forms of vcmp instructions. This adds the TB prefix and...
Craig Topper [Wed, 9 Oct 2013 04:24:38 +0000 (04:24 +0000)]
Use AVX512PIi8 for the alt forms of vcmp instructions. This adds the TB prefix and keeps the mnemonic from starting with an extra 'v'

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

10 years agoMark some instructions as CodeGenOnly since they aren't needed by the assembler or...
Craig Topper [Wed, 9 Oct 2013 03:56:16 +0000 (03:56 +0000)]
Mark some instructions as CodeGenOnly since they aren't needed by the assembler or disassembler. Disassembler already filtered them, but asm parser still had them in its tables.

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

10 years agoAdd in64BitMode/in32BitMode to the MMX/SSE2/AVX maskmovq/dq instructions. This way...
Craig Topper [Wed, 9 Oct 2013 02:18:34 +0000 (02:18 +0000)]
Add in64BitMode/in32BitMode to the MMX/SSE2/AVX maskmovq/dq instructions. This way the asm parser will pick the right one based on the mode. Instruction selection already did the right thing based on the pointer size.

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

10 years agoAdd a paragraph about MCTargetStreamer.
Rafael Espindola [Wed, 9 Oct 2013 02:05:08 +0000 (02:05 +0000)]
Add a paragraph about MCTargetStreamer.

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

10 years agollvm/test/LTO should run also on cygwin.
NAKAMURA Takumi [Wed, 9 Oct 2013 01:07:31 +0000 (01:07 +0000)]
llvm/test/LTO should run also on cygwin.

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

10 years agoDebug Info: In DIBuilder, the context field of a DICompositeType is updated
Manman Ren [Wed, 9 Oct 2013 00:17:04 +0000 (00:17 +0000)]
Debug Info: In DIBuilder, the context field of a DICompositeType is updated
to use DIScopeRef.

A paired commit at clang is required due to changes to DIBuilder.

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

10 years agoDebug Info: In DIBuilder, the context fields of a static member and a
Manman Ren [Tue, 8 Oct 2013 23:49:38 +0000 (23:49 +0000)]
Debug Info: In DIBuilder, the context fields of a static member and a
typedef are updated to use DIScopeRef.

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

10 years agoDebug Info: In DIBuilder, the derived-from field of DICompositeType
Manman Ren [Tue, 8 Oct 2013 23:28:51 +0000 (23:28 +0000)]
Debug Info: In DIBuilder, the derived-from field of DICompositeType
is updated to use DITypeRef.

A paired commit at clang is required due to changes to DIBuilder.

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

10 years agoDebug Info: In DIBuilder, the derived-from field of DIDerivedType
Manman Ren [Tue, 8 Oct 2013 22:56:31 +0000 (22:56 +0000)]
Debug Info: In DIBuilder, the derived-from field of DIDerivedType
is updated to use DITypeRef.

A paired commit at clang is required due to changes to DIBuilder.

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

10 years ago[AArch64] Add support for NEON scalar floating-point reciprocal estimate,
Chad Rosier [Tue, 8 Oct 2013 22:09:04 +0000 (22:09 +0000)]
[AArch64] Add support for NEON scalar floating-point reciprocal estimate,
reciprocal exponent, and reciprocal square root estimate instructions.

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

10 years agoFix duplicated assertions.
Matt Arsenault [Tue, 8 Oct 2013 21:11:12 +0000 (21:11 +0000)]
Fix duplicated assertions.

Do what some other instructions do, and add an assert method.

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

10 years ago[AArch64] Add support for NEON scalar signed/unsigned integer to floating-point
Chad Rosier [Tue, 8 Oct 2013 20:43:30 +0000 (20:43 +0000)]
[AArch64] Add support for NEON scalar signed/unsigned integer to floating-point
convert instructions.

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

10 years agoExplicitly request unsigned enum types when desired
Reid Kleckner [Tue, 8 Oct 2013 20:15:11 +0000 (20:15 +0000)]
Explicitly request unsigned enum types when desired

This fixes repeated -Wmicrosoft warnings when self-hosting clang on
Windows, and gets us real unsigned enum types with MSVC.

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

10 years agoDebug Info: update testing to reflect r192018.
Manman Ren [Tue, 8 Oct 2013 20:06:43 +0000 (20:06 +0000)]
Debug Info: update testing to reflect r192018.

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

10 years agoAdd fabsf to the list of inlined functions; otherwise
Reed Kotler [Tue, 8 Oct 2013 19:55:01 +0000 (19:55 +0000)]
Add fabsf to the list of inlined functions; otherwise
Mips16 will try and create a stub for it and this will
result in a link error because that function does not exist in libc.

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

10 years agoAdd DbgVariable::resolve per Eric's suggestion.
Manman Ren [Tue, 8 Oct 2013 19:07:44 +0000 (19:07 +0000)]
Add DbgVariable::resolve per Eric's suggestion.

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

10 years agoDebug Info: rename getOriginalTypeSize to getBaseTypeSize.
Manman Ren [Tue, 8 Oct 2013 18:46:58 +0000 (18:46 +0000)]
Debug Info: rename getOriginalTypeSize to getBaseTypeSize.

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

10 years agoDebug Info: take advantage of the existing CU::resolve.
Manman Ren [Tue, 8 Oct 2013 18:42:58 +0000 (18:42 +0000)]
Debug Info: take advantage of the existing CU::resolve.

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

10 years agoMove DIRef::getName out of line.
Manman Ren [Tue, 8 Oct 2013 18:42:03 +0000 (18:42 +0000)]
Move DIRef::getName out of line.

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

10 years ago[mips] Simplify and optimize code.
Akira Hatanaka [Tue, 8 Oct 2013 18:13:24 +0000 (18:13 +0000)]
[mips] Simplify and optimize code.

No intended functionality change.

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

10 years agoAdd some xfaild R600 tests.
Matt Arsenault [Tue, 8 Oct 2013 18:06:36 +0000 (18:06 +0000)]
Add some xfaild R600 tests.

These are bugs to fix later.

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

10 years agoIRBuilder: Downgrade InsertPointGuard's instruction pointer to a raw pointer.
Benjamin Kramer [Tue, 8 Oct 2013 17:44:56 +0000 (17:44 +0000)]
IRBuilder: Downgrade InsertPointGuard's instruction pointer to a raw pointer.

Sadly this loses the checking from AssertingVH, but apparently storing the
end() of a BasicBlock into an AssertingVH has bad consequences as it's not
really an instruction.

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

10 years agoLet rotr and bswap be handled by expansion for Mips16 since we don't
Reed Kotler [Tue, 8 Oct 2013 17:32:33 +0000 (17:32 +0000)]
Let rotr and bswap be handled by expansion for Mips16 since we don't
have native instructions for this.

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

10 years agoRemoving unintended code block from lli
Andrew Kaylor [Tue, 8 Oct 2013 17:15:11 +0000 (17:15 +0000)]
Removing unintended code block from lli

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

10 years agoGrammar.
Eric Christopher [Tue, 8 Oct 2013 16:47:11 +0000 (16:47 +0000)]
Grammar.

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

10 years agoFix build on Solaris 11.
Rafael Espindola [Tue, 8 Oct 2013 16:12:58 +0000 (16:12 +0000)]
Fix build on Solaris 11.

Patch by Vladimir Voskresensky. The erros were:

Path.inc:274:3: error: ‘Dl_info’ was not declared in this scope
...

and

usr/include/spawn.h:52:14: error: expected ‘,’ or ‘...’ before ‘argv’

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

10 years agoOnly modify lto.exports.def when contents have changed.
Rafael Espindola [Tue, 8 Oct 2013 15:07:00 +0000 (15:07 +0000)]
Only modify lto.exports.def when contents have changed.

Patch by Greg Bedwell.

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

10 years agoAdd a MCTargetStreamer interface.
Rafael Espindola [Tue, 8 Oct 2013 13:08:17 +0000 (13:08 +0000)]
Add a MCTargetStreamer interface.

This patch fixes an old FIXME by creating a MCTargetStreamer interface
and moving the target specific functions for ARM, Mips and PPC to it.

The ARM streamer is still declared in a common place because it is
used from lib/CodeGen/ARMException.cpp, but the Mips and PPC are
completely hidden in the corresponding Target directories.

I will send an email to llvmdev with instructions on how to use this.

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

10 years agoSparcJITInfo.cpp: Prune "default:" label to fix a warning. [-Wcovered-switch-default]
NAKAMURA Takumi [Tue, 8 Oct 2013 10:29:09 +0000 (10:29 +0000)]
SparcJITInfo.cpp: Prune "default:" label to fix a warning. [-Wcovered-switch-default]

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

10 years agoPrune trailing linefeeds.
NAKAMURA Takumi [Tue, 8 Oct 2013 10:29:03 +0000 (10:29 +0000)]
Prune trailing linefeeds.

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

10 years ago[Sparc] Implement JIT for SPARC.
Venkatraman Govindaraju [Tue, 8 Oct 2013 07:15:22 +0000 (07:15 +0000)]
[Sparc] Implement JIT for SPARC.

No new testcases. However, this patch makes all supported JIT testcases in
test/ExecutionEngine  pass on Sparc.

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

10 years agoRemove unneeded MMX instruction definition by moving pattern to an equivalent instruc...
Craig Topper [Tue, 8 Oct 2013 06:30:39 +0000 (06:30 +0000)]
Remove unneeded MMX instruction definition by moving pattern to an equivalent instruction definition and removing the filtering from the disassembler table building.

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

10 years agoFix a typo in the mattr part of the run line.
Craig Topper [Tue, 8 Oct 2013 06:12:26 +0000 (06:12 +0000)]
Fix a typo in the mattr part of the run line.

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

10 years agoExplicitly disable AVX on a bunch of tests so they won't fail on AVX machines post...
Craig Topper [Tue, 8 Oct 2013 06:06:57 +0000 (06:06 +0000)]
Explicitly disable AVX on a bunch of tests so they won't fail on AVX machines post r192171.

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

10 years agoRemove some instructions that existed to provide aliases to the assembler. Can be...
Craig Topper [Tue, 8 Oct 2013 05:53:50 +0000 (05:53 +0000)]
Remove some instructions that existed to provide aliases to the assembler. Can be done with InstAlias instead. Unfortunately, this was causing printer to use 'vmovq' or 'vmovd' based on what was parsed. To cleanup the inconsistencies convert all 'vmovd' with 64-bit registers to 'vmovq', but provide an alias so that 'vmovd' will still parse.

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

10 years ago[Sparc] Do not hardcode nop in the delay slot of TLS_CALL. Use DelaySlotFiller to...
Venkatraman Govindaraju [Tue, 8 Oct 2013 02:50:29 +0000 (02:50 +0000)]
[Sparc] Do not hardcode nop in the delay slot of TLS_CALL. Use DelaySlotFiller to fill the delay slot instead.

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

10 years agotypo.
Adrian Prantl [Tue, 8 Oct 2013 02:30:54 +0000 (02:30 +0000)]
typo.

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

10 years agotypo.
Adrian Prantl [Tue, 8 Oct 2013 02:28:20 +0000 (02:28 +0000)]
typo.

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

10 years agoReduce testcase from 1r92011.
Adrian Prantl [Tue, 8 Oct 2013 02:21:44 +0000 (02:21 +0000)]
Reduce testcase from 1r92011.

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

10 years agoupdate mach-o EXPORT_SYMBOL_* names
Nick Kledzik [Tue, 8 Oct 2013 00:59:13 +0000 (00:59 +0000)]
update mach-o EXPORT_SYMBOL_* names

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

10 years agocmake: don't set LLVM_COMPILER_IS_GCC_COMPATIBLE when using clang-cl
Hans Wennborg [Mon, 7 Oct 2013 22:03:23 +0000 (22:03 +0000)]
cmake: don't set LLVM_COMPILER_IS_GCC_COMPATIBLE when using clang-cl

Tip-of-tree CMake has become clang-cl aware [1]. In this case,
CMAKE_CXX_COMPILER_ID will still be Clang, but MSVC will be true.

[1] See http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3d8356d4

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

10 years agoWindows: Avoiding resizing, use uninitialized data() instead
David Majnemer [Mon, 7 Oct 2013 21:57:07 +0000 (21:57 +0000)]
Windows: Avoiding resizing, use uninitialized data() instead

This is ever-so faster but more importantly matches what we have elsewhere.

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

10 years ago[mips] Test case for r192124.
Akira Hatanaka [Mon, 7 Oct 2013 21:32:57 +0000 (21:32 +0000)]
[mips] Test case for r192124.

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

10 years agoLoopVectorize: External uses must use the last value in a reduction cycle
Arnold Schwaighofer [Mon, 7 Oct 2013 21:05:43 +0000 (21:05 +0000)]
LoopVectorize: External uses must use the last value in a reduction cycle

Otherwise, we don't perform operations that would have been performed on
the scalar version.

Fixes PR17498.

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