OSDN Git Service

android-x86/external-llvm.git
11 years agoFixed few warnings. ics-x86
Galina Kistanova [Fri, 13 Jul 2012 21:06:54 +0000 (21:06 +0000)]
Fixed few warnings.

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

12 years agoBuild more device libraries
Chih-Wei Huang [Wed, 22 Feb 2012 13:48:26 +0000 (21:48 +0800)]
Build more device libraries

The libraries are used by Mesa llvm support.

12 years agoAdd missing TBLGEN_TD_DIR
Logan Chien [Tue, 25 Oct 2011 13:01:52 +0000 (21:01 +0800)]
Add missing TBLGEN_TD_DIR

This commit fixes a potential build breakage.  Without
this commit, the LLVM might break the build due to
TBLGEN_TD_DIR is not set properly, and tblgen can no longer
find the *.td inputs.

Change-Id: Ia995ef0582f44e091c42734ae748224e19e79999

12 years agoBookkeeping.
Shih-wei Liao [Sat, 22 Oct 2011 10:07:39 +0000 (03:07 -0700)]
Bookkeeping.

Change-Id: I1124b938366be7ad0362ffdda681622cb521b0fb

12 years agoApply changes to migrate to upstream Oct 20th 2011.
Logan Chien [Fri, 21 Oct 2011 06:45:53 +0000 (14:45 +0800)]
Apply changes to migrate to upstream Oct 20th 2011.

Change-Id: I2bb819151f3fa5ce18690ef373bf071205d3f278

12 years agoMerge with LLVM upstream 2011/10/20 (r142530)
Logan Chien [Wed, 19 Oct 2011 16:08:13 +0000 (00:08 +0800)]
Merge with LLVM upstream 2011/10/20 (r142530)

Conflicts:
lib/Support/Unix/Host.inc

Change-Id: Idc00db3b63912dca6348bddd9f8a1af2a8d5d147

12 years agoUse literal pool loads instead of MOVW/MOVT for materializing global addresses when...
James Molloy [Wed, 19 Oct 2011 14:11:07 +0000 (14:11 +0000)]
Use literal pool loads instead of MOVW/MOVT for materializing global addresses when optimizing for size.

On spec/gcc, this caused a codesize improvement of ~1.9% for ARM mode and ~4.9% for Thumb(2) mode. This is
codesize including literal pools.

The pools themselves doubled in size for ARM mode and quintupled for Thumb mode, leaving suggestion that there
is still perhaps redundancy in LLVM's use of constant pools that could be decreased by sharing entries.

Fixes PR11087.

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

12 years agoDocument Paste
David Greene [Wed, 19 Oct 2011 13:04:59 +0000 (13:04 +0000)]
Document Paste

Document paste as a shorthand for !strconcat.

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

12 years agoDocument NAME
David Greene [Wed, 19 Oct 2011 13:04:56 +0000 (13:04 +0000)]
Document NAME

Document NAME as a special member of def records that should
not be defined anywhere else.

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

12 years agoAdd Paste Test
David Greene [Wed, 19 Oct 2011 13:04:50 +0000 (13:04 +0000)]
Add Paste Test

This tests TableGen's paste functionality.

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

12 years agoImplement Paste
David Greene [Wed, 19 Oct 2011 13:04:43 +0000 (13:04 +0000)]
Implement Paste

Add a paste operator '#' to take two identifier-like strings and joint
them.  Internally paste gets represented as a !strconcat() with any
necessary casts to string added.

This will be used to implement basic for loop functionality as in:

for i = [0, 1, 2, 3, 4, 5, 6, 7] {
  def R#i : Register<...>
}

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

12 years agoProcess NAME
David Greene [Wed, 19 Oct 2011 13:04:35 +0000 (13:04 +0000)]
Process NAME

During multiclass def instantiation, replace NAME in any expressions
with the value of the def or defm ID.

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

12 years agoProcess Defm Prefix as Init
David Greene [Wed, 19 Oct 2011 13:04:31 +0000 (13:04 +0000)]
Process Defm Prefix as Init

