oota-llvm.git
14 years agoImplement PointerUnion4.
Douglas Gregor [Wed, 29 Jul 2009 18:19:47 +0000 (18:19 +0000)]
Implement PointerUnion4.

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

14 years agoRefactor. Fix indentation.
Devang Patel [Wed, 29 Jul 2009 18:15:02 +0000 (18:15 +0000)]
Refactor. Fix indentation.

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

14 years agoAdd llvm_unreachable for ... unreachable code!
Eric Christopher [Wed, 29 Jul 2009 18:14:04 +0000 (18:14 +0000)]
Add llvm_unreachable for ... unreachable code!

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

14 years agoxfail for now.
Evan Cheng [Wed, 29 Jul 2009 17:40:28 +0000 (17:40 +0000)]
xfail for now.

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

14 years agoPerform simplification noticed by Reid.
Daniel Dunbar [Wed, 29 Jul 2009 17:29:36 +0000 (17:29 +0000)]
Perform simplification noticed by Reid.

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

14 years agoKeep track of named mdnodes in a Module using an ilist.
Devang Patel [Wed, 29 Jul 2009 17:16:17 +0000 (17:16 +0000)]
Keep track of named mdnodes in a Module using an ilist.

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

14 years agofix unittest on platforms with unsigned chars (e.g. linux-ppc)
Benjamin Kramer [Wed, 29 Jul 2009 16:48:32 +0000 (16:48 +0000)]
fix unittest on platforms with unsigned chars (e.g. linux-ppc)

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

14 years agoAdd missing include.
Daniel Dunbar [Wed, 29 Jul 2009 16:45:40 +0000 (16:45 +0000)]
Add missing include.

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

14 years agoChange Neon VLDn intrinsics to return multiple values instead of really
Bob Wilson [Wed, 29 Jul 2009 16:39:22 +0000 (16:39 +0000)]
Change Neon VLDn intrinsics to return multiple values instead of really
wide vectors.  Likewise, change VSTn intrinsics to take separate arguments
for each vector in a multi-vector struct.  Adjust tests accordingly.

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

14 years agoFix the verifier to handle intrinsics with LLVMMatchType parameters, where
Bob Wilson [Wed, 29 Jul 2009 16:35:59 +0000 (16:35 +0000)]
Fix the verifier to handle intrinsics with LLVMMatchType parameters, where
the return type of the intrinsic is not overloaded, i.e., where the type
being matched is some other parameter.  The argument to LLVMMatchType is
an index into the list of overloaded types (ignoring the fixed types),
but VerifyIntrinsicPrototype is expecting its arguments for LLVMMatchType
parameters to be indices into the combined list of _all_ return values and
parameters, not just the overloaded ones.

This patch changes TableGen to keep track for each overloaded type of the
corresponding index into the list of return values and parameters.  It
then generates the values expected by VerifyIntrinsicPrototype.

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

14 years agoFix an assumption that there is a single return value when verifying
Bob Wilson [Wed, 29 Jul 2009 16:25:56 +0000 (16:25 +0000)]
Fix an assumption that there is a single return value when verifying
overloaded types for intrinsic parameters.

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

14 years agoRe-apply previous changes and improve column padding performance some more.
David Greene [Wed, 29 Jul 2009 16:08:27 +0000 (16:08 +0000)]
Re-apply previous changes and improve column padding performance some more.

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

14 years agoAdd one-past-the-end language to the inbounds keyword.
Dan Gohman [Wed, 29 Jul 2009 16:00:30 +0000 (16:00 +0000)]
Add one-past-the-end language to the inbounds keyword.

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

14 years agoMinor code simplification.
Dan Gohman [Wed, 29 Jul 2009 15:58:36 +0000 (15:58 +0000)]
Minor code simplification.

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

14 years agoFix comment.
Devang Patel [Wed, 29 Jul 2009 15:52:49 +0000 (15:52 +0000)]
Fix comment.

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

14 years agotrim include list.
Devang Patel [Wed, 29 Jul 2009 15:24:54 +0000 (15:24 +0000)]
trim include list.

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

