oota-llvm.git
12 years agoEngineBuilder: support for custom TargetOptions. Fixes the
Peter Collingbourne [Wed, 7 Dec 2011 23:58:57 +0000 (23:58 +0000)]
EngineBuilder: support for custom TargetOptions.  Fixes the
ExceptionDemo example.

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

12 years agoFix comments.
Chad Rosier [Wed, 7 Dec 2011 23:57:55 +0000 (23:57 +0000)]
Fix comments.

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

12 years agoARM assembly, allow 'asl' as a synonym for 'lsl' in shifted-register operands.
Jim Grosbach [Wed, 7 Dec 2011 23:40:58 +0000 (23:40 +0000)]
ARM assembly, allow 'asl' as a synonym for 'lsl' in shifted-register operands.

For 'gas' compatibility.

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

12 years agoModify class ReadHardware and add definition of 64-bit version of instruction
Akira Hatanaka [Wed, 7 Dec 2011 23:31:26 +0000 (23:31 +0000)]
Modify class ReadHardware and add definition of 64-bit version of instruction
RDHWR.

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

12 years agoAdd newline.
Akira Hatanaka [Wed, 7 Dec 2011 23:26:03 +0000 (23:26 +0000)]
Add newline.

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

12 years agoAdd 64-bit HWR29 register.
Akira Hatanaka [Wed, 7 Dec 2011 23:23:52 +0000 (23:23 +0000)]
Add 64-bit HWR29 register.

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

12 years ago32 to 64-bit anyext pattern.
Akira Hatanaka [Wed, 7 Dec 2011 23:21:19 +0000 (23:21 +0000)]
32 to 64-bit anyext pattern.

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

12 years ago32 to 64-bit zext pattern.
Akira Hatanaka [Wed, 7 Dec 2011 23:14:41 +0000 (23:14 +0000)]
32 to 64-bit zext pattern.

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

12 years agoARM two-operand aliases for VAND/VEOR/VORR instructions.
Jim Grosbach [Wed, 7 Dec 2011 23:08:12 +0000 (23:08 +0000)]
ARM two-operand aliases for VAND/VEOR/VORR instructions.

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

12 years agoARM two-operand aliases for VADDW instructions.
Jim Grosbach [Wed, 7 Dec 2011 23:01:10 +0000 (23:01 +0000)]
ARM two-operand aliases for VADDW instructions.

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

12 years agoARM two-operand aliases for VADD instructions.
Jim Grosbach [Wed, 7 Dec 2011 22:52:54 +0000 (22:52 +0000)]
ARM two-operand aliases for VADD instructions.

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

12 years agoFlesh out a bit more of the bitcode use-list ordering preservation code.
Chad Rosier [Wed, 7 Dec 2011 22:49:05 +0000 (22:49 +0000)]
Flesh out a bit more of the bitcode use-list ordering preservation code.
Nothing too interesting at this point, but comments are welcome.
Part of rdar://9860654 and PR5680.

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

12 years agoVariable cleanup. Based on past patch submittals variable names have
Bruno Cardoso Lopes [Wed, 7 Dec 2011 22:35:30 +0000 (22:35 +0000)]
Variable cleanup. Based on past patch submittals variable names have
been normalized and more descriptive comments added. Patch by Reed
Kotler and Jack Carter.

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

12 years agoMake sure we correctly set LiveRegGens when a call is unscheduled. <rdar://problem...
Eli Friedman [Wed, 7 Dec 2011 22:24:28 +0000 (22:24 +0000)]
Make sure we correctly set LiveRegGens when a call is unscheduled.  <rdar://problem/10460321>.  No testcase because this is very sensitive to scheduling.

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

12 years ago64-bit WrapperPICPat patterns.
Akira Hatanaka [Wed, 7 Dec 2011 22:11:43 +0000 (22:11 +0000)]
64-bit WrapperPICPat patterns.

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

12 years agoconfigure: Don't warn about compiler-rt checked out into projects/.
Daniel Dunbar [Wed, 7 Dec 2011 22:07:03 +0000 (22:07 +0000)]
configure: Don't warn about compiler-rt checked out into projects/.

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