Parse and process a defm prefix as an Init expression.  This allows
paste operations to create defm prefixes.

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

12 years agoParse Def ID as Value
David Greene [Wed, 19 Oct 2011 13:04:29 +0000 (13:04 +0000)]
Parse Def ID as Value

Allow def and defm IDs to be general values.  We need this for paste
functionality.

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

12 years agoDon't Parse Object Body as a Name
David Greene [Wed, 19 Oct 2011 13:04:26 +0000 (13:04 +0000)]
Don't Parse Object Body as a Name

Stop parsing a value if we are in name parsing mode and we see a left
brace.  A left brace indicates the start of an object body when we are
parsing a name.

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

12 years agoUse Parse Mode
David Greene [Wed, 19 Oct 2011 13:04:21 +0000 (13:04 +0000)]
Use Parse Mode

Augment the value parser to respect the parse mode and not error if an
ID doesn't map to an object and we are in name parsing mode.

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

12 years agoMake ID Parsing More Flexible
David Greene [Wed, 19 Oct 2011 13:04:20 +0000 (13:04 +0000)]
Make ID Parsing More Flexible

Add a mode control to value and ID parsers.  The two modes are:

- Parse a value.  Expect the parsed ID to map to an existing object.

- Parse a name.  Expect the parsed ID to not map to any existing object.

The first is used when parsing an identifier to be looked up, for
example a record field or template argument.  The second is used for
parsing declarations.  Paste functionality implies that declarations
can contain arbitrary expressions so we need to be able to call into
the general value parser to parse declarations with paste operators.
So we need a way to parse a value-like thing without expecting that
the result will map to some existing object.  This parse mode provides
that.

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

12 years agoAdd NAME Member
David Greene [Wed, 19 Oct 2011 13:04:13 +0000 (13:04 +0000)]
Add NAME Member

Add a Value named "NAME" to each Record.  This will be set to the def or defm
name when instantiating multiclasses.  This will replace the #NAME# processing
hack once paste functionality is in place.

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

12 years agoFix Name Access
David Greene [Wed, 19 Oct 2011 13:04:02 +0000 (13:04 +0000)]
Fix Name Access

Get the Record name as a string explicitly to avoid asserts.

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

12 years agoFix Name Access
David Greene [Wed, 19 Oct 2011 13:03:58 +0000 (13:03 +0000)]
Fix Name Access

Get the Record name as a string explicitly to avoid asserts.

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

12 years agoFix Name Access
David Greene [Wed, 19 Oct 2011 13:03:51 +0000 (13:03 +0000)]
Fix Name Access

Get the Record name as a string explicitly to avoid asserts.

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

12 years agoFix Name Access
David Greene [Wed, 19 Oct 2011 13:03:45 +0000 (13:03 +0000)]
Fix Name Access

Get the Record name by string explicitly to avoid potential asserts.

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

12 years agoDisambiguate Numbers and Identifiers
David Greene [Wed, 19 Oct 2011 13:03:39 +0000 (13:03 +0000)]
Disambiguate Numbers and Identifiers

Use lookahead to determine whether a number is really a number or is
part of something forming an identifier.  This won't come into play
until the paste operator is recognized as a unique token.

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

12 years agoAdd Peek
David Greene [Wed, 19 Oct 2011 13:03:35 +0000 (13:03 +0000)]
Add Peek

Add a peek function to let the Lexer look at a character arbitrarily
far ahead in the stream without consuming anything.  We need this to
disambiguate numbers and operands of a paste operation.  For example:

def foo#8i

Without lookahead the lexer will treat '8' as a number rather than as
part of a string to be pasted to form an identifier.

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

12 years agoResolve Record Names
David Greene [Wed, 19 Oct 2011 13:03:30 +0000 (13:03 +0000)]
Resolve Record Names

When resolving Record values, be sure to update the Record name as it
may contain references to the value.

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

12 years agoAllow Names Changes on Unregistered Records
David Greene [Wed, 19 Oct 2011 13:03:25 +0000 (13:03 +0000)]
Allow Names Changes on Unregistered Records