14 years agoMSVC build fix. Patch by Olaf Krzikalla!
Benjamin Kramer [Wed, 29 Jul 2009 11:21:25 +0000 (11:21 +0000)]
MSVC build fix. Patch by Olaf Krzikalla!

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

14 years agoTwines: Support numeric conversion directly (uitostr, etc).
Daniel Dunbar [Wed, 29 Jul 2009 07:08:44 +0000 (07:08 +0000)]
Twines: Support numeric conversion directly (uitostr, etc).
 - Provides static constructors for doing number to string conversions without
   using temporaries.

 - There are several ways to do this, I think given the Twine constraints this
   is the simplest one.

 - One FIXME for fast number -> hex conversion.

 - Added another comment on one last major bit of perf work Twines need, which
   is to make raw_svector_ostream more efficient.

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

14 years agoraw_ostream: Follow the 32-bit path when printing "small" decimal numbers.
Daniel Dunbar [Wed, 29 Jul 2009 06:45:14 +0000 (06:45 +0000)]
raw_ostream: Follow the 32-bit path when printing "small" decimal numbers.

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

14 years agosome wording changes.
Chris Lattner [Wed, 29 Jul 2009 06:44:13 +0000 (06:44 +0000)]
some wording changes.

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

14 years agomore syntactic cleanups.
Chris Lattner [Wed, 29 Jul 2009 06:33:53 +0000 (06:33 +0000)]
more syntactic cleanups.

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

14 years agominor smallvector cleanups
Chris Lattner [Wed, 29 Jul 2009 06:29:53 +0000 (06:29 +0000)]
minor smallvector cleanups

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

14 years agolink to a newer preso
Chris Lattner [Wed, 29 Jul 2009 06:19:14 +0000 (06:19 +0000)]
link to a newer preso

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

14 years agoJust discard the output, no need to turn it back into text.
Nick Lewycky [Wed, 29 Jul 2009 06:14:52 +0000 (06:14 +0000)]
Just discard the output, no need to turn it back into text.

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

14 years agowhitespace cleanup.
Chris Lattner [Wed, 29 Jul 2009 05:48:09 +0000 (05:48 +0000)]
whitespace cleanup.

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

14 years agoSkeleton for pairwise subscript testing.
Andreas Bolka [Wed, 29 Jul 2009 05:35:53 +0000 (05:35 +0000)]
Skeleton for pairwise subscript testing.

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

14 years agodon't dump .bc file to stdout, and simplify this to a trivial testcase.
Chris Lattner [Wed, 29 Jul 2009 05:32:07 +0000 (05:32 +0000)]
don't dump .bc file to stdout, and simplify this to a trivial testcase.

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

14 years agomingw uses .data and .text, not _data and _text.
Chris Lattner [Wed, 29 Jul 2009 05:25:42 +0000 (05:25 +0000)]
mingw uses .data and .text, not _data and _text.

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

14 years agofix PR4584 with a trivial patch now that the pieces are in place.
Chris Lattner [Wed, 29 Jul 2009 05:20:33 +0000 (05:20 +0000)]
fix PR4584 with a trivial patch now that the pieces are in place.

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

14 years agoBulk erasing instructions without RAUWing them is unsafe. Instead, break them
Nick Lewycky [Wed, 29 Jul 2009 05:17:50 +0000 (05:17 +0000)]
Bulk erasing instructions without RAUWing them is unsafe. Instead, break them
into a new BB that has no predecessors.

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

14 years agopass the mangler down into the various SectionForGlobal methods.
Chris Lattner [Wed, 29 Jul 2009 05:09:30 +0000 (05:09 +0000)]
pass the mangler down into the various SectionForGlobal methods.
No functionality change.

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

14 years agoRevert AsmWriterEmitter.cpp to 74742. The recent changes are causing serious compile...
Evan Cheng [Wed, 29 Jul 2009 05:06:11 +0000 (05:06 +0000)]
Revert AsmWriterEmitter.cpp to 74742. The recent changes are causing serious compile time regression.

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

14 years agoconstant prop a utostr.
Chris Lattner [Wed, 29 Jul 2009 04:55:08 +0000 (04:55 +0000)]
constant prop a utostr.

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