12 years agoFix an assertion in the scheduler. PR11386. No testcase included because it's rathe...
Eli Friedman [Wed, 7 Dec 2011 22:06:02 +0000 (22:06 +0000)]
Fix an assertion in the scheduler.  PR11386.  No testcase included because it's rather delicate.

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

12 years agoDefine base class for WrapperPICPat.
Akira Hatanaka [Wed, 7 Dec 2011 21:54:54 +0000 (21:54 +0000)]
Define base class for WrapperPICPat.

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

12 years agoModify LowerFCOPYSIGN to handle Mips64.
Akira Hatanaka [Wed, 7 Dec 2011 21:48:50 +0000 (21:48 +0000)]
Modify LowerFCOPYSIGN to handle Mips64.

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

12 years agoUpdate bcanalyzer to handle new USELIST_BLOCK/USELIST_CODE_ENTRY.
Chad Rosier [Wed, 7 Dec 2011 21:45:13 +0000 (21:45 +0000)]
Update bcanalyzer to handle new USELIST_BLOCK/USELIST_CODE_ENTRY.

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

12 years agoBegin adding experimental support for preserving use-list ordering of bitcode
Chad Rosier [Wed, 7 Dec 2011 21:44:12 +0000 (21:44 +0000)]
Begin adding experimental support for preserving use-list ordering of bitcode
files.  First, add a new block USELIST_BLOCK to the bitcode format.  This is
where USELIST_CODE_ENTRYs will be stored.  The format of the USELIST_CODE_ENTRYs
have not yet been defined.  Add support in the BitcodeReader for parsing the
USELIST_BLOCK.
Part of rdar://9860654 and PR5680.

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

12 years agoThese global variables aren't thread-safe, STATISTIC is. Andy Trick tells me
Nick Lewycky [Wed, 7 Dec 2011 21:35:59 +0000 (21:35 +0000)]
These global variables aren't thread-safe, STATISTIC is. Andy Trick tells me
that he isn't using these any more, so just delete them.

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

12 years agoHave cmake build llvm-cov. Patch by arrowdodger.
Duncan Sands [Wed, 7 Dec 2011 20:54:41 +0000 (20:54 +0000)]
Have cmake build llvm-cov.  Patch by arrowdodger.

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

12 years agoValueEnumerator - debug dump().
Chad Rosier [Wed, 7 Dec 2011 20:44:46 +0000 (20:44 +0000)]
ValueEnumerator - debug dump().

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

12 years agoFix comment.
Akira Hatanaka [Wed, 7 Dec 2011 20:15:01 +0000 (20:15 +0000)]
Fix comment.

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

12 years agoFix comment.
Akira Hatanaka [Wed, 7 Dec 2011 20:13:53 +0000 (20:13 +0000)]
Fix comment.

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

12 years agoFix 64-bit immediate patterns.
Akira Hatanaka [Wed, 7 Dec 2011 20:10:24 +0000 (20:10 +0000)]
Fix 64-bit immediate patterns.

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

12 years agoNuke inadvertant debugging commit.
Jim Grosbach [Wed, 7 Dec 2011 19:56:16 +0000 (19:56 +0000)]
Nuke inadvertant debugging commit.

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

12 years agoDarwin assembler improved relocs when w/o subsections_via_symbols.
Jim Grosbach [Wed, 7 Dec 2011 19:46:59 +0000 (19:46 +0000)]
Darwin assembler improved relocs when w/o subsections_via_symbols.

When the file isn't being built with subsections-via-symbols, symbol
differences involving non-local symbols can be resolved more aggressively.
Needed for gas compatibility.

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

12 years agoRemove unneeded semicolon.
Jakub Staszak [Wed, 7 Dec 2011 19:46:10 +0000 (19:46 +0000)]
Remove unneeded semicolon.
Skip two looking up at BlockChain.

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