Add Record names to be changed even on Records that aren't yet
registered.  We need to be able to do this for paste functionality
because we do not want to register def names before they are unique
and that can only happen once all paste operations are done.  This
change lets us update Record names formed by paste operations and
register the result later.

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

12 years agoCall Record Initializer
David Greene [Wed, 19 Oct 2011 13:03:21 +0000 (13:03 +0000)]
Call Record Initializer

Call the common Record initializer code from constructors.

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

12 years agoAdd Name Init Record Constructor
David Greene [Wed, 19 Oct 2011 13:03:15 +0000 (13:03 +0000)]
Add Name Init Record Constructor

Add a Record constructor that takes the Record name as an Init.  This
is more work toward paste functionality.

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

12 years agoFix 80-col Violation
David Greene [Wed, 19 Oct 2011 13:03:10 +0000 (13:03 +0000)]
Fix 80-col Violation

Split up the initializer list for Record to avoid 80-col issues.

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

12 years agoFix Name Access
David Greene [Wed, 19 Oct 2011 13:03:02 +0000 (13:03 +0000)]
Fix Name Access

Ask for the Record name as a string explicitly to avoid a possible assert.

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

12 years agoFix Name Access
David Greene [Wed, 19 Oct 2011 13:02:57 +0000 (13:02 +0000)]
Fix Name Access

Ask for the Record name as a string explicitly to avoid a possible
assert.

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

12 years agoFix Name Access
David Greene [Wed, 19 Oct 2011 13:02:52 +0000 (13:02 +0000)]
Fix Name Access

Ask for the record name as a string explicitly to avoid a potential
assert.

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

12 years agoFix Name Check
David Greene [Wed, 19 Oct 2011 13:02:48 +0000 (13:02 +0000)]
Fix Name Check

Avoid a potential assert by asking for record names as strings explicitly.

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

12 years agoFix Name Check
David Greene [Wed, 19 Oct 2011 13:02:47 +0000 (13:02 +0000)]
Fix Name Check

Record names may not be fully resolved at this point so ask for the
record name as a string explicitly.  This avoids a potential assert.

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

12 years agoAdd Record Init
David Greene [Wed, 19 Oct 2011 13:02:45 +0000 (13:02 +0000)]
Add Record Init

Add an init function to be shared among Record constructors.

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

12 years agoMake Template Arg Names Inits
David Greene [Wed, 19 Oct 2011 13:02:42 +0000 (13:02 +0000)]
Make Template Arg Names Inits

Allow template arg names to be Inits.  This is further work to
implement paste as it allows template names to participate in paste
operations.

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

12 years agoLet SetValue Take and Init Name
David Greene [Wed, 19 Oct 2011 13:02:39 +0000 (13:02 +0000)]
Let SetValue Take and Init Name

Convert SetValue to take the value name as an Init.  This allows us to
set values for variables whose names are not yet fully resolved.

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

12 years agoAdd Utility to Scope Names
David Greene [Wed, 19 Oct 2011 13:02:36 +0000 (13:02 +0000)]
Add Utility to Scope Names

Add a couple of utility functions to take a variable name and qualify
it with the namespace of the enclosing class and/or multiclass.  This
is inpreparation for making template arg names first-class Inits.

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

12 years agoMake VarInit Name an Init
David Greene [Wed, 19 Oct 2011 13:02:33 +0000 (13:02 +0000)]
Make VarInit Name an Init

Make the VarInit name an Init itself.  We need this to implement paste
functionality so we can reference variables whose names are not yet
completely resolved.

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

12 years agoAdd Value Accessors
David Greene [Wed, 19 Oct 2011 13:02:29 +0000 (13:02 +0000)]
Add Value Accessors

Add accessors to get Record values by Init name.  This lets us look up
Record values whose names are not yet fully resolved.  More work
toward paste.

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

12 years agoAdd Name Init Accessors
David Greene [Wed, 19 Oct 2011 13:02:28 +0000 (13:02 +0000)]
Add Name Init Accessors

