oota-llvm.git
15 years agoMove ExtractElementInst to ::Create instead of new. Update all uses.
Eric Christopher [Sat, 25 Jul 2009 02:28:41 +0000 (02:28 +0000)]
Move ExtractElementInst to ::Create instead of new. Update all uses.

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

15 years agoUpdate to new syntax.
Dan Gohman [Sat, 25 Jul 2009 02:23:48 +0000 (02:23 +0000)]
Update to new syntax.

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

15 years agoRewrite examples to use DEBUG instead of DOUT.
Daniel Dunbar [Sat, 25 Jul 2009 01:55:32 +0000 (01:55 +0000)]
Rewrite examples to use DEBUG instead of DOUT.

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

15 years ago80 col violation.
Evan Cheng [Sat, 25 Jul 2009 01:55:25 +0000 (01:55 +0000)]
80 col violation.

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

15 years agoConvert a few more things to use raw_ostream.
Dan Gohman [Sat, 25 Jul 2009 01:43:01 +0000 (01:43 +0000)]
Convert a few more things to use raw_ostream.

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

15 years agoGet rid of a couple of unnecessary getOpcode calls.
Evan Cheng [Sat, 25 Jul 2009 01:25:08 +0000 (01:25 +0000)]
Get rid of a couple of unnecessary getOpcode calls.

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

15 years agoTeach ScalarEvolution to make use of no-overflow flags when
Dan Gohman [Sat, 25 Jul 2009 01:22:26 +0000 (01:22 +0000)]
Teach ScalarEvolution to make use of no-overflow flags when
analyzing add recurrences.

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

15 years agoConvert a few more uses of llvm/Support/Streams.h to raw_ostream.
Dan Gohman [Sat, 25 Jul 2009 01:13:51 +0000 (01:13 +0000)]
Convert a few more uses of llvm/Support/Streams.h to raw_ostream.

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

15 years agoInstead of eagerly creating new SCEVs to replace all SCEVs that are
Dan Gohman [Sat, 25 Jul 2009 01:13:03 +0000 (01:13 +0000)]
Instead of eagerly creating new SCEVs to replace all SCEVs that are
affected after a PHI node has been analyzed, just remove affected
SCEVs from the Scalars map, so that they'll be (lazily) recreated as
needed. This avoids creating SCEV objects that aren't actually needed.

Also, rewrite the associated def-use walking code to be non-recursive
and to continue traversing past Instructions that don't have an
entry in the Scalars map.

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

15 years agoI've lost my mind. PR4572 has not been fixed.
Evan Cheng [Sat, 25 Jul 2009 01:11:46 +0000 (01:11 +0000)]
I've lost my mind. PR4572 has not been fixed.

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

15 years agoMake AliasAnalysis and related classes use
Dan Gohman [Sat, 25 Jul 2009 00:48:42 +0000 (00:48 +0000)]
Make AliasAnalysis and related classes use
getAnalysisIfAvailable<TargetData>().

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

15 years agoOne more getName -> getNameStr
Daniel Dunbar [Sat, 25 Jul 2009 00:43:31 +0000 (00:43 +0000)]
One more getName -> getNameStr

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

15 years agoAnother TODO.
Evan Cheng [Sat, 25 Jul 2009 00:39:37 +0000 (00:39 +0000)]
Another TODO.

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

15 years agoAdd a missing ilist_node.h #include to SparseBitVector, and add a very short
Jeffrey Yasskin [Sat, 25 Jul 2009 00:33:57 +0000 (00:33 +0000)]
Add a missing ilist_node.h #include to SparseBitVector, and add a very short
test for it. The test is by no means complete, but it tests the problem I was
fixing.

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

15 years agoChange Thumb2 jumptable codegen to one that uses two level jumps:
Evan Cheng [Sat, 25 Jul 2009 00:33:29 +0000 (00:33 +0000)]
Change Thumb2 jumptable codegen to one that uses two level jumps:

Before:
      adr r12, #LJTI3_0_0
      ldr pc, [r12, +r0, lsl #2]
LJTI3_0_0:
      .long    LBB3_24
      .long    LBB3_30
      .long    LBB3_31
      .long    LBB3_32

After:
      adr r12, #LJTI3_0_0
      add pc, r12, +r0, lsl #2
LJTI3_0_0:
      b.w    LBB3_24
      b.w    LBB3_30
      b.w    LBB3_31
      b.w    LBB3_32

This has several advantages.
1. This will make it easier to optimize this to a TBB / TBH instruction +
   (smaller) table.
2. This eliminate the need for ugly asm printer hack to force the address
   into thumb addresses (bit 0 is one).
3. Same codegen for pic and non-pic.
4. This eliminate the need to align the table so constantpool island pass
   won't have to over-estimate the size.

Based on my calculation, the later is probably slightly faster as well since
ldr pc with shifter address is very slow. That is, it should be a win as long
as the HW implementation can do a reasonable job of branch predict the second
branch.

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

15 years agoMemoryObject - Abstract base class for contiguous addressable memory.
Sean Callanan [Sat, 25 Jul 2009 00:30:51 +0000 (00:30 +0000)]
MemoryObject - Abstract base class for contiguous addressable memory.
  Necessary for cases in which the memory is in another process, in a
  file, or on a remote machine.

The primary use for this is the llvm-mc disassemblers, so that they
can be targeted at arbitrary objects, not just in-process memory.

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

15 years agoRemove a duplicated test.
Evan Cheng [Sat, 25 Jul 2009 00:24:40 +0000 (00:24 +0000)]
Remove a duplicated test.

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

15 years agoMore migration to raw_ostream, the water has dried up around the iostream hole.
Daniel Dunbar [Sat, 25 Jul 2009 00:23:56 +0000 (00:23 +0000)]
More migration to raw_ostream, the water has dried up around the iostream hole.
 - Some clients which used DOUT have moved to DEBUG. We are deprecating the
   "magic" DOUT behavior which avoided calling printing functions when the
   statement was disabled. In addition to being unnecessary magic, it had the
   downside of leaving code in -Asserts builds, and of hiding potentially
   unnecessary computations.

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

15 years agoARM code emitter can't handle Thumb2 instructions yet. So don't even try.
Evan Cheng [Sat, 25 Jul 2009 00:13:11 +0000 (00:13 +0000)]
ARM code emitter can't handle Thumb2 instructions yet. So don't even try.

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

15 years agoTweak, raw_ostream is a ostream, not iostream replacement
Daniel Dunbar [Fri, 24 Jul 2009 23:54:34 +0000 (23:54 +0000)]
Tweak, raw_ostream is a ostream, not iostream replacement

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

15 years agoFix build for GCC 4.0?
Daniel Dunbar [Fri, 24 Jul 2009 23:42:33 +0000 (23:42 +0000)]
Fix build for GCC 4.0?

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

15 years agoFix compile with 4.4 (I hope?); PR4617.
Daniel Dunbar [Fri, 24 Jul 2009 23:23:46 +0000 (23:23 +0000)]
Fix compile with 4.4 (I hope?); PR4617.

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

15 years agoForward-declare raw_ostream.
Andreas Bolka [Fri, 24 Jul 2009 23:19:28 +0000 (23:19 +0000)]
Forward-declare raw_ostream.

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

15 years agoRevert the ConstantInt constructors back to their 2.5 forms where possible, thanks...
Owen Anderson [Fri, 24 Jul 2009 23:12:02 +0000 (23:12 +0000)]
Revert the ConstantInt constructors back to their 2.5 forms where possible, thanks to contexts-on-types.  More to come.

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

15 years agoCodingStandards: Emphasize use of raw_ostream more.
Daniel Dunbar [Fri, 24 Jul 2009 23:04:51 +0000 (23:04 +0000)]
CodingStandards: Emphasize use of raw_ostream more.
 - Chris, please approve.

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

15 years agoAliasAnalysis wants sizes in address-units, not bits.
Dan Gohman [Fri, 24 Jul 2009 23:01:30 +0000 (23:01 +0000)]
AliasAnalysis wants sizes in address-units, not bits.

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

15 years agoForgot this test earlier.
Evan Cheng [Fri, 24 Jul 2009 22:42:45 +0000 (22:42 +0000)]
Forgot this test earlier.

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

15 years agoFix these tests.
Evan Cheng [Fri, 24 Jul 2009 22:42:22 +0000 (22:42 +0000)]
Fix these tests.

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

15 years agoFix assert assembling zero-argument constant GEP.
Eli Friedman [Fri, 24 Jul 2009 21:56:17 +0000 (21:56 +0000)]
Fix assert assembling zero-argument constant GEP.

There's still a strict-aliasing violation here, but I don't feel like
dealing with that right now...

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

15 years agoUh. It would be useful to actually print the operand.
Evan Cheng [Fri, 24 Jul 2009 20:47:38 +0000 (20:47 +0000)]
Uh. It would be useful to actually print the operand.

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

15 years agofix some predicates
Chris Lattner [Fri, 24 Jul 2009 20:27:11 +0000 (20:27 +0000)]
fix some predicates

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

15 years agochange SectionKindForGlobal from being a public (and
Chris Lattner [Fri, 24 Jul 2009 20:14:10 +0000 (20:14 +0000)]
change SectionKindForGlobal from being a public (and
previously virtual) function to being a static function
in the .cpp file.

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

15 years agoDisable my constant island pass optimization (to make use soimm more effectively...
Evan Cheng [Fri, 24 Jul 2009 19:31:03 +0000 (19:31 +0000)]
Disable my constant island pass optimization (to make use soimm more effectively). It caused infinite looping on lencod.

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

15 years agoMove insertps tests to sse41 combo test file, convert to filecheck
Eric Christopher [Fri, 24 Jul 2009 19:24:26 +0000 (19:24 +0000)]
Move insertps tests to sse41 combo test file, convert to filecheck
format and add an extract/insert test.

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

15 years agomake SectionKindForGlobal target independent, and therefore non-virtual.
Chris Lattner [Fri, 24 Jul 2009 19:15:47 +0000 (19:15 +0000)]
make SectionKindForGlobal target independent, and therefore non-virtual.
It's classifications now include elf-specific discriminators.  Targets
that don't have these features (like darwin and pecoff) simply treat
data.rel like data, etc.

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

15 years agoAdd a workaround for Darwin assembler bug where it's not setting the thumb bit in...
Evan Cheng [Fri, 24 Jul 2009 18:54:23 +0000 (18:54 +0000)]
Add a workaround for Darwin assembler bug where it's not setting the thumb bit in Thumb2 jumptable entries. We now pass Olden.

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

15 years agowe already know the sectionkind when invoking SelectSectionForGlobal,
Chris Lattner [Fri, 24 Jul 2009 18:42:53 +0000 (18:42 +0000)]
we already know the sectionkind when invoking SelectSectionForGlobal,
pass it in instead of recomputing it.

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

15 years agomake SectionForGlobal non-virtual, add a hook for pic16 to do its "address=" hack.
Chris Lattner [Fri, 24 Jul 2009 18:34:27 +0000 (18:34 +0000)]
make SectionForGlobal non-virtual, add a hook for pic16 to do its "address=" hack.

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

15 years agoFix this condition I accidentally inverted.
Dan Gohman [Fri, 24 Jul 2009 18:31:07 +0000 (18:31 +0000)]
Fix this condition I accidentally inverted.

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

15 years agoAdd support for promoting SETCC operations.
Jakob Stoklund Olesen [Fri, 24 Jul 2009 18:22:59 +0000 (18:22 +0000)]
Add support for promoting SETCC operations.

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

15 years agoMake sure thumb2 jumptable entries are aligned.
Evan Cheng [Fri, 24 Jul 2009 18:20:44 +0000 (18:20 +0000)]
Make sure thumb2 jumptable entries are aligned.

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

15 years agoClean up.
Evan Cheng [Fri, 24 Jul 2009 18:20:16 +0000 (18:20 +0000)]
Clean up.

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

15 years agoReplace use of std::set with SmallPtrSet.
Evan Cheng [Fri, 24 Jul 2009 18:19:46 +0000 (18:19 +0000)]
Replace use of std::set with SmallPtrSet.

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

15 years agoConvert several more passes to use getAnalysisIfAvailable<TargetData>()
Dan Gohman [Fri, 24 Jul 2009 18:13:53 +0000 (18:13 +0000)]
Convert several more passes to use getAnalysisIfAvailable<TargetData>()
instead of getAnalysis<TargetData>().

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

15 years agoAdd specific classes for Add, Sub, and Mul, for convenience.
Dan Gohman [Fri, 24 Jul 2009 18:12:25 +0000 (18:12 +0000)]
Add specific classes for Add, Sub, and Mul, for convenience.

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

15 years agostart refactoring pic16 section selection logic.
Chris Lattner [Fri, 24 Jul 2009 17:13:27 +0000 (17:13 +0000)]
start refactoring pic16 section selection logic.

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

15 years agomove ELF-specific code into ELFTargetAsmInfo.
Chris Lattner [Fri, 24 Jul 2009 17:02:17 +0000 (17:02 +0000)]
move ELF-specific code into ELFTargetAsmInfo.

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

15 years agotidy up
Chris Lattner [Fri, 24 Jul 2009 16:53:52 +0000 (16:53 +0000)]
tidy up

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

15 years agosplit the ELF-specific section flag inference-from-name code out
Chris Lattner [Fri, 24 Jul 2009 16:50:24 +0000 (16:50 +0000)]
split the ELF-specific section flag inference-from-name code out
into its own helper function.

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

15 years agomake SectionFlagsForGlobal a private static function instead of a public
Chris Lattner [Fri, 24 Jul 2009 16:46:50 +0000 (16:46 +0000)]
make SectionFlagsForGlobal a private static function instead of a public
virtual one.

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

15 years agomove a method up in the file, GV is always non-null, so remove a check.
Chris Lattner [Fri, 24 Jul 2009 16:44:01 +0000 (16:44 +0000)]
move a method up in the file, GV is always non-null, so remove a check.

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

15 years agoThere is no need to pass the name into lib/Target/TargetAsmInfo.cpp
Chris Lattner [Fri, 24 Jul 2009 16:40:45 +0000 (16:40 +0000)]
There is no need to pass the name into  lib/Target/TargetAsmInfo.cpp
when we have a global with no section explicitly specified.

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

15 years agoremove a use of SectionFlagsForGlobal.
Chris Lattner [Fri, 24 Jul 2009 16:40:09 +0000 (16:40 +0000)]
remove a use of SectionFlagsForGlobal.

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

15 years agoAnother getName -> getNameStr
Daniel Dunbar [Fri, 24 Jul 2009 12:21:08 +0000 (12:21 +0000)]
Another getName -> getNameStr

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

15 years agoMore move to raw_ostream.
Daniel Dunbar [Fri, 24 Jul 2009 10:47:20 +0000 (10:47 +0000)]
More move to raw_ostream.

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

15 years agoMove more to raw_ostream, provide support for writing MachineBasicBlock,
Daniel Dunbar [Fri, 24 Jul 2009 10:36:58 +0000 (10:36 +0000)]
Move more to raw_ostream, provide support for writing MachineBasicBlock,
LiveInterval, etc to raw_ostream.

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

15 years agoMove more to raw_ostream.
Daniel Dunbar [Fri, 24 Jul 2009 10:05:20 +0000 (10:05 +0000)]
Move more to raw_ostream.

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

15 years agoMove to raw_ostream.
Daniel Dunbar [Fri, 24 Jul 2009 09:53:24 +0000 (09:53 +0000)]
Move to raw_ostream.

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

15 years agoSwitch to getNameStr().
Daniel Dunbar [Fri, 24 Jul 2009 08:24:36 +0000 (08:24 +0000)]
Switch to getNameStr().

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

15 years agoAllow llvm_report_error to accept a Twine.
Daniel Dunbar [Fri, 24 Jul 2009 07:58:10 +0000 (07:58 +0000)]
Allow llvm_report_error to accept a Twine.

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

15 years agoRemove unused member functions.
Eli Friedman [Fri, 24 Jul 2009 07:43:59 +0000 (07:43 +0000)]
Remove unused member functions.

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

15 years agoFix constructor types
Daniel Dunbar [Fri, 24 Jul 2009 07:12:20 +0000 (07:12 +0000)]
Fix constructor types

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

15 years agoUpdate CMake
Daniel Dunbar [Fri, 24 Jul 2009 07:04:49 +0000 (07:04 +0000)]
Update CMake

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

15 years agoAdd Twine ADT.
Daniel Dunbar [Fri, 24 Jul 2009 07:04:27 +0000 (07:04 +0000)]
Add Twine ADT.
 - Not currently used.

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

15 years agoConvert a test to FileCheck.
Evan Cheng [Fri, 24 Jul 2009 06:01:46 +0000 (06:01 +0000)]
Convert a test to FileCheck.

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

15 years agohoist section name uniquing logic up to the top-level SectionForGlobal
Chris Lattner [Fri, 24 Jul 2009 05:10:25 +0000 (05:10 +0000)]
hoist section name uniquing logic up to the top-level SectionForGlobal
implementation, eliminating a dupe.

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

15 years agoImplement getSectionPrefixForUniqueGlobal to return null, indicating that
Chris Lattner [Fri, 24 Jul 2009 05:02:38 +0000 (05:02 +0000)]
Implement getSectionPrefixForUniqueGlobal to return null, indicating that
darwin does it's own unique and special and wonderful thing.

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

15 years agoreduce indentation
Chris Lattner [Fri, 24 Jul 2009 05:01:55 +0000 (05:01 +0000)]
reduce indentation

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

15 years agosimplify code by making special case more obvious
Chris Lattner [Fri, 24 Jul 2009 04:59:43 +0000 (04:59 +0000)]
simplify code by making special case more obvious

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

15 years agothe 'isWeakForLinker' code is common between functions and globals, hoist it
Chris Lattner [Fri, 24 Jul 2009 04:52:38 +0000 (04:52 +0000)]
the 'isWeakForLinker' code is common between functions and globals, hoist it
and simplify some other code.

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

15 years agoReplace UniqueSectionForGlobal with getSectionPrefixForUniqueGlobal.
Chris Lattner [Fri, 24 Jul 2009 04:49:34 +0000 (04:49 +0000)]
Replace UniqueSectionForGlobal with getSectionPrefixForUniqueGlobal.
The later doesn't depend on any crazy LLVM IR stuff, and this
pulls the concatenation of prefix with GV name (the root problem behind
PR4584) out one level.

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

15 years agodocument SectionFlags::Named better and make it more easily greppable by
Chris Lattner [Fri, 24 Jul 2009 04:26:19 +0000 (04:26 +0000)]
document SectionFlags::Named better and make it more easily greppable by
eliminating isNamed.

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

15 years agofix indentation.
Chris Lattner [Fri, 24 Jul 2009 04:11:40 +0000 (04:11 +0000)]
fix indentation.

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

15 years agouse section flags more correctly.
Chris Lattner [Fri, 24 Jul 2009 04:08:17 +0000 (04:08 +0000)]
use section flags more correctly.

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

15 years agoSwitch to raw_ostream.
Daniel Dunbar [Fri, 24 Jul 2009 04:01:01 +0000 (04:01 +0000)]
Switch to raw_ostream.

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

15 years agofix a mysterious and scary failure on test/CodeGen/X86/cstring.ll
Chris Lattner [Fri, 24 Jul 2009 03:55:48 +0000 (03:55 +0000)]
fix a mysterious and scary failure on test/CodeGen/X86/cstring.ll

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

15 years agoreduce api exposure: clients shouldn't call SectionKindForGlobal directly.
Chris Lattner [Fri, 24 Jul 2009 03:49:17 +0000 (03:49 +0000)]
reduce api exposure: clients shouldn't call SectionKindForGlobal directly.

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

15 years agomake Constant::getRelocationInfo return an enum, as suggested by Duncan.
Chris Lattner [Fri, 24 Jul 2009 03:27:21 +0000 (03:27 +0000)]
make Constant::getRelocationInfo return an enum, as suggested by Duncan.

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

15 years agoremove more bits of small section support.
Chris Lattner [Fri, 24 Jul 2009 03:16:53 +0000 (03:16 +0000)]
remove more bits of small section support.

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

15 years agoremove more remnants of small section support.
Chris Lattner [Fri, 24 Jul 2009 03:14:35 +0000 (03:14 +0000)]
remove more remnants of small section support.

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

15 years agoRemove SectionKind::Small*. This was only used on mips, and is apparently
Chris Lattner [Fri, 24 Jul 2009 03:11:51 +0000 (03:11 +0000)]
Remove SectionKind::Small*.  This was only used on mips, and is apparently
a sad mistake that is regretted. :)

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

15 years agoThumb2 should use the register scavenger.
Evan Cheng [Fri, 24 Jul 2009 01:05:51 +0000 (01:05 +0000)]
Thumb2 should use the register scavenger.

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

15 years agoFix whitespace.
Dan Gohman [Fri, 24 Jul 2009 01:03:59 +0000 (01:03 +0000)]
Fix whitespace.

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

15 years agoGive SCEVAddRecExpr no-signed-overflow and no-unsigned-overflow flags.
Dan Gohman [Fri, 24 Jul 2009 01:01:06 +0000 (01:01 +0000)]
Give SCEVAddRecExpr no-signed-overflow and no-unsigned-overflow flags.

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

15 years agoGive the SCEV class a SubclassData field.
Dan Gohman [Fri, 24 Jul 2009 00:59:53 +0000 (00:59 +0000)]
Give the SCEV class a SubclassData field.

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

15 years agoFix whitespace.
Dan Gohman [Fri, 24 Jul 2009 00:55:33 +0000 (00:55 +0000)]
Fix whitespace.

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

15 years agoFLDD, FLDS, FCPYD, FCPYS, FSTD, FSTS, VMOVD, VMOVQ maps to the same instructions...
Evan Cheng [Fri, 24 Jul 2009 00:53:56 +0000 (00:53 +0000)]
FLDD, FLDS, FCPYD, FCPYS, FSTD, FSTS, VMOVD, VMOVQ maps to the same instructions on all sub-targets.

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

15 years agoAdd tests for handling of globals and tls on the XCore. These currently fail
Richard Osborne [Fri, 24 Jul 2009 00:38:20 +0000 (00:38 +0000)]
Add tests for handling of globals and tls on the XCore. These currently fail
but pass when run against r76652.

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

15 years agoPrivatize the ConstantVector tables.
Owen Anderson [Fri, 24 Jul 2009 00:36:24 +0000 (00:36 +0000)]
Privatize the ConstantVector tables.

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

15 years agoUpdate insertps handling based on feedback. Move to a v4f32 style
Eric Christopher [Fri, 24 Jul 2009 00:33:09 +0000 (00:33 +0000)]
Update insertps handling based on feedback.  Move to a v4f32 style
to support vector arguments and scalar arguments correctly. Update
lowering and fix comment to refer to pinsr* instead of insertps.

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

15 years agoRemove the IA-64 backend.
Dan Gohman [Fri, 24 Jul 2009 00:30:09 +0000 (00:30 +0000)]
Remove the IA-64 backend.

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

15 years agoCorrectly handle the Thumb-2 imm8 addrmode. Specialize frame index elimination more...
David Goodwin [Fri, 24 Jul 2009 00:16:18 +0000 (00:16 +0000)]
Correctly handle the Thumb-2 imm8 addrmode. Specialize frame index elimination more exactly for Thumb-2 to get better code gen.

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

15 years agoAdded a 2+-byte NOP instruction to the Intel tables,
Sean Callanan [Thu, 23 Jul 2009 23:39:34 +0000 (23:39 +0000)]
Added a 2+-byte NOP instruction to the Intel tables,
for the assembler/disassembler to use.

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

15 years agoPrivatize the ConstantStruct table.
Owen Anderson [Thu, 23 Jul 2009 23:25:33 +0000 (23:25 +0000)]
Privatize the ConstantStruct table.

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

15 years agoWrite space padding as one string to speed up comment printing.
David Greene [Thu, 23 Jul 2009 23:21:10 +0000 (23:21 +0000)]
Write space padding as one string to speed up comment printing.

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

15 years agoThumb2 does not allow the use of "pc" register as part of the load / store address.
Evan Cheng [Thu, 23 Jul 2009 23:09:51 +0000 (23:09 +0000)]
Thumb2 does not allow the use of "pc" register as part of the load / store address.

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

15 years agoFixing unittests on 32-bit Darwin, using 0x...ULL instead of 0x...U .
Reid Kleckner [Thu, 23 Jul 2009 22:27:18 +0000 (22:27 +0000)]
Fixing unittests on 32-bit Darwin, using 0x...ULL instead of 0x...U .

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

15 years agoRe-committing r76828 with the JIT memory manager changes now that the build
Reid Kleckner [Thu, 23 Jul 2009 21:46:56 +0000 (21:46 +0000)]
Re-committing r76828 with the JIT memory manager changes now that the build
bots like the BumpPtrAllocator changes.

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

15 years ago"fix" PR4612, which is a crash on:
Chris Lattner [Thu, 23 Jul 2009 21:26:18 +0000 (21:26 +0000)]
"fix" PR4612, which is a crash on:
%0 = malloc [3758096384 x i32]

The "malloc" instruction doesn't support 64-bits correctly (see PR715),
and should be removed.  Victor is actively working on fixing this, in
the meantime just don't crash.

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

15 years agoFix PR4614: the Intel C compiler defines _GNUC__
Duncan Sands [Thu, 23 Jul 2009 19:08:27 +0000 (19:08 +0000)]
Fix PR4614: the Intel C compiler defines _GNUC__
but does not provide __builtin_bswap32/64.

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