14 years agoremove some completely wrong code. 1 is never < 16. It turns out that GCC appears...
Chris Lattner [Wed, 29 Jul 2009 04:54:38 +0000 (04:54 +0000)]
remove some completely wrong code.  1 is never < 16.  It turns out that GCC appears to put strings of any length into the ELF cstring equivalent, so just rip out the code.

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

14 years agoRevert r77397, it causes significant regressions in llc performance.
Daniel Dunbar [Wed, 29 Jul 2009 03:04:22 +0000 (03:04 +0000)]
Revert r77397, it causes significant regressions in llc performance.

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

14 years agoOptimize Thumb2 jumptable to use tbb / tbh when all the offsets fit in byte / halfword.
Evan Cheng [Wed, 29 Jul 2009 02:18:14 +0000 (02:18 +0000)]
Optimize Thumb2 jumptable to use tbb / tbh when all the offsets fit in byte / halfword.

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

14 years agoFix comment.
Eric Christopher [Wed, 29 Jul 2009 01:01:19 +0000 (01:01 +0000)]
Fix comment.

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

14 years agoChange the "PreferredEHDataFormat" from "absptr" if we're on a Darwin system >
Bill Wendling [Wed, 29 Jul 2009 00:59:34 +0000 (00:59 +0000)]
Change the "PreferredEHDataFormat" from "absptr" if we're on a Darwin system >
Leopard.

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

14 years agoAdd a couple more tests for the ptest intrinsics to make sure we're
Eric Christopher [Wed, 29 Jul 2009 00:51:15 +0000 (00:51 +0000)]
Add a couple more tests for the ptest intrinsics to make sure we're
grabbing them all correctly.

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

14 years agoMove comment to above method.
Bill Wendling [Wed, 29 Jul 2009 00:50:05 +0000 (00:50 +0000)]
Move comment to above method.

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

14 years agoParse named metadata.
Devang Patel [Wed, 29 Jul 2009 00:34:02 +0000 (00:34 +0000)]
Parse named metadata.

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

14 years agoAdd NamedMDNode.
Devang Patel [Wed, 29 Jul 2009 00:33:07 +0000 (00:33 +0000)]
Add NamedMDNode.

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

14 years ago- Temporarily unbreak the build by forcing the TType "absptr", which isn't
Bill Wendling [Wed, 29 Jul 2009 00:31:35 +0000 (00:31 +0000)]
- Temporarily unbreak the build by forcing the TType "absptr", which isn't
  correct. But what are you going to do? I'll fix this in the future.
- Move another large loop into its own method.

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

14 years agoAdd support for gcc __builtin_ia32_ptest{z,c,nzc} intrinsics. Lower
Eric Christopher [Wed, 29 Jul 2009 00:28:05 +0000 (00:28 +0000)]
Add support for gcc __builtin_ia32_ptest{z,c,nzc} intrinsics. Lower
to ptest instruction plus setcc. Revamp ptest instruction. Add test.

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

14 years agoRemove another F_OK.
Dan Gohman [Wed, 29 Jul 2009 00:02:58 +0000 (00:02 +0000)]
Remove another F_OK.

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

14 years agoMatch X86 register names to number.
Daniel Dunbar [Wed, 29 Jul 2009 00:02:19 +0000 (00:02 +0000)]
Match X86 register names to number.

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

14 years agoFix a few typos and add links.
Andreas Bolka [Wed, 29 Jul 2009 00:02:05 +0000 (00:02 +0000)]
Fix a few typos and add links.

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

14 years agoThumb-2: fix typo that caused incorrect stack elimination for VFP operations and...
David Goodwin [Tue, 28 Jul 2009 23:52:33 +0000 (23:52 +0000)]
Thumb-2: fix typo that caused incorrect stack elimination for VFP operations and very large stack frames.

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

14 years agoCleanup code to use iterators instead of ".size()".
Bill Wendling [Tue, 28 Jul 2009 23:44:43 +0000 (23:44 +0000)]
Cleanup code to use iterators instead of ".size()".