Add a utility to get the name init and get the string representation
of the name.  This will be used for paste functionality.

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

12 years agoAdd Init Accessors
David Greene [Wed, 19 Oct 2011 13:02:22 +0000 (13:02 +0000)]
Add Init Accessors

Add a couple of utility functions to get at the name init and return
the name init as a string.  This will be used for paste functionality.

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

12 years agoGeneralize the reading of probability metadata to work for both branches
Chandler Carruth [Wed, 19 Oct 2011 10:32:19 +0000 (10:32 +0000)]
Generalize the reading of probability metadata to work for both branches
and switches, with arbitrary numbers of successors. Still optimized for
the common case of 2 successors for a conditional branch.

Add a test case for switch metadata showing up in the BlockFrequencyInfo pass.

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

12 years agoTeach the BranchProbabilityInfo analysis pass to read any metadata
Chandler Carruth [Wed, 19 Oct 2011 10:30:30 +0000 (10:30 +0000)]
Teach the BranchProbabilityInfo analysis pass to read any metadata
encoding of probabilities. In the absense of metadata, it continues to
fall back on static heuristics.

This allows __builtin_expect, after lowering through llvm.expect
a branch instruction's metadata, to actually enter the branch
probability model. This is one component of resolving PR2577.

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

12 years agoAdd pass printing support to BlockFrequencyInfo pass. The implementation
Chandler Carruth [Wed, 19 Oct 2011 10:12:41 +0000 (10:12 +0000)]
Add pass printing support to BlockFrequencyInfo pass. The implementation
layer already had support for printing the results of this analysis, but
the wiring was missing.

Now that printing the analysis works, actually bring some of this
analysis, and the BranchProbabilityInfo analysis that it wraps, under
test! I'm planning on fixing some bugs and doing other work here, so
having a nice place to add regression tests and a way to observe the
results is really useful.

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

12 years agoDuncan pointed out that sometimes CC and CXX are used to specify the compiler. Also...
Bill Wendling [Wed, 19 Oct 2011 09:47:00 +0000 (09:47 +0000)]
Duncan pointed out that sometimes CC and CXX are used to specify the compiler. Also that the configure script takes care of finding an appropriate compiler if one's not specified.

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

12 years agoAdd support for the vector-widening of vselect and vector-setcc
Nadav Rotem [Wed, 19 Oct 2011 09:45:11 +0000 (09:45 +0000)]
Add support for the vector-widening of vselect and vector-setcc

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

12 years agoUse bash instead.
Bill Wendling [Wed, 19 Oct 2011 09:25:49 +0000 (09:25 +0000)]
Use bash instead.

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

12 years agoMake sure we emit the 'movw' and 'movt' only if it's supported. Otherwise, use a...
Bill Wendling [Wed, 19 Oct 2011 09:24:02 +0000 (09:24 +0000)]
Make sure we emit the 'movw' and 'movt' only if it's supported. Otherwise, use a constant pool.

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

12 years agoRemove some dead code.
Bill Wendling [Wed, 19 Oct 2011 09:04:11 +0000 (09:04 +0000)]
Remove some dead code.

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

12 years agoMake changes so that this runs on FreeBSD.
Bill Wendling [Wed, 19 Oct 2011 08:42:07 +0000 (08:42 +0000)]
Make changes so that this runs on FreeBSD.

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

12 years agoFix AsmParser's spacing.
Shih-wei Liao [Wed, 19 Oct 2011 08:25:43 +0000 (01:25 -0700)]
Fix AsmParser's spacing.

Change-Id: Ifb734b77c539fc53ec68461d1de7732f296239b0

12 years agoRename PEXTR to PEXT. Add intrinsics for BMI instructions.
Craig Topper [Wed, 19 Oct 2011 07:48:35 +0000 (07:48 +0000)]
Rename PEXTR to PEXT. Add intrinsics for BMI instructions.

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

