oota-llvm.git
15 years agoFix the N>=64 case in the isInt<> and isUint<> templates.
Jakob Stoklund Olesen [Thu, 13 Aug 2009 06:24:02 +0000 (06:24 +0000)]
Fix the N>=64 case in the isInt<> and isUint<> templates.

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

15 years agotPOP_RET now has predicate operands.
Evan Cheng [Thu, 13 Aug 2009 06:05:07 +0000 (06:05 +0000)]
tPOP_RET now has predicate operands.

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

15 years agoAdd a fixme message about canonicalizing floating-point vector types.
Bob Wilson [Thu, 13 Aug 2009 06:01:30 +0000 (06:01 +0000)]
Add a fixme message about canonicalizing floating-point vector types.

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

15 years agoRevert r78852 for now. I want to do this differently, but I don't have time
Bob Wilson [Thu, 13 Aug 2009 05:58:56 +0000 (05:58 +0000)]
Revert r78852 for now.  I want to do this differently, but I don't have time
to fix it tonight.

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

15 years agofix typo, add 10.6 version of test for my previous patch.
Chris Lattner [Thu, 13 Aug 2009 05:43:33 +0000 (05:43 +0000)]
fix typo, add 10.6 version of test for my previous patch.

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

15 years agoRestore some "small section" support code, reverting my patch from r76936.
Chris Lattner [Thu, 13 Aug 2009 05:41:27 +0000 (05:41 +0000)]
Restore some "small section" support code, reverting my patch from r76936.

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

15 years agoIt's ok to spill a tGPR register as long as it's still allocated a low register.
Evan Cheng [Thu, 13 Aug 2009 05:40:51 +0000 (05:40 +0000)]
It's ok to spill a tGPR register as long as it's still allocated a low register.

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

15 years agofix a minor fixme. When building with SL and later tools, the ".eh" symbols
Chris Lattner [Thu, 13 Aug 2009 05:30:22 +0000 (05:30 +0000)]
fix a minor fixme.  When building with SL and later tools, the ".eh" symbols
don't need to be exported from the .o files.

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

15 years agoWhen InstCombine simplifies a load -> extract element to gep -> load, place
Mon P Wang [Thu, 13 Aug 2009 05:12:13 +0000 (05:12 +0000)]
When InstCombine simplifies a load -> extract element to gep -> load, place
the new load by the old load instead of by the extract element because
a store could have occurred between the load and extract element.

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

15 years agoChange MCSectionELF to represent a section semantically instead of
Bruno Cardoso Lopes [Thu, 13 Aug 2009 05:07:35 +0000 (05:07 +0000)]
Change MCSectionELF to represent a section semantically instead of
syntactically as a string, very similiar to what Chris did with MachO.
The parsing support and validation is not introduced yet.

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

15 years agoSimplify conditional.
Andreas Bolka [Thu, 13 Aug 2009 03:05:20 +0000 (03:05 +0000)]
Simplify conditional.

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

15 years agoSimplify and reduce indentation using early exits.
Andreas Bolka [Thu, 13 Aug 2009 03:00:57 +0000 (03:00 +0000)]
Simplify and reduce indentation using early exits.

No intended functionality change.

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

15 years agoDEBUGify some DOUTs.
Andreas Bolka [Thu, 13 Aug 2009 02:45:03 +0000 (02:45 +0000)]
DEBUGify some DOUTs.

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

15 years agoPrune trailing whitespace.
Andreas Bolka [Thu, 13 Aug 2009 02:40:50 +0000 (02:40 +0000)]
Prune trailing whitespace.

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

15 years agoConvert APint::{fromString,APInt,getBitsNeeded} to use StringRef.
Daniel Dunbar [Thu, 13 Aug 2009 02:33:34 +0000 (02:33 +0000)]
Convert APint::{fromString,APInt,getBitsNeeded} to use StringRef.
 - Patch by Erick Tryzelaar, with some edits (and a bug fix) from me.

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