Does any one else hate the name "const_reverse_iterator" as much as I do?

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

14 years agoSlightly reformat LDA tests to ease grepping.
Andreas Bolka [Tue, 28 Jul 2009 23:40:40 +0000 (23:40 +0000)]
Slightly reformat LDA tests to ease grepping.

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

14 years agoImprove performance of PadToColumn by eliminating flushes.
David Greene [Tue, 28 Jul 2009 23:26:34 +0000 (23:26 +0000)]
Improve performance of PadToColumn by eliminating flushes.

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

14 years agoOn "Unix", if Program::FindProgramByName is given a name containing
Dan Gohman [Tue, 28 Jul 2009 23:25:18 +0000 (23:25 +0000)]
On "Unix", if Program::FindProgramByName is given a name containing
slashes, just go with it, regardless of whether it looks like it will
be executable. This follows the behavior of sh(1) more closely.

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

14 years agoAdd some protected interfaces to allow subclass access to the buffer.
David Greene [Tue, 28 Jul 2009 23:24:58 +0000 (23:24 +0000)]
Add some protected interfaces to allow subclass access to the buffer.

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

14 years agoDoxygenify comments.
Bill Wendling [Tue, 28 Jul 2009 23:23:00 +0000 (23:23 +0000)]
Doxygenify comments.

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

14 years agoSplit out large loop into it's very own method. No intended functionality change.
Bill Wendling [Tue, 28 Jul 2009 23:22:13 +0000 (23:22 +0000)]
Split out large loop into it's very own method. No intended functionality change.

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

14 years agoIt isn't necessary to use F_OK when using R_OK or similar.
Dan Gohman [Tue, 28 Jul 2009 23:22:01 +0000 (23:22 +0000)]
It isn't necessary to use F_OK when using R_OK or similar.

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

14 years agoAdd a bugpoint flag to disable block extraction.
David Goodwin [Tue, 28 Jul 2009 23:08:36 +0000 (23:08 +0000)]
Add a bugpoint flag to disable block extraction.

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

14 years agodiscourage else after "noreturn" statements.
Chris Lattner [Tue, 28 Jul 2009 22:54:04 +0000 (22:54 +0000)]
discourage else after "noreturn" statements.

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

14 years agoUpdate CMakeLists
Daniel Dunbar [Tue, 28 Jul 2009 22:46:39 +0000 (22:46 +0000)]
Update CMakeLists

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

14 years agoMove X86 instruction parsing into X86/AsmParser.
Daniel Dunbar [Tue, 28 Jul 2009 22:40:46 +0000 (22:40 +0000)]
Move X86 instruction parsing into X86/AsmParser.

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

14 years agoClarify getName() comment.
Devang Patel [Tue, 28 Jul 2009 22:30:52 +0000 (22:30 +0000)]
Clarify getName() comment.

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

14 years agoOutput the EH TType format and base offset only if there are types that we're
Bill Wendling [Tue, 28 Jul 2009 22:23:45 +0000 (22:23 +0000)]
Output the EH TType format and base offset only if there are types that we're
going to emit.

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

14 years agoMake expression parsing and error/warning reporting available through the
Daniel Dunbar [Tue, 28 Jul 2009 22:22:31 +0000 (22:22 +0000)]
Make expression parsing and error/warning reporting available through the
generic MCAsmParser interface.

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

14 years agoFix a fixme; don't take binaries from the working directory.
Benjamin Kramer [Tue, 28 Jul 2009 22:08:15 +0000 (22:08 +0000)]
Fix a fixme; don't take binaries from the working directory.

This fixes clang on non-darwin platforms if a file called 'ld' or 'as'
is in the working directory. Based on patch by Pawel Worach!

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

14 years agoRemove unused method.
Devang Patel [Tue, 28 Jul 2009 22:04:55 +0000 (22:04 +0000)]
Remove unused method.

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

14 years agoOutput the correct format for Darwin.
Bill Wendling [Tue, 28 Jul 2009 22:03:50 +0000 (22:03 +0000)]
Output the correct format for Darwin.

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