12 years agoAdd build rules for llc, opt, and llvm-link on target device.
Logan Chien [Wed, 19 Oct 2011 03:36:30 +0000 (11:36 +0800)]
Add build rules for llc, opt, and llvm-link on target device.

Change-Id: I42f35da6f5ce77ab8969746131f5e6fdd42e5afa

12 years agoRemove duplicated LLVM_TARGET definition.
Logan Chien [Wed, 19 Oct 2011 03:37:06 +0000 (11:37 +0800)]
Remove duplicated LLVM_TARGET definition.

Change-Id: I82a9ed6db0bfe6671c871c1bee2973b0a0febe41

12 years agoAdding dependencies to allow -DBUILD_SHARED_LIBS=true to complete.
Joe Abbey [Wed, 19 Oct 2011 00:13:13 +0000 (00:13 +0000)]
Adding dependencies to allow -DBUILD_SHARED_LIBS=true to complete.

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

12 years agoAdded testcase for <rdar://problem/10215997>
Lang Hames [Tue, 18 Oct 2011 23:50:52 +0000 (23:50 +0000)]
Added testcase for <rdar://problem/10215997>

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

12 years agoEmit the MOVT instruction only if the # LPads is > 64K.
Bill Wendling [Tue, 18 Oct 2011 23:19:55 +0000 (23:19 +0000)]
Emit the MOVT instruction only if the # LPads is > 64K.

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

12 years agoFor Thumb mode, we need to use a constant pool if the value is too large to be
Bill Wendling [Tue, 18 Oct 2011 23:11:05 +0000 (23:11 +0000)]
For Thumb mode, we need to use a constant pool if the value is too large to be
used with the CMP instruction.

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

12 years agoRegenerate projects/sample/configure.
Daniel Dunbar [Tue, 18 Oct 2011 23:10:58 +0000 (23:10 +0000)]
Regenerate projects/sample/configure.

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

12 years agoprojects/sample: Import adapted form of current LLVM autoconf/Makefile setup so that...
Daniel Dunbar [Tue, 18 Oct 2011 23:10:47 +0000 (23:10 +0000)]
projects/sample: Import adapted form of current LLVM autoconf/Makefile setup so that projects/sample is standalone and not tied to the LLVM build setup.
 - This currently just moves over all of the behavior from LLVM. Eventually all of the configure checks that are directly needed by the LLVM build setup should probably go away, and the project should manage their own configuration checks if necessary.

 - This is the 1st half of this work, the actual Makefile.common hasn't moved over yet. I've tried to stage this in such a way that incremental builds will properly reconfigure for most active developers (the Makefiles don't handle reconfiguring in a perfectly reliable way, and I haven't found an easy way to make them do so).

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

12 years agoRevert "Turn on the vzeroupper pass by default."
Eric Christopher [Tue, 18 Oct 2011 23:10:11 +0000 (23:10 +0000)]
Revert "Turn on the vzeroupper pass by default."

This reverts commit 494f7ac3e8d2ab3d94e52317abf9c42a949fe1f3.

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

12 years agoAdd additional element-promotion tests.
Nadav Rotem [Tue, 18 Oct 2011 23:05:33 +0000 (23:05 +0000)]
Add additional element-promotion tests.

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

12 years agoARM VTBL (one register) assembly parsing and encoding.
Jim Grosbach [Tue, 18 Oct 2011 23:02:30 +0000 (23:02 +0000)]
ARM VTBL (one register) assembly parsing and encoding.

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

12 years agoUse the integer compare when the value is small enough. Use the "move into a
Bill Wendling [Tue, 18 Oct 2011 22:52:20 +0000 (22:52 +0000)]
Use the integer compare when the value is small enough. Use the "move into a
register and then compare against that" method when it's too large. We have to
move the value into the register in the "movw, movt" pair of instructions.

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

12 years agoTurn on the vzeroupper pass by default.
Eric Christopher [Tue, 18 Oct 2011 22:50:17 +0000 (22:50 +0000)]
Turn on the vzeroupper pass by default.

I'll remove/rename the option in a few days.

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