15 years agoAdd a comment to describe why vector shuffles are legalized to custom DAG nodes.
Bob Wilson [Thu, 13 Aug 2009 02:13:04 +0000 (02:13 +0000)]
Add a comment to describe why vector shuffles are legalized to custom DAG nodes.

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

15 years agoAdd StringRef::front (with some small tweaks while I was in the area).
Daniel Dunbar [Thu, 13 Aug 2009 02:03:30 +0000 (02:03 +0000)]
Add StringRef::front (with some small tweaks while I was in the area).
 - Patch by Erick Tryzelaar

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

15 years agoUse cast<> instead of dyn_cast<> in places where the type is known.
Bob Wilson [Thu, 13 Aug 2009 01:57:47 +0000 (01:57 +0000)]
Use cast<> instead of dyn_cast<> in places where the type is known.

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

15 years agoUpdate llvm-prof for ProfileInfo API changes.
Daniel Dunbar [Thu, 13 Aug 2009 01:55:43 +0000 (01:55 +0000)]
Update llvm-prof for ProfileInfo API changes.
 - Patch by Erick Tryzelaar

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

15 years agoChange the indentation for LLVM Assembly files from 1 tab to 2 spaces.
Dan Gohman [Thu, 13 Aug 2009 01:41:52 +0000 (01:41 +0000)]
Change the indentation for LLVM Assembly files from 1 tab to 2 spaces.
This is vaguely consistent with LLVM's own source code, but more
importantly it lets more lines stay within 80 columns.

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

15 years agoVarious AsmWriter output cleanups. Use WriteAsOperand instead of
Dan Gohman [Thu, 13 Aug 2009 01:36:44 +0000 (01:36 +0000)]
Various AsmWriter output cleanups. Use WriteAsOperand instead of
PrintUnmangledNameSafely.

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

15 years agosink uniquing of sections out of MCContext into the ELF and PECOFF TLOF implementations.
Chris Lattner [Thu, 13 Aug 2009 00:37:15 +0000 (00:37 +0000)]
sink uniquing of sections out of MCContext into the ELF and PECOFF TLOF implementations.

MCContext no longer maintains a string -> section map.

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

15 years agoSymbols with LinkerPrivateLinkage are weak.
Dale Johannesen [Thu, 13 Aug 2009 00:28:52 +0000 (00:28 +0000)]
Symbols with LinkerPrivateLinkage are weak.
This allows WebKit to build again.

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

15 years agomake PIC16 unique its own sections instead of having mcontext do it.
Chris Lattner [Thu, 13 Aug 2009 00:26:52 +0000 (00:26 +0000)]
make PIC16 unique its own sections instead of having mcontext do it.

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

15 years agoadd some comments: MCContext owns the MCSections, but it bump pointer allocates
Chris Lattner [Thu, 13 Aug 2009 00:21:53 +0000 (00:21 +0000)]
add some comments: MCContext owns the MCSections, but it bump pointer allocates
them, so it doesn't have to explicitly free them.

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

15 years agoreject invalid code like:
Chris Lattner [Thu, 13 Aug 2009 00:05:07 +0000 (00:05 +0000)]
reject invalid code like:
int x __attribute__((section("_foo, _bar"))) = 4;
int y __attribute__((section("_foo, _bar, 4byte_literals"))) = 1;

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

15 years agoimplement support for uniquing MachO sections.
Chris Lattner [Wed, 12 Aug 2009 23:55:02 +0000 (23:55 +0000)]
implement support for uniquing MachO sections.

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

15 years agoNow that numbered types have their number printed, it's no longer
Dan Gohman [Wed, 12 Aug 2009 23:54:22 +0000 (23:54 +0000)]
Now that numbered types have their number printed, it's no longer
interesting to print the number in a comment. Numbered instructions
don't need their number in a comment either.

Also, tidy up newline printing.

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

15 years agosome compiler don't get string from TLOF.h implicitly or something.
Chris Lattner [Wed, 12 Aug 2009 23:53:59 +0000 (23:53 +0000)]
some compiler don't get string from TLOF.h implicitly or something.

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