14 years agofix unittest
Benjamin Kramer [Tue, 28 Jul 2009 22:03:24 +0000 (22:03 +0000)]
fix unittest

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

14 years agoUse the preferred EH data format for the preferred EH data format.
Bill Wendling [Tue, 28 Jul 2009 21:54:03 +0000 (21:54 +0000)]
Use the preferred EH data format for the preferred EH data format.

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

14 years agoDarwin outputs (DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4) when we're
Bill Wendling [Tue, 28 Jul 2009 21:53:17 +0000 (21:53 +0000)]
Darwin outputs (DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4) when we're
dealing with Data.

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

14 years agoRemove unused parameter name.
Bill Wendling [Tue, 28 Jul 2009 21:50:32 +0000 (21:50 +0000)]
Remove unused parameter name.

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

14 years agoRename MDNode.h header. It defines MDnode and other metadata classes.
Devang Patel [Tue, 28 Jul 2009 21:49:47 +0000 (21:49 +0000)]
Rename MDNode.h header. It defines MDnode and other metadata classes.
New name is Metadata.h.

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

14 years agoFix a typo.
Evan Cheng [Tue, 28 Jul 2009 21:49:18 +0000 (21:49 +0000)]
Fix a typo.

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

14 years agoReturn ConstantVector to 2.5 API.
Owen Anderson [Tue, 28 Jul 2009 21:19:26 +0000 (21:19 +0000)]
Return ConstantVector to 2.5 API.

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

14 years agoIn thumb2 mode, add pc is unpredictable. Use add + mov pc instead (that is until...
Evan Cheng [Tue, 28 Jul 2009 20:53:24 +0000 (20:53 +0000)]
In thumb2 mode, add pc is unpredictable. Use add + mov pc instead (that is until more optimization goes in).

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

14 years agoRemove support for ORN to workaround <rdar://problem/7096522>.
David Goodwin [Tue, 28 Jul 2009 20:51:25 +0000 (20:51 +0000)]
Remove support for ORN to workaround <rdar://problem/7096522>.

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

14 years agoProvide generic MCAsmParser when constructing target specific parsers.
Daniel Dunbar [Tue, 28 Jul 2009 20:47:52 +0000 (20:47 +0000)]
Provide generic MCAsmParser when constructing target specific parsers.

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

14 years agoAdd DebugInfoEnumerator to collect debug info.
Devang Patel [Tue, 28 Jul 2009 19:55:13 +0000 (19:55 +0000)]
Add DebugInfoEnumerator to collect debug info.

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

14 years agoSimplify LDA-internal interface.
Andreas Bolka [Tue, 28 Jul 2009 19:50:13 +0000 (19:50 +0000)]
Simplify LDA-internal interface.

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

14 years agoAdd LDA statistics.
Andreas Bolka [Tue, 28 Jul 2009 19:49:49 +0000 (19:49 +0000)]
Add LDA statistics.

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

14 years agoMinor factoring, naming and formatting cleanups.
Andreas Bolka [Tue, 28 Jul 2009 19:49:25 +0000 (19:49 +0000)]
Minor factoring, naming and formatting cleanups.

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

14 years agoHandle null and file symbol on doInitialization
Bruno Cardoso Lopes [Tue, 28 Jul 2009 19:25:33 +0000 (19:25 +0000)]
Handle null and file symbol on doInitialization

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

14 years agomore simplifications and cleanup. :)
Chris Lattner [Tue, 28 Jul 2009 18:48:43 +0000 (18:48 +0000)]
more simplifications and cleanup. :)

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

14 years agoChange ConstantArray to 2.5 API.
Owen Anderson [Tue, 28 Jul 2009 18:32:17 +0000 (18:32 +0000)]
Change ConstantArray to 2.5 API.

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

14 years agoSwitch X86 assembly parser to using the generic lexer interface.
Daniel Dunbar [Tue, 28 Jul 2009 18:17:26 +0000 (18:17 +0000)]
Switch X86 assembly parser to using the generic lexer interface.

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