12 years agoThumb2 alias for long-form pop and friends.
Jim Grosbach [Wed, 7 Dec 2011 18:32:28 +0000 (18:32 +0000)]
Thumb2 alias for long-form pop and friends.
rdar://10542474

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

12 years agoAlso pass in correct initializer here.
Bill Wendling [Wed, 7 Dec 2011 18:18:11 +0000 (18:18 +0000)]
Also pass in correct initializer here.

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

12 years agoARM support the .arm and .thumb directives for assembly mode switching.
Jim Grosbach [Wed, 7 Dec 2011 18:04:19 +0000 (18:04 +0000)]
ARM support the .arm and .thumb directives for assembly mode switching.

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

12 years agoCorrect initializer in example.
Bill Wendling [Wed, 7 Dec 2011 18:02:44 +0000 (18:02 +0000)]
Correct initializer in example.

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

12 years agoARM NEON VCLT(register) is a pseudo aliasing VCGT(register).
Jim Grosbach [Wed, 7 Dec 2011 17:51:15 +0000 (17:51 +0000)]
ARM NEON VCLT(register) is a pseudo aliasing VCGT(register).

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

12 years agoTidy up. Move MachO tests to MachO directory.
Jim Grosbach [Wed, 7 Dec 2011 17:50:28 +0000 (17:50 +0000)]
Tidy up. Move MachO tests to MachO directory.

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

12 years agoRemove unused include.
Duncan Sands [Wed, 7 Dec 2011 17:18:31 +0000 (17:18 +0000)]
Remove unused include.

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

12 years agoWhen doing "opt -O2" verify the bitcode like is done for
Duncan Sands [Wed, 7 Dec 2011 17:14:20 +0000 (17:14 +0000)]
When doing "opt -O2" verify the bitcode like is done for
"opt -std-compile-opts".

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

12 years agoFix a bunch of SSE/AVX patterns to use proper memop types. In particular, not using...
Craig Topper [Wed, 7 Dec 2011 08:30:53 +0000 (08:30 +0000)]
Fix a bunch of SSE/AVX patterns to use proper memop types. In particular, not using integer loads other than v2i64/v4i64 since the others are all promoted.

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

12 years agoAdjust the stack by one pointer size for all frameless stacks.
Bill Wendling [Wed, 7 Dec 2011 07:58:55 +0000 (07:58 +0000)]
Adjust the stack by one pointer size for all frameless stacks.

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

12 years agoFix off-by-one error when encoding the stack size for a frameless stack.
Bill Wendling [Wed, 7 Dec 2011 07:49:49 +0000 (07:49 +0000)]
Fix off-by-one error when encoding the stack size for a frameless stack.

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

12 years agoAdd bundle aware API for querying instruction properties and switch the code
Evan Cheng [Wed, 7 Dec 2011 07:15:52 +0000 (07:15 +0000)]
Add bundle aware API for querying instruction properties and switch the code
generator to it. For non-bundle instructions, these behave exactly the same
as the MC layer API.

For properties like mayLoad / mayStore, look into the bundle and if any of the
bundled instructions has the property it would return true.
For properties like isPredicable, only return true if *all* of the bundled
instructions have the property.
For properties like canFoldAsLoad, isCompare, conservatively return false for
bundles.

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

12 years agoAdding missing anchor to DATDeltaAlgorithm.
David Blaikie [Wed, 7 Dec 2011 06:44:23 +0000 (06:44 +0000)]
Adding missing anchor to DATDeltaAlgorithm.

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

12 years agomake CR spill and restore 64-bit clean (no functional change), and fix some other...
Hal Finkel [Wed, 7 Dec 2011 06:34:06 +0000 (06:34 +0000)]
make CR spill and restore 64-bit clean (no functional change), and fix some other problems found with -verify-machineinstrs

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

12 years agomake base register selection used in eliminateFrameIndex 64-bit clean
Hal Finkel [Wed, 7 Dec 2011 06:34:02 +0000 (06:34 +0000)]
make base register selection used in eliminateFrameIndex 64-bit clean

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

12 years agoset mayStore and mayLoad on CR pseudos
Hal Finkel [Wed, 7 Dec 2011 06:33:57 +0000 (06:33 +0000)]
set mayStore and mayLoad on CR pseudos

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