15 years agoreduce #includage
Chris Lattner [Wed, 12 Aug 2009 23:34:27 +0000 (23:34 +0000)]
reduce #includage

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

15 years agoExtend the AsmWriter to print unnamed numbered types as "%0 = type ..."
Dan Gohman [Wed, 12 Aug 2009 23:32:33 +0000 (23:32 +0000)]
Extend the AsmWriter to print unnamed numbered types as "%0 = type ..."
and unnamed numbered global variables as "@0 = global ...". Extend the
AsmParser to recognize these forms.

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

15 years agoMark the callsite intrinsic such that the opimizers know it's not dead.
Jim Grosbach [Wed, 12 Aug 2009 23:03:43 +0000 (23:03 +0000)]
Mark the callsite intrinsic such that the opimizers know it's not dead.

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

15 years agoRecognize Neon VDUP shuffles during legalization instead of selection.
Bob Wilson [Wed, 12 Aug 2009 22:54:19 +0000 (22:54 +0000)]
Recognize Neon VDUP shuffles during legalization instead of selection.

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

15 years agoRecognize Neon VREV shuffles during legalization instead of selection.
Bob Wilson [Wed, 12 Aug 2009 22:31:50 +0000 (22:31 +0000)]
Recognize Neon VREV shuffles during legalization instead of selection.

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

15 years agoAdd a new "SDTCisVec" SDTypeConstraint. This complements the vAny type.
Bob Wilson [Wed, 12 Aug 2009 22:30:59 +0000 (22:30 +0000)]
Add a new "SDTCisVec" SDTypeConstraint.  This complements the vAny type.
There have been a few times where I've wanted this but ended up leaving the
operand type unconstrained.  It is easy to add this now and should help
catch errors in the future.

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

15 years agoThis void is implicit in C++.
Dan Gohman [Wed, 12 Aug 2009 22:10:57 +0000 (22:10 +0000)]
This void is implicit in C++.

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

15 years agoFix counting of Post-RA scheduling stalls. Improve debug output.
David Goodwin [Wed, 12 Aug 2009 21:47:46 +0000 (21:47 +0000)]
Fix counting of Post-RA scheduling stalls. Improve debug output.

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

15 years agoAdd some release notes about ARM v7 support and known problems.
Bob Wilson [Wed, 12 Aug 2009 21:19:49 +0000 (21:19 +0000)]
Add some release notes about ARM v7 support and known problems.

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

15 years agoAdded RegisterCoalescer to required passes for PBQP.
Lang Hames [Wed, 12 Aug 2009 21:04:53 +0000 (21:04 +0000)]
Added RegisterCoalescer to required passes for PBQP.

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

15 years agoUse WriteAsOperand to print BasicBlock names.
Dan Gohman [Wed, 12 Aug 2009 20:56:56 +0000 (20:56 +0000)]
Use WriteAsOperand to print BasicBlock names.

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

15 years agoMake AsmWriter more careful with formatted_raw_ostream so that
Dan Gohman [Wed, 12 Aug 2009 20:56:03 +0000 (20:56 +0000)]
Make AsmWriter more careful with formatted_raw_ostream so that
it doesn't leave the underlying stream in unbuffered mode when
the stream was originally buffered.

Also, change WriteAsOperand back to plain raw_ostream. This
lets it work for either formatted_raw_ostream or plain
raw_ostream, so that it doesn't have to force a buffer flush
on a plain raw_ostream.

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

15 years agoAdd a GetBufferSize() member to raw_ostream and use it to
Dan Gohman [Wed, 12 Aug 2009 20:52:45 +0000 (20:52 +0000)]
Add a GetBufferSize() member to raw_ostream and use it to
simplify some formatted_raw_ostream code.

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

15 years agoGenerate Neon VTBL and VTBX instructions from the corresponding intrinsics.
Bob Wilson [Wed, 12 Aug 2009 20:51:55 +0000 (20:51 +0000)]
Generate Neon VTBL and VTBX instructions from the corresponding intrinsics.

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

