Tobias Grosser [Wed, 2 Nov 2011 19:51:04 +0000 (19:51 +0000)]
docs: Fix two typos
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143565
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 19:48:19 +0000 (19:48 +0000)]
build/Make: Update for rename of show-diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143564
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 2 Nov 2011 19:33:41 +0000 (19:33 +0000)]
object: Add operator < for SymbolRef and SectionRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143563
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 2 Nov 2011 19:33:26 +0000 (19:33 +0000)]
object/COFF: Properly initalize uses of DataRefImpl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143562
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 2 Nov 2011 19:33:12 +0000 (19:33 +0000)]
Object/Archive: Add symbol table iteration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143561
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 2 Nov 2011 18:08:25 +0000 (18:08 +0000)]
Add support for comparing integer non-legal types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143559
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 2 Nov 2011 18:03:14 +0000 (18:03 +0000)]
Fix the issue that r143552 was trying to address the _right_ way. One-register lists are legal on LDM/STM instructions, but we should not print the PUSH/POP aliases when they appear. This fixes round tripping on this instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143557
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Wed, 2 Nov 2011 17:56:38 +0000 (17:56 +0000)]
Replace tabs I added in this new line of code with spaces.
Thanks to Nick for spotting this!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143556
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 17:54:51 +0000 (17:54 +0000)]
tests: Clean up tests/CMakeLists.txt to drop some variable configuration we no
longer need substitutions for.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143555
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 2 Nov 2011 17:46:18 +0000 (17:46 +0000)]
The rules disallowing single-register reglist operands only apply to the POP alias, not to LDM/STM instructions. Revert r143552.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143553
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 2 Nov 2011 17:41:23 +0000 (17:41 +0000)]
Register list operands are not allowed to contain only a single register. Alternate encodings are used in that case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143552
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 2 Nov 2011 17:24:36 +0000 (17:24 +0000)]
Don't print two 0x prefixes when printing an address.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143549
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Nov 2011 17:22:57 +0000 (17:22 +0000)]
Add back the top-level target for 'llvm-config' and the dependency edge
to force it to build after all library targets so it has complete
dependency information. This should fix broken 'make install' with
CMake.
This is a partial revert of r143540, but it doesn't revert the most
important part of that change: removing the dependency edge from LLVM
tools to the llvm-config script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143548
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 2 Nov 2011 17:20:24 +0000 (17:20 +0000)]
Factor out an EmitIntExt function. No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143547
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 2 Nov 2011 17:19:57 +0000 (17:19 +0000)]
Rewrite LinearFunctionTestReplace to handle pointer-type IVs.
We've been hitting asserts in this code due to the many supported
combintions of modes (iv-rewrite/no-iv-rewrite) and IV types. This
second rewrite of the code attempts to deal with these cases systematically.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143546
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Nov 2011 16:55:57 +0000 (16:55 +0000)]
Fix a typo noticed by Peter Collingbourne. No one depends on this
working today, but it shouldn't corrupt state for some poor soul to
debug later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143545
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 15:57:05 +0000 (15:57 +0000)]
docs: Remove an out-of-date and unnecessary tool list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143544
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 15:56:58 +0000 (15:56 +0000)]
docs: Separate development process type of documentation from programming
documentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143543
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 15:56:55 +0000 (15:56 +0000)]
docs: Remove UsingLibraries page, which was inaccurate / out-of-date and not
particularly useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143542
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 15:56:52 +0000 (15:56 +0000)]
build/Make: Get rid of llvm-config-perobj, which isn't used anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143541
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 2 Nov 2011 15:56:38 +0000 (15:56 +0000)]
build/CMake: Remove llvm-config.target used to serialize tool builds on
llvm-config build, there is no longer a point to this after Chandler's work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143540
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Nov 2011 07:17:12 +0000 (07:17 +0000)]
Begin collecting some of the statistics for block placement discussed on
the mailing list. Suggestions for other statistics to collect would be
awesome. =]
Currently these are implemented as a separate pass guarded by a separate
flag. I'm not thrilled by that, but I wanted to be able to collect the
statistics for the old code placement as well as the new in order to
have a point of comparison. I'm planning on folding them into the single
pass if / when there is only one pass of interest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143537
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 2 Nov 2011 06:54:17 +0000 (06:54 +0000)]
More AVX2 instructions and intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143536
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Nov 2011 05:43:44 +0000 (05:43 +0000)]
Add parentheses to disambiguate the precedence of these operations and
silence -Wparentheses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143534
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Wed, 2 Nov 2011 05:03:06 +0000 (05:03 +0000)]
The TableGen parts of the CMake build are seriously broken. This fixes
one aspect of them by having them use the (annoying, if not broken)
proper library dependency model for adding the LLVMTableGen library as
a dependency. This could manifest as a link order issue in the presence
of separate LLVM / Clang source builds with CMake and a linker that
really cares about such things.
Also, add the Support dependency to llvm-tblgen itself so that it
doesn't rely on TableGen's transitive Support dependency. A parallel
change for clang-tblgen will be forthcoming.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143531
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 2 Nov 2011 04:42:13 +0000 (04:42 +0000)]
Add a bunch more X86 AVX2 instructions and their corresponding intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143529
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 2 Nov 2011 00:44:16 +0000 (00:44 +0000)]
Rename show-diagnostics to something less ambiguous.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143525
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Wed, 2 Nov 2011 00:24:56 +0000 (00:24 +0000)]
Add support to the linker to lazily link in functions. This change only links functions marked with specific linkage (internal, private, linker_private, linker_private_weak, linker_private_weak_def_auto, linkonce, linkonce_odr, and available_externally) if they have uses in the destination module. Instead of automatically linking, these functions are placed onto a worklist to be processed in the final stage of linking. We iterate over the list and if any functions on the list have uses in the destination module, we link them in and repeat the process until no changes in the state (uses) has changed. This means that any functions in the LazilyLink worklist that have a use in the destination module will be linked in and none that don't.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143524
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 2 Nov 2011 00:18:48 +0000 (00:18 +0000)]
Factor out a SelectTrunc function. No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143523
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 2 Nov 2011 00:02:45 +0000 (00:02 +0000)]
Broaden an assert to handle enable-iv-rewrite=true following r143183.
Narrowest possible fix for PR11279.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143522
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Tue, 1 Nov 2011 23:39:05 +0000 (23:39 +0000)]
Fixed a bug in the code to create a dwarf file and directory table entires when
it is separating the directory part from the basename of the FileName. Noticed
that this:
.file 1 "dir/foo"
when assembled got the two parts switched. Using the Mac OS X dwarfdump tool
it can be seen easily:
% dwarfdump -a a.out
include_directories[ 1] = 'foo'
Dir Mod Time File Len File Name
---- ---------- ---------- ---------------------------
file_names[ 1] 1 0x00000000 0x00000000 dir
...
Which should be:
...
include_directories[ 1] = 'dir'
Dir Mod Time File Len File Name
---- ---------- ---------- ---------------------------
file_names[ 1] 1 0x00000000 0x00000000 foo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143521
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 1 Nov 2011 22:38:31 +0000 (22:38 +0000)]
ARM label operands can be quoted.
For example, labels from Objective-C sources.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143511
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 1 Nov 2011 22:37:37 +0000 (22:37 +0000)]
ARM label operands can have an optional '#' before them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143510
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Tue, 1 Nov 2011 22:27:22 +0000 (22:27 +0000)]
First part of support for generating dwarf for assembly source files with the
-g flag. In this part we generate the .file for the source being assembled and
the .loc's for the assembled instructions.
The next part will be to generate the dwarf Compile Unit DIE and a dwarf
subprogram DIE for each non-temporary label.
Once the next part is done test cases will be added. rdar://
9275556
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143509
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 1 Nov 2011 22:18:13 +0000 (22:18 +0000)]
Fix disassembly of some VST1 instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143507
91177308-0d34-0410-b5e6-
96231b3b80d8
Sebastian Pop [Tue, 1 Nov 2011 21:32:20 +0000 (21:32 +0000)]
rename getHostTriple into getDefaultTargetTriple
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143502
91177308-0d34-0410-b5e6-
96231b3b80d8
Sebastian Pop [Tue, 1 Nov 2011 21:31:44 +0000 (21:31 +0000)]
rename LLVM_HOSTTRIPLE into LLVM_DEFAULT_TARGET_TRIPLE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143501
91177308-0d34-0410-b5e6-
96231b3b80d8
Sebastian Pop [Tue, 1 Nov 2011 21:30:04 +0000 (21:30 +0000)]
derive LLVM_HOSTTRIPLE from target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143500
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 21:18:39 +0000 (21:18 +0000)]
Teach the x86 backend a couple tricks for dealing with v16i8 sra by a constant splat value. Fixes PR11289.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143498
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 1 Nov 2011 18:10:23 +0000 (18:10 +0000)]
Ignore MachO symbol flags in the upper nibble of n_desc.
They don't impact the MCJIT rtdyld, so just mask them off for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143472
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 1 Nov 2011 17:46:12 +0000 (17:46 +0000)]
Support/Compiler: Add LLVM_EXTENSION for use where we want to hide pedantic diags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143468
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Tue, 1 Nov 2011 11:31:53 +0000 (11:31 +0000)]
Don't fold negative offsets into cp / dp accesses to avoid relocation errors.
This can happen if the address + addend is less than the start of the cp / dp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143459
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Tue, 1 Nov 2011 10:51:48 +0000 (10:51 +0000)]
Combine various XCore tests for floating point intrinsic support into a single test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143458
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Tue, 1 Nov 2011 10:41:28 +0000 (10:41 +0000)]
Move various XCore tests to FileCheck
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143457
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Tue, 1 Nov 2011 07:25:22 +0000 (07:25 +0000)]
Fix operand type for x86 pmadd_ub_sw intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143455
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 05:11:01 +0000 (05:11 +0000)]
Remove a couple unused methods. PR11201.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143452
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 04:49:29 +0000 (04:49 +0000)]
Make sure we use the right insertion point when instcombine replaces a PHI with another instruction. (Specifically, don't insert an arbitrary instruction before a PHI.) Fixes PR11275.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143437
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 04:40:56 +0000 (04:40 +0000)]
A couple misc fixes so that bugpoint doesn't explode reducing code containing landingpads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143435
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 1 Nov 2011 04:08:23 +0000 (04:08 +0000)]
Add LuaAV to external projects list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143431
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 03:21:48 +0000 (03:21 +0000)]
Move x86-specific tests into X86 folder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143424
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 03:21:17 +0000 (03:21 +0000)]
Remove empty directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143422
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 03:12:47 +0000 (03:12 +0000)]
Move another test requiring x86 into X86 directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143421
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 1 Nov 2011 03:11:41 +0000 (03:11 +0000)]
Move test requiring x86 backend into X86 directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143420
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 1 Nov 2011 01:24:45 +0000 (01:24 +0000)]
ARM VLD/VST assembly parsing for symbolic address operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143413
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 1 Nov 2011 00:02:31 +0000 (00:02 +0000)]
Update split candidate correctly when interference cache is full.
No test case, spotted by inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143407
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 31 Oct 2011 23:59:22 +0000 (23:59 +0000)]
Add support for new atomics to cpp backend. Misc other fixes while I'm here. PR11268.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143406
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 31 Oct 2011 23:58:51 +0000 (23:58 +0000)]
Add utility to append a function to the list of global constructors.
Patch by Kostya Serebryany.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143405
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Beaumont-Gay [Mon, 31 Oct 2011 23:56:52 +0000 (23:56 +0000)]
Change the actual tests to match the input directory rename (duh)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143404
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Mon, 31 Oct 2011 23:46:50 +0000 (23:46 +0000)]
Reapply r141657.
Also revert the change to CREATE_SUBDIRS as this is what caused the CSS to break on the website and generate the much longer URLs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143401
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Beaumont-Gay [Mon, 31 Oct 2011 23:46:38 +0000 (23:46 +0000)]
Rename "TestObjectFiles" to "Inputs" (like the pattern for Clang tests)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143400
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 31 Oct 2011 21:50:31 +0000 (21:50 +0000)]
ARM VST1 w/ writeback assembly parsing and encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143369
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 31 Oct 2011 21:23:15 +0000 (21:23 +0000)]
Update 'Getting Started' to suggest using GCC 4.2 or higher (or Clang). There is no reason to support older versions of GCC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143366
91177308-0d34-0410-b5e6-
96231b3b80d8
Galina Kistanova [Mon, 31 Oct 2011 21:13:06 +0000 (21:13 +0000)]
Added instruction how to add a builder to docs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143365
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Mon, 31 Oct 2011 20:08:25 +0000 (20:08 +0000)]
Cleanup. Document. Make sure that this build_vector optimization only runs before the op legalizer and that the used type is legal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143358
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 31 Oct 2011 19:11:23 +0000 (19:11 +0000)]
ARM writeback vs. stride operands for VST/VLD.
The _fixed variants have a writeback operand, but not a stride operand.
Split the conditional flag to distinguish the cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143356
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 31 Oct 2011 17:23:09 +0000 (17:23 +0000)]
Move test to the X86 directory, note the PR number and only run MC once.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143352
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 31 Oct 2011 17:17:32 +0000 (17:17 +0000)]
More not-crashing NEON disassembly updates for the vld refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143351
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Mon, 31 Oct 2011 13:04:26 +0000 (13:04 +0000)]
docs/*.html: Fix markups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143349
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Mon, 31 Oct 2011 11:21:59 +0000 (11:21 +0000)]
docs/*.html: Appease W3C Checker to add "charset=utf-8".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143348
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Mon, 31 Oct 2011 07:16:37 +0000 (07:16 +0000)]
Fix operand type for int_x86_ssse3_phadd_sw_128 intrinsic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143336
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Mon, 31 Oct 2011 02:15:47 +0000 (02:15 +0000)]
Test case for X86 FS/GS Base intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143332
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Mon, 31 Oct 2011 02:15:10 +0000 (02:15 +0000)]
Begin adding AVX2 instructions. No selection support yet other than intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143331
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 31 Oct 2011 01:32:21 +0000 (01:32 +0000)]
Close <div> that was indenting the rest of the page.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143328
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 31 Oct 2011 01:06:02 +0000 (01:06 +0000)]
Switch new .file directive emission off by default, change llc's flag for it to
-enable-dwarf-directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143326
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sun, 30 Oct 2011 19:57:21 +0000 (19:57 +0000)]
Add intrinsics and feature flag for read/write FS/GS base instructions. Also add AVX2 feature flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143319
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sun, 30 Oct 2011 19:56:36 +0000 (19:56 +0000)]
Reapply commit 143214 with a fix: m_ICmp doesn't match conditions
with the given predicate, it matches any condition and returns the
predicate - d'oh! Original commit message:
The expression icmp eq (select (icmp eq x, 0), 1, x), 0 folds to false.
Spotted by my super-optimizer in 186.crafty and 450.soplex. We really
need a proper infrastructure for handling generalizations of this kind
of thing (which occur a lot), however this case is so simple that I decided
to go ahead and implement it directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143318
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sun, 30 Oct 2011 18:33:35 +0000 (18:33 +0000)]
Mark X86 pcmpeq b/w/d intrinsics as being Commutative. pcmpeqq is already marked as Commutative.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143317
91177308-0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Sun, 30 Oct 2011 17:46:34 +0000 (17:46 +0000)]
Teach ModuleLinker::getLinkageResult about materialisable functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143316
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sun, 30 Oct 2011 17:31:21 +0000 (17:31 +0000)]
X86: Emit logical shift by constant splat of <16 x i8> as a <8 x i16> shift and zero out the bits where zeros should've been shifted in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143315
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sun, 30 Oct 2011 17:22:45 +0000 (17:22 +0000)]
Fix return type for X86 mpsadbw instrinsic. The instruction takes in a vector of 8-bit integers, but produces a vector of 16-bit integers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143313
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sun, 30 Oct 2011 13:24:22 +0000 (13:24 +0000)]
Fix pr11266.
On x86: (shl V, 1) -> add V,V
Hardware support for vector-shift is sparse and in many cases we scalarize the
result. Additionally, on sandybridge padd is faster than shl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143311
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sun, 30 Oct 2011 08:39:55 +0000 (08:39 +0000)]
Silence compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143308
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sun, 30 Oct 2011 08:07:50 +0000 (08:07 +0000)]
Stabilize the test by specifying an exact cpu target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143307
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Divacky [Sun, 30 Oct 2011 07:49:04 +0000 (07:49 +0000)]
Update on PPC32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143306
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 29 Oct 2011 23:49:52 +0000 (23:49 +0000)]
Do a relative path ln command instead of an absolute path one. Some people strangely enough have different directory layouts...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143302
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Sat, 29 Oct 2011 23:42:14 +0000 (23:42 +0000)]
CREDITS.TXT: Add a line. (test commit)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143300
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sat, 29 Oct 2011 21:23:04 +0000 (21:23 +0000)]
Add a new DAGCombine optimization for BUILD_VECTOR.
If all of the inputs are zero/any_extended, create a new simple BV
which can be further optimized by other BV optimizations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143297
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 29 Oct 2011 19:43:44 +0000 (19:43 +0000)]
Force SSE for this test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143291
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 29 Oct 2011 19:43:38 +0000 (19:43 +0000)]
PPC: Disable moves for all CR subregisters.
Should fix assertion failures on ppc buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143290
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 29 Oct 2011 19:43:31 +0000 (19:43 +0000)]
SimplifyLibCalls: Use IRBuilder.CreateGlobalString when creating a string for printf->puts, which correctly sets the unnamed_addr bit on the resulting GlobalVariable.
Fixes PR11264.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143289
91177308-0d34-0410-b5e6-
96231b3b80d8
llvm [Sat, 29 Oct 2011 14:16:39 +0000 (14:16 +0000)]
Test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143277
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 29 Oct 2011 01:11:15 +0000 (01:11 +0000)]
Revise ThreadSanitizer mention so that it lists the correct frontends.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143268
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sat, 29 Oct 2011 01:10:01 +0000 (01:10 +0000)]
Add Cling to the External Projects list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143267
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Sat, 29 Oct 2011 00:56:07 +0000 (00:56 +0000)]
Revert r143214; it's breaking a bunch of stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143265
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 29 Oct 2011 00:41:52 +0000 (00:41 +0000)]
Revert r143206, as there are still some failing tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143262
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 28 Oct 2011 23:11:03 +0000 (23:11 +0000)]
test/CodeGen/PowerPC/2008-10-17-AsmMatchingOperands.ll: [PR11218] Mark "REQUIRES: asserts" for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143247
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 28 Oct 2011 22:50:54 +0000 (22:50 +0000)]
ARM mode 'mov' to 'mvn' assembler alias.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143237
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 28 Oct 2011 22:36:30 +0000 (22:36 +0000)]
Add Thumb2 alias for "mov Rd, #imm" to "mvn Rd, #~imm".
When '~imm' is encodable as a t2_so_imm but plain 'imm' is not. For example,
mov r2, #-3
becomes
mvn r2, #2
rdar://
10349224
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143235
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 28 Oct 2011 22:32:53 +0000 (22:32 +0000)]
Allow InstAlias's to use immediate matcher patterns that xform the value.
For example,
On ARM, "mov r3, #-3" is an alias for "mvn r3, #2", so we want to use a
matcher pattern that handles the bitwise negation when mapping to t2MVNi.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143233
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 28 Oct 2011 21:45:09 +0000 (21:45 +0000)]
Fix illegal disassembly testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143231
91177308-0d34-0410-b5e6-
96231b3b80d8