12 years ago64-bit LR8 load should use X11 not R11
Hal Finkel [Wed, 7 Dec 2011 06:32:37 +0000 (06:32 +0000)]
64-bit LR8 load should use X11 not R11

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

12 years agoEliminate delta argument from AdjustBBOffsetsAfter.
Jakob Stoklund Olesen [Wed, 7 Dec 2011 05:17:30 +0000 (05:17 +0000)]
Eliminate delta argument from AdjustBBOffsetsAfter.

The block offset can be computed from the previous block. That is more
robust than keeping track of a delta.

Eliminate one redundant AdjustBBOffsetsAfter call.

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

12 years agoCompute some alignment information for each basic block.
Jakob Stoklund Olesen [Wed, 7 Dec 2011 04:17:35 +0000 (04:17 +0000)]
Compute some alignment information for each basic block.

These fields are not used for anything yet.

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

12 years agoZap unnecessary isIntDivCheap() check. PR11485. No testcase because this doesn...
Eli Friedman [Wed, 7 Dec 2011 03:55:52 +0000 (03:55 +0000)]
Zap unnecessary isIntDivCheap() check.  PR11485.  No testcase because this doesn't affect any in-tree target.

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

12 years agoARM tidy up and remove no longer needed InstAlias definitions.
Jim Grosbach [Wed, 7 Dec 2011 01:50:36 +0000 (01:50 +0000)]
ARM tidy up and remove no longer needed InstAlias definitions.

The TokenAlias handling of data type suffices renders these unnecessary.

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

12 years agoMove common expression into a method.
Jakob Stoklund Olesen [Wed, 7 Dec 2011 01:22:52 +0000 (01:22 +0000)]
Move common expression into a method.

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

12 years agoARM Implement ARM ARM Table A7-3 via TokenAlias.
Jim Grosbach [Wed, 7 Dec 2011 01:17:58 +0000 (01:17 +0000)]
ARM Implement ARM ARM Table A7-3 via TokenAlias.

Data type suffix aliasing. Previously handled via lots of instruction
aliases. Cleanup of those forthcoming.

rdar://10435076

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

12 years agoGroup BBSizes and BBOffsets into a single vector<BasicBlockInfo>.
Jakob Stoklund Olesen [Wed, 7 Dec 2011 01:08:25 +0000 (01:08 +0000)]
Group BBSizes and BBOffsets into a single vector<BasicBlockInfo>.

No functional change is intended.

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

12 years agoAdd missing check.
Jakob Stoklund Olesen [Wed, 7 Dec 2011 01:08:22 +0000 (01:08 +0000)]
Add missing check.

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

12 years agoARM: NEON SHLL instruction immediate operand range checking.
Jim Grosbach [Wed, 7 Dec 2011 01:07:24 +0000 (01:07 +0000)]
ARM: NEON SHLL instruction immediate operand range checking.

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

12 years agoSupport vector bitcasts in the AsmPrinter. PR11495.
Eli Friedman [Wed, 7 Dec 2011 00:50:54 +0000 (00:50 +0000)]
Support vector bitcasts in the AsmPrinter.  PR11495.

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

12 years agoAdd a few moreLocal/Global R_MIPS_GOT related fixups and
Bruno Cardoso Lopes [Wed, 7 Dec 2011 00:28:57 +0000 (00:28 +0000)]
Add a few moreLocal/Global R_MIPS_GOT related fixups and
make the addend fixup code a bit more generic

Patch by Jack Carter.

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

12 years agoAdd MachineOperand IsInternalRead flag.
Jakob Stoklund Olesen [Wed, 7 Dec 2011 00:22:07 +0000 (00:22 +0000)]
Add MachineOperand IsInternalRead flag.

This flag is used when bundling machine instructions.  It indicates
whether the operand reads a value defined inside or outside its bundle.

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