15 years agoUse PadToColumn instead of tabs.
Dan Gohman [Wed, 12 Aug 2009 18:55:32 +0000 (18:55 +0000)]
Use PadToColumn instead of tabs.

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

15 years agoFix a few more places to use PadToColumn instead of tabs. And fix
Dan Gohman [Wed, 12 Aug 2009 18:47:05 +0000 (18:47 +0000)]
Fix a few more places to use PadToColumn instead of tabs. And fix
the basic block label printing to check whether a block has a name
before printing a comment character and whitespace for it.

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

15 years agoPredCC is meant to be 2 bits wide, like PredCC1.
Evan Cheng [Wed, 12 Aug 2009 18:35:50 +0000 (18:35 +0000)]
PredCC is meant to be 2 bits wide, like PredCC1.

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

15 years agoUse PadToColumn instead of tabs for aligning comments. Fix one place
Dan Gohman [Wed, 12 Aug 2009 18:32:22 +0000 (18:32 +0000)]
Use PadToColumn instead of tabs for aligning comments. Fix one place
that emitted unnecessary whitespace outside of VerboseAsm mode.

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

15 years agoEnhance the InstrStage object to enable the specification of an Itinerary with overla...
David Goodwin [Wed, 12 Aug 2009 18:31:53 +0000 (18:31 +0000)]
Enhance the InstrStage object to enable the specification of an Itinerary with overlapping stages. The default is to maintain the current behavior that the "next" stage immediately follows the previous one.

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

15 years agoAdd attempted idiotproofing comment per review.
Dale Johannesen [Wed, 12 Aug 2009 18:04:11 +0000 (18:04 +0000)]
Add attempted idiotproofing comment per review.

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

15 years agoimprove win32 path support, patch by Baptiste Lepilleur!
Chris Lattner [Wed, 12 Aug 2009 17:47:06 +0000 (17:47 +0000)]
improve win32 path support, patch by Baptiste Lepilleur!

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

15 years agoTest for 78821, sort of. While that bug is nondeterministic,
Dale Johannesen [Wed, 12 Aug 2009 17:43:47 +0000 (17:43 +0000)]
Test for 78821, sort of.  While that bug is nondeterministic,
this test failed consistently on a Darwin build.

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

15 years agoFix a nondeterministic bug in APInt::roundToDouble;
Dale Johannesen [Wed, 12 Aug 2009 17:42:34 +0000 (17:42 +0000)]
Fix a nondeterministic bug in APInt::roundToDouble;
when !isSingleWord() but getActiveBits() is small,
we were using the pointer value instead of the low
word of the integer value.

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

15 years agoFix whitespace expectations to match the new AsmWriter behavior.
Dan Gohman [Wed, 12 Aug 2009 17:39:04 +0000 (17:39 +0000)]
Fix whitespace expectations to match the new AsmWriter behavior.

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

15 years agoAdd catch block handling to SjLj exception handling.
Jim Grosbach [Wed, 12 Aug 2009 17:38:44 +0000 (17:38 +0000)]
Add catch block handling to SjLj exception handling.

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

15 years agoMake LLVM Assembly dramatically easier to read by aligning the comments,
Dan Gohman [Wed, 12 Aug 2009 17:23:50 +0000 (17:23 +0000)]
Make LLVM Assembly dramatically easier to read by aligning the comments,
using formatted_raw_ostream's PadToColumn.

Before:

bb1:            ; preds = %bb
  %2 = sext i32 %i.01 to i64            ; <i64> [#uses=1]
  %3 = getelementptr double* %p, i64 %2         ; <double*> [#uses=1]
  %4 = load double* %3, align 8         ; <double> [#uses=1]
  %5 = fmul double %4, 1.100000e+00             ; <double> [#uses=1]
  %6 = sext i32 %i.01 to i64            ; <i64> [#uses=1]
  %7 = getelementptr double* %p, i64 %6         ; <double*> [#uses=1]

After:

bb1:                                        ; preds = %bb
  %2 = sext i32 %i.01 to i64                ; <i64> [#uses=1]
  %3 = getelementptr double* %p, i64 %2     ; <double*> [#uses=1]
  %4 = load double* %3, align 8             ; <double> [#uses=1]
  %5 = fmul double %4, 1.100000e+00         ; <double> [#uses=1]
  %6 = sext i32 %i.01 to i64                ; <i64> [#uses=1]
  %7 = getelementptr double* %p, i64 %6     ; <double*> [#uses=1]

Several tests required whitespace adjustments.

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

15 years agoFix TableGen warnings. This partly reverts my previous change to this file,
Bob Wilson [Wed, 12 Aug 2009 17:04:56 +0000 (17:04 +0000)]
Fix TableGen warnings.  This partly reverts my previous change to this file,
leaving the mayLoad and mayStore settings around only the load/store
instructions where those can't be inferred from the patterns.

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

15 years agoFix a missing newline (now that Value*'s operator<< doesn't append one).
Dan Gohman [Wed, 12 Aug 2009 16:48:27 +0000 (16:48 +0000)]
Fix a missing newline (now that Value*'s operator<< doesn't append one).

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

15 years agochange CBE to just get TAI now, instead of TM to get TAI.
Chris Lattner [Wed, 12 Aug 2009 16:41:44 +0000 (16:41 +0000)]
change CBE to just get TAI now, instead of TM to get TAI.

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

15 years agoTransform -X/C to X/-C, implementing a README.txt entry.
Dan Gohman [Wed, 12 Aug 2009 16:37:02 +0000 (16:37 +0000)]
Transform -X/C to X/-C, implementing a README.txt entry.

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

15 years agoOptimize (x/C)*C to x if the division is exact.
Dan Gohman [Wed, 12 Aug 2009 16:33:09 +0000 (16:33 +0000)]
Optimize (x/C)*C to x if the division is exact.

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

15 years agoUpdate instcombine's debug output to account for Value*'s operator<<
Dan Gohman [Wed, 12 Aug 2009 16:28:31 +0000 (16:28 +0000)]
Update instcombine's debug output to account for Value*'s operator<<
not appending its own newline.

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

15 years agoRemove a bunch more now-unnecessary Context arguments.
Dan Gohman [Wed, 12 Aug 2009 16:23:25 +0000 (16:23 +0000)]
Remove a bunch more now-unnecessary Context arguments.

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

15 years agoEliminate a bunch of now unnecessary explicit Context variables.
Dan Gohman [Wed, 12 Aug 2009 16:04:34 +0000 (16:04 +0000)]
Eliminate a bunch of now unnecessary explicit Context variables.

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

15 years agoCMake: Added asm file to x86_64 MSVC build.
Oscar Fuentes [Wed, 12 Aug 2009 15:54:28 +0000 (15:54 +0000)]
CMake: Added asm file to x86_64 MSVC build.

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

15 years agoregister naming cleanup (s/ip/r12/)
Jim Grosbach [Wed, 12 Aug 2009 15:21:13 +0000 (15:21 +0000)]
register naming cleanup (s/ip/r12/)

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

15 years agoFix unit test on FreeBSD. We need to make sure there is enough space to save the...
Benjamin Kramer [Wed, 12 Aug 2009 12:31:02 +0000 (12:31 +0000)]
Fix unit test on FreeBSD. We need to make sure there is enough space to save the pointer even if the memory returned from malloc was already aligned.

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

15 years agocatch a typo and simplify call syntax
Gabor Greif [Wed, 12 Aug 2009 09:05:11 +0000 (09:05 +0000)]
catch a typo and simplify call syntax

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

15 years agohere comes the CMAKE part on LLVM_COMPACT_SENTINELS; see also r78628 and r78661
Gabor Greif [Wed, 12 Aug 2009 08:37:37 +0000 (08:37 +0000)]
here comes the CMAKE part on LLVM_COMPACT_SENTINELS; see also r78628 and r78661

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

15 years agoChange TargetAsmInfo to be constructed via TargetRegistry from a Target+Triple
Chris Lattner [Wed, 12 Aug 2009 07:22:17 +0000 (07:22 +0000)]
Change TargetAsmInfo to be constructed via TargetRegistry from a Target+Triple
pair instead of from a virtual method on TargetMachine.  This cuts the final
ties of TargetAsmInfo to TargetMachine, meaning that MC can now use
TargetAsmInfo.

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

15 years agoone last (?) bad x86 triple test.
Chris Lattner [Wed, 12 Aug 2009 06:49:44 +0000 (06:49 +0000)]
one last (?) bad x86 triple test.

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

15 years agofix some pastos in triple lines.
Chris Lattner [Wed, 12 Aug 2009 06:49:12 +0000 (06:49 +0000)]
fix some pastos in triple lines.

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

15 years agothe x86 version of the name is x86-64, not x86_64. Handle this properly
Chris Lattner [Wed, 12 Aug 2009 06:45:02 +0000 (06:45 +0000)]
the x86 version of the name is x86-64, not x86_64.  Handle this properly
in getArchTypeForLLVMName.

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

15 years agoanother bogus triple
Chris Lattner [Wed, 12 Aug 2009 06:36:52 +0000 (06:36 +0000)]
another bogus triple

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

15 years agoadd support for mingw64 target triples.
Chris Lattner [Wed, 12 Aug 2009 06:32:10 +0000 (06:32 +0000)]
add support for mingw64 target triples.

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

15 years agofix another broken target triple.
Chris Lattner [Wed, 12 Aug 2009 06:29:18 +0000 (06:29 +0000)]
fix another broken target triple.

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

15 years agofix an incorrect target triple.
Chris Lattner [Wed, 12 Aug 2009 06:28:51 +0000 (06:28 +0000)]
fix an incorrect target triple.

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

15 years agoMove immediate constant predicate templates from the Blackfin target to MathExtras.h
Jakob Stoklund Olesen [Wed, 12 Aug 2009 06:22:07 +0000 (06:22 +0000)]
Move immediate constant predicate templates from the Blackfin target to MathExtras.h

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

15 years agoadd a couple of helpers to the Triple class for decoding
Chris Lattner [Wed, 12 Aug 2009 06:19:40 +0000 (06:19 +0000)]
add a couple of helpers to the Triple class for decoding
the darwin version string.  This should help consolidate
the variety of weird functions we have scattered around the
codebase that do stuff like this.

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

15 years agoadd nounwind
Chris Lattner [Wed, 12 Aug 2009 05:44:03 +0000 (05:44 +0000)]
add nounwind

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

15 years agoShrink Thumb2 movcc instructions.
Evan Cheng [Wed, 12 Aug 2009 05:17:19 +0000 (05:17 +0000)]
Shrink Thumb2 movcc instructions.

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

15 years agoCMake: Fixed sed script for translating library dependencies from
Oscar Fuentes [Wed, 12 Aug 2009 04:18:10 +0000 (04:18 +0000)]
CMake: Fixed sed script for translating library dependencies from
LibDeps.txt format to LLVMLibDeps.cmake format.

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

15 years agoCMake: Localized dependency on Perl.
Oscar Fuentes [Wed, 12 Aug 2009 04:16:19 +0000 (04:16 +0000)]
CMake: Localized dependency on Perl.

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

15 years agoCMake: Rely on llvm_config again for obtaining the list of required
Oscar Fuentes [Wed, 12 Aug 2009 04:05:26 +0000 (04:05 +0000)]
CMake: Rely on llvm_config again for obtaining the list of required
libraries for an executable.

Now LLVMConfig uses a new system for sorting library dependencies, as
the list of dependent libraries for each entry of FinalLibDeps.txt no
longer is topologically sorted.

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

15 years agoCMake: updated library dependencies.
Oscar Fuentes [Wed, 12 Aug 2009 03:57:26 +0000 (03:57 +0000)]
CMake: updated library dependencies.

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

15 years agoCMake: cmake/modules/LLVMLibDeps.cmake: Use unix line endings.
Oscar Fuentes [Wed, 12 Aug 2009 03:36:43 +0000 (03:36 +0000)]
CMake: cmake/modules/LLVMLibDeps.cmake: Use unix line endings.

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

15 years agoCMake: Moved hard-coded library dependencies to its own file.
Oscar Fuentes [Wed, 12 Aug 2009 03:32:44 +0000 (03:32 +0000)]
CMake: Moved hard-coded library dependencies to its own file.

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

15 years agoRemove another Darwin assembler workaround.
Evan Cheng [Wed, 12 Aug 2009 02:07:19 +0000 (02:07 +0000)]
Remove another Darwin assembler workaround.

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

15 years ago80 col violation.
Evan Cheng [Wed, 12 Aug 2009 02:03:03 +0000 (02:03 +0000)]
80 col violation.

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

15 years agoRemove an Darwin assembler workaround.
Evan Cheng [Wed, 12 Aug 2009 01:56:42 +0000 (01:56 +0000)]
Remove an Darwin assembler workaround.

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

15 years agoShrink ADDS, ADC, RSB, and SUBS.
Evan Cheng [Wed, 12 Aug 2009 01:49:45 +0000 (01:49 +0000)]
Shrink ADDS, ADC, RSB, and SUBS.

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

15 years agoAdd some comments to clarify the arguments to the vtbl and vtbx intrinsics.
Bob Wilson [Wed, 12 Aug 2009 01:48:30 +0000 (01:48 +0000)]
Add some comments to clarify the arguments to the vtbl and vtbx intrinsics.

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

15 years agoTestcase for r78770.
Bill Wendling [Wed, 12 Aug 2009 01:47:51 +0000 (01:47 +0000)]
Testcase for r78770.

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

15 years agoThis logic was accidentally inverted in r78767.
Dan Gohman [Wed, 12 Aug 2009 01:44:20 +0000 (01:44 +0000)]
This logic was accidentally inverted in r78767.

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

15 years agoCMake: Do not install files with .tmp suffix.
Oscar Fuentes [Wed, 12 Aug 2009 01:37:33 +0000 (01:37 +0000)]
CMake: Do not install files with .tmp suffix.

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

15 years agoCMake: Re-enabled build of llvm-config. Removed recursive invocation
Oscar Fuentes [Wed, 12 Aug 2009 01:36:27 +0000 (01:36 +0000)]
CMake: Re-enabled build of llvm-config. Removed recursive invocation
of cmake.

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

15 years agoFactor out the code for finding an available register for use
Dan Gohman [Wed, 12 Aug 2009 01:33:27 +0000 (01:33 +0000)]
Factor out the code for finding an available register for use
in breaking an anti-dependence into a separate function.

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

15 years agoTest for llvm-gcc patch 78762.
Dale Johannesen [Wed, 12 Aug 2009 01:14:30 +0000 (01:14 +0000)]
Test for llvm-gcc patch 78762.

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

15 years agoAdd missing chain operands for VLD* and VST* instructions.
Bob Wilson [Wed, 12 Aug 2009 00:49:01 +0000 (00:49 +0000)]
Add missing chain operands for VLD* and VST* instructions.
Set "mayLoad" and "mayStore" on the load/store instructions.

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

15 years agoAdd contexts to some of the MVT APIs. No functionality change yet, just the infrastr...
Owen Anderson [Wed, 12 Aug 2009 00:36:31 +0000 (00:36 +0000)]
Add contexts to some of the MVT APIs.  No functionality change yet, just the infrastructure work needed to get the contexts to where they need to be first.

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

15 years agollvm-gcc now emits inbounds for this getelementptr.
Dan Gohman [Wed, 12 Aug 2009 00:35:55 +0000 (00:35 +0000)]
llvm-gcc now emits inbounds for this getelementptr.

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