12 years agoWhitespace.
Eric Christopher [Tue, 18 Oct 2011 22:50:13 +0000 (22:50 +0000)]
Whitespace.

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

12 years agoUse the integer compare when the value is small enough. Use the "move into a
Bill Wendling [Tue, 18 Oct 2011 22:49:07 +0000 (22:49 +0000)]
Use the integer compare when the value is small enough. Use the "move into a
register and then compare against that" method when it's too large. We have to
move the value into the register in the "movw, movt" pair of instructions.

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

12 years agoMissed a spot!
Nick Lewycky [Tue, 18 Oct 2011 22:40:18 +0000 (22:40 +0000)]
Missed a spot!

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

12 years agoFix some typo/formatting issues. No functionality change.
Nick Lewycky [Tue, 18 Oct 2011 22:39:43 +0000 (22:39 +0000)]
Fix some typo/formatting issues. No functionality change.

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

12 years agoFix a bug in the legalization of vector anyext-load and trunc-store. Mem Index starts...
Nadav Rotem [Tue, 18 Oct 2011 22:32:43 +0000 (22:32 +0000)]
Fix a bug in the legalization of vector anyext-load and trunc-store. Mem Index starts with zero.

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

12 years agoTeach fast isel about vector stores, and make DoSelectCall return false when it fails...
Lang Hames [Tue, 18 Oct 2011 22:11:33 +0000 (22:11 +0000)]
Teach fast isel about vector stores, and make DoSelectCall return false when it fails to emit a store. This fixes <rdar://problem/10215997>.

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

12 years agoThe value we're comparing against may be too large for the ARM CMP
Bill Wendling [Tue, 18 Oct 2011 22:11:18 +0000 (22:11 +0000)]
The value we're comparing against may be too large for the ARM CMP
instruction. Move the value into a register and then use that for the CMP.
<rdar://problem/10305266>

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

12 years agoThe immediate may be too large for the CMP instruction. Move it into a register
Bill Wendling [Tue, 18 Oct 2011 21:55:58 +0000 (21:55 +0000)]
The immediate may be too large for the CMP instruction. Move it into a register
and use that in the CMP.
<rdar://problem/10305266>

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

12 years agoTidy up formatting.
Jim Grosbach [Tue, 18 Oct 2011 21:09:01 +0000 (21:09 +0000)]
Tidy up formatting.

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

12 years agoTidy up formatting.
Jim Grosbach [Tue, 18 Oct 2011 21:08:16 +0000 (21:08 +0000)]
Tidy up formatting.

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

12 years agoYet more ARM NEON assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 20:21:17 +0000 (20:21 +0000)]
Yet more ARM NEON assembly parsing for the lane index operand.

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

12 years agoEnable more encoded immediate tests.
Jim Grosbach [Tue, 18 Oct 2011 20:20:51 +0000 (20:20 +0000)]
Enable more encoded immediate tests.

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

12 years agoMore vmov lane testcases.
Jim Grosbach [Tue, 18 Oct 2011 20:19:48 +0000 (20:19 +0000)]
More vmov lane testcases.

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

12 years agoARM vmla/vmls assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 20:14:56 +0000 (20:14 +0000)]
ARM vmla/vmls assembly parsing for the lane index operand.

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

12 years agoARM vmov assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 20:10:47 +0000 (20:10 +0000)]
ARM vmov assembly parsing for the lane index operand.

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

12 years agoThe MCJITMemoryManager takes ownership of the JMM, so don't leak it.
Jim Grosbach [Tue, 18 Oct 2011 19:57:38 +0000 (19:57 +0000)]
The MCJITMemoryManager takes ownership of the JMM, so don't leak it.

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

12 years agoObject/COFF: Remove useless test.
Michael J. Spencer [Tue, 18 Oct 2011 19:51:36 +0000 (19:51 +0000)]
Object/COFF: Remove useless test.

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

12 years agollvm-objdump: Add static symbol table dumping.
Michael J. Spencer [Tue, 18 Oct 2011 19:32:17 +0000 (19:32 +0000)]
llvm-objdump: Add static symbol table dumping.

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