14 years agoAdd workaround for <rdar://problem/7098328>.
David Goodwin [Tue, 28 Jul 2009 18:15:38 +0000 (18:15 +0000)]
Add workaround for <rdar://problem/7098328>.

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

14 years agofix testcase for previous patch.
Chris Lattner [Tue, 28 Jul 2009 18:04:18 +0000 (18:04 +0000)]
fix testcase for previous patch.

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

14 years agoExpose Tokens to target specific assembly parsers.
Daniel Dunbar [Tue, 28 Jul 2009 17:58:44 +0000 (17:58 +0000)]
Expose Tokens to target specific assembly parsers.

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

14 years agoFix PR4639, a ELF-TLS regression from some of my refactoring.
Chris Lattner [Tue, 28 Jul 2009 17:57:51 +0000 (17:57 +0000)]
Fix PR4639, a ELF-TLS regression from some of my refactoring.

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

14 years agothe apple "ld_classic" linker doesn't support .literal16 in 32-bit
Chris Lattner [Tue, 28 Jul 2009 17:50:28 +0000 (17:50 +0000)]
the apple "ld_classic" linker doesn't support .literal16 in 32-bit
mode, and "ld64" (the default linker) falls back to it in -static
mode.

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

14 years agoTweak LLVM emacs style to make default namespace indentation closer to style
Daniel Dunbar [Tue, 28 Jul 2009 17:34:57 +0000 (17:34 +0000)]
Tweak LLVM emacs style to make default namespace indentation closer to style
guide.

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

14 years agoAdd Thumb-2 patterns for ARMsrl_flag and ARMsra_flag.
David Goodwin [Tue, 28 Jul 2009 17:06:49 +0000 (17:06 +0000)]
Add Thumb-2 patterns for ARMsrl_flag and ARMsra_flag.

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

14 years agoSwitch AsmLexer::Lex to returning a reference to the current token.
Daniel Dunbar [Tue, 28 Jul 2009 16:56:42 +0000 (16:56 +0000)]
Switch AsmLexer::Lex to returning a reference to the current token.

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

14 years agoAdd reload and remat backscheduling. This is disabled by default. Use
David Greene [Tue, 28 Jul 2009 16:49:24 +0000 (16:49 +0000)]
Add reload and remat backscheduling.  This is disabled by default.  Use
-schedule-spills=true to enable.

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

14 years agofix unused variable warning
Chris Lattner [Tue, 28 Jul 2009 16:49:19 +0000 (16:49 +0000)]
fix unused variable warning

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

14 years agoDrop some AsmLexer methods in favor of their AsmToken equivalents.
Daniel Dunbar [Tue, 28 Jul 2009 16:38:40 +0000 (16:38 +0000)]
Drop some AsmLexer methods in favor of their AsmToken equivalents.

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

14 years agollvm-mc: Sink token enum into AsmToken.
Daniel Dunbar [Tue, 28 Jul 2009 16:08:33 +0000 (16:08 +0000)]
llvm-mc: Sink token enum into AsmToken.

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

14 years agoInclude cmath/math.h in DataTypes.h regardless of whether MSVC is being used.
Stefanus Du Toit [Tue, 28 Jul 2009 13:41:07 +0000 (13:41 +0000)]
Include cmath/math.h in DataTypes.h regardless of whether MSVC is being used.

Fixes MSVC build of LiveInterval.cpp.

Patch by Nicolas Capens.

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

14 years agotADDrSPI doesn't have a predicate operand, but tADDhirr and tADDi3 have.
Evan Cheng [Tue, 28 Jul 2009 07:38:35 +0000 (07:38 +0000)]
tADDrSPI doesn't have a predicate operand, but tADDhirr and tADDi3 have.

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

14 years agoRemove memory corruption bug. string.c_str() was returning a temporary that was
Nick Lewycky [Tue, 28 Jul 2009 06:53:50 +0000 (06:53 +0000)]
Remove memory corruption bug. string.c_str() was returning a temporary that was
dead before we used it.

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

14 years agoCode clean up. No functionality changes.
Evan Cheng [Tue, 28 Jul 2009 06:24:12 +0000 (06:24 +0000)]
Code clean up. No functionality changes.

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