12 years agoFix an optimization involving EXTRACT_SUBVECTOR in DAGCombine so it behaves correctly...
Eli Friedman [Wed, 7 Dec 2011 00:11:56 +0000 (00:11 +0000)]
Fix an optimization involving EXTRACT_SUBVECTOR in DAGCombine so it behaves correctly.  PR11494.

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

12 years agoRemove unneeded type.
Jakub Staszak [Wed, 7 Dec 2011 00:08:00 +0000 (00:08 +0000)]
Remove unneeded type.

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

12 years agoARM: Parameterize the immediate operand type for NEON VSHLL.
Jim Grosbach [Wed, 7 Dec 2011 00:02:17 +0000 (00:02 +0000)]
ARM: Parameterize the immediate operand type for NEON VSHLL.

No functional change yet. Will be implementing range-checked immediates
for better diagnostics and disambiguation of instructions.

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

12 years ago- Remove unneeded #includes.
Jakub Staszak [Tue, 6 Dec 2011 23:59:33 +0000 (23:59 +0000)]
- Remove unneeded #includes.
- Remove unused types/fields.
- Add some constantness.

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

12 years agoExtend AsmMatcher token literal matching to allow aliasing.
Jim Grosbach [Tue, 6 Dec 2011 23:43:54 +0000 (23:43 +0000)]
Extend AsmMatcher token literal matching to allow aliasing.

For example, ARM allows:
    vmov.u32 s4, #0  -> vmov.i32, #0
'u32' is a more specific designator for the 32-bit integer type specifier
and is legal for any instruction which accepts 'i32' as a datatype suffix.

We want to say,
    def : TokenAlias<".u32", ".i32">;

This works by marking the match class of 'From' as a subclass of the
match class of 'To'.

rdar://10435076

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

12 years agoMake Release Notes HTML 4.01 Strict.
Jakub Staszak [Tue, 6 Dec 2011 23:33:07 +0000 (23:33 +0000)]
Make Release Notes HTML 4.01 Strict.

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

12 years agollvm-build: Don't generate duplicate dependencies when LLVMBuild files define
Daniel Dunbar [Tue, 6 Dec 2011 23:13:42 +0000 (23:13 +0000)]
llvm-build: Don't generate duplicate dependencies when LLVMBuild files define
multiple components.

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

12 years agoAdd documentation for machine-independent DFA packetizer
Anshuman Dasgupta [Tue, 6 Dec 2011 23:12:42 +0000 (23:12 +0000)]
Add documentation for machine-independent DFA packetizer

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

12 years agoRevert r145971: "Use conservative size estimate for tBR_JTr."
Jakob Stoklund Olesen [Tue, 6 Dec 2011 22:41:31 +0000 (22:41 +0000)]
Revert r145971: "Use conservative size estimate for tBR_JTr."

This caused more offset errors.

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

12 years agoAdd link to builtin_expect in Release Notes.
Jakub Staszak [Tue, 6 Dec 2011 22:31:27 +0000 (22:31 +0000)]
Add link to builtin_expect in Release Notes.

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

12 years agoRe-enable compact unwind. It seems to work now. <rdar://problem/10441838>
Bill Wendling [Tue, 6 Dec 2011 22:18:12 +0000 (22:18 +0000)]
Re-enable compact unwind. It seems to work now. <rdar://problem/10441838>

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

12 years agoExplicitly check for the different SUB instructions.
Bill Wendling [Tue, 6 Dec 2011 22:14:27 +0000 (22:14 +0000)]
Explicitly check for the different SUB instructions.

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

12 years agoFirst chunk of MachineInstr bundle support.
Evan Cheng [Tue, 6 Dec 2011 22:12:01 +0000 (22:12 +0000)]
First chunk of MachineInstr bundle support.
1. Added opcode BUNDLE
2. Taught MachineInstr class to deal with bundled MIs
3. Changed MachineBasicBlock iterator to skip over bundled MIs; added an iterator to walk all the MIs
4. Taught MachineBasicBlock methods about bundled MIs

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

12 years agoTidy up. Fix naming convention stuff for some internal functions.
Jim Grosbach [Tue, 6 Dec 2011 22:07:02 +0000 (22:07 +0000)]
Tidy up. Fix naming convention stuff for some internal functions.

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