12 years agoObject/COFF: Change type from a struct to a uint16_t. The struct would be
Michael J. Spencer [Tue, 18 Oct 2011 19:31:59 +0000 (19:31 +0000)]
Object/COFF: Change type from a struct to a uint16_t. The struct would be
incorrect for bigendian systems.

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

12 years agobuild: Tidy up a bunch of tool Makefiles, and simplify where possible using the
Daniel Dunbar [Tue, 18 Oct 2011 19:27:24 +0000 (19:27 +0000)]
build: Tidy up a bunch of tool Makefiles, and simplify where possible using the
new all-targets pseudo-component.

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

12 years agollvm-ar: Remove local test target, this is no longer useful.
Daniel Dunbar [Tue, 18 Oct 2011 19:27:10 +0000 (19:27 +0000)]
llvm-ar: Remove local test target, this is no longer useful.

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

12 years agollvm-config: Add an all-targets pseudo-component.
Daniel Dunbar [Tue, 18 Oct 2011 19:27:08 +0000 (19:27 +0000)]
llvm-config: Add an all-targets pseudo-component.

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

12 years agobuild: Remove some unused code.
Daniel Dunbar [Tue, 18 Oct 2011 19:27:04 +0000 (19:27 +0000)]
build: Remove some unused code.

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

12 years agoUse ARM/t2PseudoInst class from ARM/Thumb2 special adds/subs patterns.
Andrew Trick [Tue, 18 Oct 2011 19:18:52 +0000 (19:18 +0000)]
Use ARM/t2PseudoInst class from ARM/Thumb2 special adds/subs patterns.

Clean up the patterns, fix comments, and avoid confusing both tools
and coders. Note that the special adds/subs SelectionDAG nodes no
longer have the dummy cc_out operand.

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

12 years agoUse isIntN and isUIntN to check for valid signed/unsigned numbers.
Bob Wilson [Tue, 18 Oct 2011 18:46:49 +0000 (18:46 +0000)]
Use isIntN and isUIntN to check for valid signed/unsigned numbers.

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

12 years agowhitespace
Andrew Trick [Tue, 18 Oct 2011 18:40:53 +0000 (18:40 +0000)]
whitespace

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

12 years agoA landing pad could have more than one predecessor. In that case, we want that
Bill Wendling [Tue, 18 Oct 2011 18:30:49 +0000 (18:30 +0000)]
A landing pad could have more than one predecessor. In that case, we want that
predecessor to remove the jump to it as well. Delay clearing the 'landing pad'
flag until after the jumps have been removed. (There is an implicit assumption
in several modules that an MBB which jumps to a landing pad has only two
successors.)
<rdar://problem/10304224>

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

12 years agoARM vmla/vmls assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 18:27:07 +0000 (18:27 +0000)]
ARM vmla/vmls assembly parsing for the lane index operand.

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

12 years agoAnother failing encoding.
Owen Anderson [Tue, 18 Oct 2011 18:23:03 +0000 (18:23 +0000)]
Another failing encoding.

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

12 years agoFix NEON mul encoding tests. Wrong file contents previously.
Jim Grosbach [Tue, 18 Oct 2011 18:14:55 +0000 (18:14 +0000)]
Fix NEON mul encoding tests. Wrong file contents previously.

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

12 years agoARM vqdmulh assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 18:12:09 +0000 (18:12 +0000)]
ARM vqdmulh assembly parsing for the lane index operand.

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

12 years agoRemove duplicate test.
Jim Grosbach [Tue, 18 Oct 2011 18:05:50 +0000 (18:05 +0000)]
Remove duplicate test.

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

12 years agoTidy up formatting.
Jim Grosbach [Tue, 18 Oct 2011 18:05:16 +0000 (18:05 +0000)]
Tidy up formatting.

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

12 years agoARM vmul assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 18:01:52 +0000 (18:01 +0000)]
ARM vmul assembly parsing for the lane index operand.

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