12 years agoUse conservative size estimate for tBR_JTr.
Jakob Stoklund Olesen [Tue, 6 Dec 2011 21:55:39 +0000 (21:55 +0000)]
Use conservative size estimate for tBR_JTr.

This pseudo-instruction contains a .align directive in its expansion, so
the total size may vary by 2 bytes.

It is too difficult to accurately keep track of this alignment
directive, just use the worst-case size instead.

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

12 years agoRemove alignment from deserted constant islands.
Jakob Stoklund Olesen [Tue, 6 Dec 2011 21:55:35 +0000 (21:55 +0000)]
Remove alignment from deserted constant islands.

ARMConstantIslandPass may sometimes leave empty constant islands behind
(it really shouldn't). Remove the alignment from the empty islands so
the size calculations are still correct.

This should fix the many Thumb1 assembler errors in the nightly test
suite.

The reduced test case for this problem is way too big. That is to be
expected for ARMConstantIslandPass bugs.

<rdar://problem/10534709>

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

12 years agoEncode the total stack if there isn't a frame.
Bill Wendling [Tue, 6 Dec 2011 21:34:01 +0000 (21:34 +0000)]
Encode the total stack if there isn't a frame.

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

12 years ago* Add a macro to remove a magic number.
Bill Wendling [Tue, 6 Dec 2011 21:23:42 +0000 (21:23 +0000)]
* Add a macro to remove a magic number.
* Rename variables to reflect what they're actually used for.

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

12 years agoPretty-print basic block alignment.
Jakob Stoklund Olesen [Tue, 6 Dec 2011 21:08:39 +0000 (21:08 +0000)]
Pretty-print basic block alignment.

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

12 years agoAdd link to llvm.expect in Release Notes.
Jakub Staszak [Tue, 6 Dec 2011 20:56:36 +0000 (20:56 +0000)]
Add link to llvm.expect in Release Notes.

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

12 years agodelaying restore-cr changed assigned registers in some tests
Hal Finkel [Tue, 6 Dec 2011 20:55:46 +0000 (20:55 +0000)]
delaying restore-cr changed assigned registers in some tests

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

12 years agoadd a test case that uses RESTORE_CR
Hal Finkel [Tue, 6 Dec 2011 20:55:41 +0000 (20:55 +0000)]
add a test case that uses RESTORE_CR

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

12 years agoadd RESTORE_CR and support CR unspills
Hal Finkel [Tue, 6 Dec 2011 20:55:36 +0000 (20:55 +0000)]
add RESTORE_CR and support CR unspills

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

12 years agoremove old FIXME
Hal Finkel [Tue, 6 Dec 2011 20:52:56 +0000 (20:52 +0000)]
remove old FIXME

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

12 years agoCheck the correct value for small stack sizes. Also modify some comments.
Bill Wendling [Tue, 6 Dec 2011 19:16:17 +0000 (19:16 +0000)]
Check the correct value for small stack sizes. Also modify some comments.

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

12 years agoFor a small sized stack, we encode that value directly with no "stack adjust" value.
Bill Wendling [Tue, 6 Dec 2011 19:09:06 +0000 (19:09 +0000)]
For a small sized stack, we encode that value directly with no "stack adjust" value.

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

12 years agoPTX: Continue to fix up the register mess.
Justin Holewinski [Tue, 6 Dec 2011 17:39:48 +0000 (17:39 +0000)]
PTX: Continue to fix up the register mess.

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

12 years agoPTX: Encode registers as unsigned values in the MC asm printer instead of using exter...
Justin Holewinski [Tue, 6 Dec 2011 17:39:46 +0000 (17:39 +0000)]
PTX: Encode registers as unsigned values in the MC asm printer instead of using external symbols

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

12 years agouse space star instead of star space
Sebastian Pop [Tue, 6 Dec 2011 17:34:16 +0000 (17:34 +0000)]
use space star instead of star space

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

12 years agoadd missing point at the end of sentences
Sebastian Pop [Tue, 6 Dec 2011 17:34:11 +0000 (17:34 +0000)]
add missing point at the end of sentences

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

12 years agoSimplify common predecessor finding.
Benjamin Kramer [Tue, 6 Dec 2011 16:14:29 +0000 (16:14 +0000)]
Simplify common predecessor finding.

- Walking over pred_begin/pred_end is an expensive operation.
- PHINodes contain a value for each predecessor anyway.
- While it may look like we used to save a few iterations with the set,
  be aware that getIncomingValueForBlock does a linear search on
  the values of the phi node.
- Another -5% on ARMDisassembler.cpp (Release build). This was the last
  entry in the profile that was obviously wasting time.

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

12 years agoPush StringRefs through the metadata interface.
Benjamin Kramer [Tue, 6 Dec 2011 11:50:26 +0000 (11:50 +0000)]
Push StringRefs through the metadata interface.

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

12 years agoAdd X86ISD::HADD/HSUB to getTargetNodeName
Craig Topper [Tue, 6 Dec 2011 09:31:36 +0000 (09:31 +0000)]
Add X86ISD::HADD/HSUB to getTargetNodeName

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

12 years agoFix a bunch of SSE/AVX patterns to use v2i64/v4i64 loads since all other integer...
Craig Topper [Tue, 6 Dec 2011 09:04:59 +0000 (09:04 +0000)]
Fix a bunch of SSE/AVX patterns to use v2i64/v4i64 loads since all other integer vector loads are promoted to those.

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

12 years agoMerge floating point and integer UNPCK X86ISD node types.
Craig Topper [Tue, 6 Dec 2011 08:21:25 +0000 (08:21 +0000)]
Merge floating point and integer UNPCK X86ISD node types.

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

12 years agotest/MC: Introduce MC/MachO/ARM, and relocate relax-thumb2-branches.s into it.
NAKAMURA Takumi [Tue, 6 Dec 2011 06:48:26 +0000 (06:48 +0000)]
test/MC: Introduce MC/MachO/ARM, and relocate relax-thumb2-branches.s into it.

FIXME: Restore more other arch-dependent MachO tests. (eg. r126401 and r133856)

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

12 years agoClean up some of the shuffle decoding code for UNPCK instructions. Add instruction...
Craig Topper [Tue, 6 Dec 2011 05:31:16 +0000 (05:31 +0000)]
Clean up some of the shuffle decoding code for UNPCK instructions. Add instruction commenting for AVX/AVX2 forms for integer UNPCKs.

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

12 years agoARM mode 'mul' operand ordering tweak.
Jim Grosbach [Tue, 6 Dec 2011 05:28:00 +0000 (05:28 +0000)]
ARM mode 'mul' operand ordering tweak.

Same as r145922, just for ARM mode.

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

12 years agoThumb2: MUL two-operand form encoding operand order fix.
Jim Grosbach [Tue, 6 Dec 2011 05:03:45 +0000 (05:03 +0000)]
Thumb2: MUL two-operand form encoding operand order fix.

Fix the alias to encode 'mul r5, r6' as if it were 'mul r5, r6, r5' so we
match gas.

rdar://10532439

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

12 years agoMerge isSHUFPMask and isCommutedSHUFPMask into single function that can do both....
Craig Topper [Tue, 6 Dec 2011 04:59:07 +0000 (04:59 +0000)]
Merge isSHUFPMask and isCommutedSHUFPMask into single function that can do both. Do the same for the 256-bit version. Use loops to reduce size of isVSHUFPYMask. Fix test cases that were incorrectly passing due to isCommutedSHUFPMask not checking for the vector being 128-bit. This caused some 256-bit shuffles to be incorrectly commuted.

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

12 years agoThumb2 encoding choice correction for PLD.
Jim Grosbach [Tue, 6 Dec 2011 04:49:29 +0000 (04:49 +0000)]
Thumb2 encoding choice correction for PLD.

Using encoding T1 for offset of #0 and encoding T2 for #-0.

rdar://10532413

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