oota-llvm.git
17 years agoshave another 150K off of kc++, by using a 7-bit encoding for BB names
Chris Lattner [Fri, 4 May 2007 20:58:35 +0000 (20:58 +0000)]
shave another 150K off of kc++, by using a 7-bit encoding for BB names
where we can.  This shrinks kc++'s down to 3368K, with a VST record of:

  Block ID #14 (VALUE_SYMTAB):
      Num Instances: 2345
         Total Size: 1.29508e+07b/1.61885e+06B/404713W
       Average Size: 5522.73b/690.342B/172.585W
          % of file: 48.0645
  Tot/Avg SubBlocks: 0/0
    Tot/Avg Abbrevs: 7035/3
    Tot/Avg Records: 120924/51.5667
      % Abbrev Recs: 100

Isn't it nice to be able to optimizer bc size without touching the reader? :)

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

17 years agowhere possible, encode symtab names with 7 bits per char instead of 8. This
Chris Lattner [Fri, 4 May 2007 20:52:02 +0000 (20:52 +0000)]
where possible, encode symtab names with 7 bits per char instead of 8.  This
shaves 110K off kc++ to 3514K.  Before:

  Block ID #14 (VALUE_SYMTAB):
      Num Instances: 2345
         Total Size: 1.50425e+07b/1.88031e+06B/470077W
       Average Size: 6414.69b/801.837B/200.459W
          % of file: 51.8057
  Tot/Avg SubBlocks: 0/0
    Tot/Avg Abbrevs: 2345/1
    Tot/Avg Records: 120924/51.5667
      % Abbrev Recs: 85.1791

after:

  Block ID #14 (VALUE_SYMTAB):
      Num Instances: 2345
         Total Size: 1.41229e+07b/1.76536e+06B/441341W
       Average Size: 6022.56b/752.82B/188.205W
          % of file: 50.2295
  Tot/Avg SubBlocks: 0/0
    Tot/Avg Abbrevs: 4690/2
    Tot/Avg Records: 120924/51.5667
      % Abbrev Recs: 85.1791

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

17 years agouse a template to eliminate manual code duplication
Chris Lattner [Fri, 4 May 2007 20:40:50 +0000 (20:40 +0000)]
use a template to eliminate manual code duplication

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

17 years agoAdd an "implies" field to features. This indicates that, if the current
Bill Wendling [Fri, 4 May 2007 20:38:40 +0000 (20:38 +0000)]
Add an "implies" field to features. This indicates that, if the current
feature is set, then the features in the implied list should be set also.
The opposite is also enforced: if a feature in the implied list isn't set,
then the feature that owns that implies list shouldn't be set either.

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

17 years agoEncode all value symtab strings as arrays of 8-bit fixed width integers,
Chris Lattner [Fri, 4 May 2007 20:34:50 +0000 (20:34 +0000)]
Encode all value symtab strings as arrays of 8-bit fixed width integers,
instead of the default inefficient encoding.  This shrinks kc++ from 4134K
to 3629K

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

17 years agoadd support for array abbreviations.
Chris Lattner [Fri, 4 May 2007 20:33:47 +0000 (20:33 +0000)]
add support for array abbreviations.

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

17 years agoeliminate internal length fields from record. Records already know their
Chris Lattner [Fri, 4 May 2007 19:11:41 +0000 (19:11 +0000)]
eliminate internal length fields from record.  Records already know their
total length

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

17 years agoeliminate lengths from record bodies
Chris Lattner [Fri, 4 May 2007 19:10:48 +0000 (19:10 +0000)]
eliminate lengths from record bodies

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

17 years agostub out creation of BLOCKINFO_BLOCK
Chris Lattner [Fri, 4 May 2007 18:26:27 +0000 (18:26 +0000)]
stub out creation of BLOCKINFO_BLOCK

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

17 years agominor cleanups. Add provisions for a new standard BLOCKINFO_BLOCK
Chris Lattner [Fri, 4 May 2007 18:25:49 +0000 (18:25 +0000)]
minor cleanups.  Add provisions for a new standard BLOCKINFO_BLOCK
block type.

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

17 years agorefcount BitCodeAbbrev objects
Chris Lattner [Fri, 4 May 2007 17:35:19 +0000 (17:35 +0000)]
refcount BitCodeAbbrev objects

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

17 years agoTest that the eh lowering code can handle constant folded bitcasts.
Duncan Sands [Fri, 4 May 2007 17:14:42 +0000 (17:14 +0000)]
Test that the eh lowering code can handle constant folded bitcasts.

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

17 years agoA bitcast of a global variable may have been constant folded to a GEP -
Duncan Sands [Fri, 4 May 2007 17:12:26 +0000 (17:12 +0000)]
A bitcast of a global variable may have been constant folded to a GEP -
handle this case too.

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

17 years agoUse IntrinsicInst to test for prefetch instructions, which is ever so
Dan Gohman [Fri, 4 May 2007 14:59:09 +0000 (14:59 +0000)]
Use IntrinsicInst to test for prefetch instructions, which is ever so
slightly nicer than using CallInst with an extra check; thanks Chris.

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

17 years agooptimize constant layout. This fixes encoding of 181.mcf (by ensuring
Chris Lattner [Fri, 4 May 2007 05:21:47 +0000 (05:21 +0000)]
optimize constant layout.  This fixes encoding of 181.mcf (by ensuring
integer structure idx's are emitted before constant expr geps) and shrinks
files slightly.  For example kc++ shrinks from 4326188 to 4240128 bytes.

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

17 years agosimple optimization for the type table
Chris Lattner [Fri, 4 May 2007 05:05:48 +0000 (05:05 +0000)]
simple optimization for the type table

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

17 years agoregenerate
Chris Lattner [Fri, 4 May 2007 04:01:37 +0000 (04:01 +0000)]
regenerate

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

17 years agofix a bug where llvm-as couldn't assemble the .ll file for 252.eon.
Chris Lattner [Fri, 4 May 2007 04:01:07 +0000 (04:01 +0000)]
fix a bug where llvm-as couldn't assemble the .ll file for 252.eon.

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

17 years agostoreinst ctor takes isvolatile before alignment. With this, 176.gcc roundtrips
Chris Lattner [Fri, 4 May 2007 03:57:30 +0000 (03:57 +0000)]
storeinst ctor takes isvolatile before alignment.  With this, 176.gcc roundtrips

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

17 years agofix encoding of invoke instructions. kc++ now round trips
Chris Lattner [Fri, 4 May 2007 03:52:24 +0000 (03:52 +0000)]
fix encoding of invoke instructions.  kc++ now round trips

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

17 years agofix a misplaced error
Chris Lattner [Fri, 4 May 2007 03:50:29 +0000 (03:50 +0000)]
fix a misplaced error

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

17 years agoencode and read param attrs along with function type. WE can now roundtrip Olden...
Chris Lattner [Fri, 4 May 2007 03:41:34 +0000 (03:41 +0000)]
encode and read param attrs along with function type.  WE can now roundtrip Olden/voronoi loslessly

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

17 years agoif functiontype is going to have a pointer to a paramattr object, it better
Chris Lattner [Fri, 4 May 2007 03:39:28 +0000 (03:39 +0000)]
if functiontype is going to have a pointer to a paramattr object, it better
be const.  The only way to get a pointer to these returns a const pointer.

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

17 years agoBitcast all the bits of a floating point value, not just one. The zero
Reid Spencer [Fri, 4 May 2007 03:37:38 +0000 (03:37 +0000)]
Bitcast all the bits of a floating point value, not just one. The zero
extension is needed because the constructor for the Destination value
causes the APInt to have a bit width of 1.
Patch by Guoling Han.

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

17 years agoAdd a test case for testing the LLI interpreter wrt bitcast of fp to integer.
Reid Spencer [Fri, 4 May 2007 03:35:17 +0000 (03:35 +0000)]
Add a test case for testing the LLI interpreter wrt bitcast of fp to integer.

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

17 years agoadd support for reading the param attrs block
Chris Lattner [Fri, 4 May 2007 03:30:17 +0000 (03:30 +0000)]
add support for reading the param attrs block

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

17 years agofix a bug encoding param attrs
Chris Lattner [Fri, 4 May 2007 03:14:09 +0000 (03:14 +0000)]
fix a bug encoding param attrs

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

17 years agoadd a helper
Chris Lattner [Fri, 4 May 2007 03:13:39 +0000 (03:13 +0000)]
add a helper

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

17 years agoremove dead code
Chris Lattner [Fri, 4 May 2007 03:02:54 +0000 (03:02 +0000)]
remove dead code

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

17 years agoremove unused code
Chris Lattner [Fri, 4 May 2007 03:01:46 +0000 (03:01 +0000)]
remove unused code

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

17 years agoadd support for new codes/block
Chris Lattner [Fri, 4 May 2007 03:01:41 +0000 (03:01 +0000)]
add support for new codes/block

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

17 years agoadd new codes
Chris Lattner [Fri, 4 May 2007 03:00:00 +0000 (03:00 +0000)]
add new codes

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

17 years agoadd writer support for param attrs
Chris Lattner [Fri, 4 May 2007 02:59:04 +0000 (02:59 +0000)]
add writer support for param attrs

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

17 years agoAllow this to compile with gcc 4.0.X
Reid Spencer [Fri, 4 May 2007 01:43:33 +0000 (01:43 +0000)]
Allow this to compile with gcc 4.0.X

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

17 years agonew testcase
Chris Lattner [Fri, 4 May 2007 00:51:23 +0000 (00:51 +0000)]
new testcase

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

17 years agopass by reference, not by value
Chris Lattner [Fri, 4 May 2007 00:45:24 +0000 (00:45 +0000)]
pass by reference, not by value

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

17 years agotrivial scaffolding for param attrs
Chris Lattner [Fri, 4 May 2007 00:44:52 +0000 (00:44 +0000)]
trivial scaffolding for param attrs

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

17 years agoTest load global in static mode.
Evan Cheng [Fri, 4 May 2007 00:29:34 +0000 (00:29 +0000)]
Test load global in static mode.

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

17 years agoOn Mac OS X, GV requires an extra load only when relocation-model is non-static.
Evan Cheng [Fri, 4 May 2007 00:26:58 +0000 (00:26 +0000)]
On Mac OS X, GV requires an extra load only when relocation-model is non-static.

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

17 years agoNew test case.
Evan Cheng [Thu, 3 May 2007 23:53:36 +0000 (23:53 +0000)]
New test case.

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

17 years agoDon't create indexed load / store with zero offset!
Evan Cheng [Thu, 3 May 2007 23:52:19 +0000 (23:52 +0000)]
Don't create indexed load / store with zero offset!

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

17 years agoShould never see an indexed load / store with zero offset.
Evan Cheng [Thu, 3 May 2007 23:30:36 +0000 (23:30 +0000)]
Should never see an indexed load / store with zero offset.

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

17 years agoAllow strength reduction to make use of addressing modes for the
Dan Gohman [Thu, 3 May 2007 23:20:33 +0000 (23:20 +0000)]
Allow strength reduction to make use of addressing modes for the
address operand in a prefetch intrinsic.

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

17 years agoenumerate parameter attr lists.
Chris Lattner [Thu, 3 May 2007 22:46:43 +0000 (22:46 +0000)]
enumerate parameter attr lists.

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

17 years agoEncoding calling conv info in call/invoke instrs, tree add now round trips completely
Chris Lattner [Thu, 3 May 2007 22:34:03 +0000 (22:34 +0000)]
Encoding calling conv info in call/invoke instrs, tree add now round trips completely

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

17 years agothe type field for a store is the type of the pointer, not the value.
Chris Lattner [Thu, 3 May 2007 22:21:59 +0000 (22:21 +0000)]
the type field for a store is the type of the pointer, not the value.

With this fix I can round trip treeaadd, only losing calling conv info.

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

17 years agodon't bother encoding # varargs
Chris Lattner [Thu, 3 May 2007 22:19:34 +0000 (22:19 +0000)]
don't bother encoding # varargs

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

17 years agofix encoding of BB names in the symtab
Chris Lattner [Thu, 3 May 2007 22:18:21 +0000 (22:18 +0000)]
fix encoding of BB names in the symtab

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

17 years agoadd a new code
Chris Lattner [Thu, 3 May 2007 22:16:11 +0000 (22:16 +0000)]
add a new code

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

17 years agobug fixes
Chris Lattner [Thu, 3 May 2007 22:09:51 +0000 (22:09 +0000)]
bug fixes

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

17 years agoUnbreak VC++ build.
Jeff Cohen [Thu, 3 May 2007 22:09:21 +0000 (22:09 +0000)]
Unbreak VC++ build.

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

17 years agoimplement the rest of the instructions
Chris Lattner [Thu, 3 May 2007 22:04:19 +0000 (22:04 +0000)]
implement the rest of the instructions

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

17 years agoUse iterative while loop instead of recursive function call.
Devang Patel [Thu, 3 May 2007 20:55:18 +0000 (20:55 +0000)]
Use iterative while loop instead of recursive function call.

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

17 years agoEvan's patch to avoid FPreg->intreg copy for cvt; store to mem
Dale Johannesen [Thu, 3 May 2007 20:54:42 +0000 (20:54 +0000)]
Evan's patch to avoid FPreg->intreg copy for cvt; store to mem

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

17 years agoDebug support for arm-linux.
Lauro Ramos Venancio [Thu, 3 May 2007 20:28:35 +0000 (20:28 +0000)]
Debug support for arm-linux.
Patch by Raul Herbster.

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

17 years agoadd a few more instructions, getting close
Chris Lattner [Thu, 3 May 2007 18:58:09 +0000 (18:58 +0000)]
add a few more instructions, getting close

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

17 years agoIndent the .text, .data, and .bss directives in assembly output, so that
Dan Gohman [Thu, 3 May 2007 18:46:30 +0000 (18:46 +0000)]
Indent the .text, .data, and .bss directives in assembly output, so that
they are consistent with the other directives.

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

17 years agoUse the explicit keyword for the SCEV class' constructor.
Dan Gohman [Thu, 3 May 2007 18:45:06 +0000 (18:45 +0000)]
Use the explicit keyword for the SCEV class' constructor.

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

17 years agoAdded -rsh-host and -rsh-user to support remote execution.
Evan Cheng [Thu, 3 May 2007 18:36:15 +0000 (18:36 +0000)]
Added -rsh-host and -rsh-user to support remote execution.

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

17 years agoThis is a patch to fix a compile error in STLExtras.h, and
Chris Lattner [Thu, 3 May 2007 18:32:10 +0000 (18:32 +0000)]
This is a patch to fix a compile error in STLExtras.h, and
a bug in GraphWriter.cpp.

Patch by Florian Brandner

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

17 years agonegatize -> negative
Evan Cheng [Thu, 3 May 2007 18:20:17 +0000 (18:20 +0000)]
negatize -> negative

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

17 years agosilence annoying gcc 4.3 warnings
Chris Lattner [Thu, 3 May 2007 18:15:56 +0000 (18:15 +0000)]
silence annoying gcc 4.3 warnings

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

17 years agosilence some annoying gcc 4.3 warnings
Chris Lattner [Thu, 3 May 2007 18:15:36 +0000 (18:15 +0000)]
silence some annoying gcc 4.3 warnings

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

17 years agoremove extraneous type qualifiers
Chris Lattner [Thu, 3 May 2007 18:14:56 +0000 (18:14 +0000)]
remove extraneous type qualifiers

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

17 years agoremove extraneous top-level semi's
Chris Lattner [Thu, 3 May 2007 18:13:15 +0000 (18:13 +0000)]
remove extraneous top-level semi's

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

17 years agoremove two useless functions. Just inherit Type's implementation instead.
Chris Lattner [Thu, 3 May 2007 17:10:20 +0000 (17:10 +0000)]
remove two useless functions.  Just inherit Type's implementation instead.

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

17 years agoremove useless type qualifiers
Chris Lattner [Thu, 3 May 2007 17:09:36 +0000 (17:09 +0000)]
remove useless type qualifiers

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

17 years agoavoid invalid C++ token in #error
Chris Lattner [Thu, 3 May 2007 16:57:26 +0000 (16:57 +0000)]
avoid invalid C++ token in #error

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

17 years agoAllow i/s to match (gv+c). This fixes CodeGen/PowerPC/2007-05-03-InlineAsm-S-Constra...
Chris Lattner [Thu, 3 May 2007 16:54:34 +0000 (16:54 +0000)]
Allow i/s to match (gv+c).  This fixes CodeGen/PowerPC/2007-05-03-InlineAsm-S-Constraint.ll

and PR1382

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

17 years agonew testcase
Chris Lattner [Thu, 3 May 2007 16:54:08 +0000 (16:54 +0000)]
new testcase

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

17 years agoFix two classes of bugs:
Chris Lattner [Thu, 3 May 2007 16:52:29 +0000 (16:52 +0000)]
Fix two classes of bugs:
  1. x86 backend rejected (&gv+c) for the 'i' constraint when in static mode.
  2. the matcher didn't correctly reject and accept some global addresses.
     the right predicate is GVRequiresExtraLoad, not "relomodel = pic".

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

17 years agoadd support for printing offset from global
Chris Lattner [Thu, 3 May 2007 16:42:23 +0000 (16:42 +0000)]
add support for printing offset from global

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

17 years agorevert accidental commit
Chris Lattner [Thu, 3 May 2007 16:40:25 +0000 (16:40 +0000)]
revert accidental commit

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

17 years agoadd support for printing offset of global
Chris Lattner [Thu, 3 May 2007 16:39:48 +0000 (16:39 +0000)]
add support for printing offset of global

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

17 years agoSets the section names for fixed-size constants and use the mergeable
Dan Gohman [Thu, 3 May 2007 16:38:57 +0000 (16:38 +0000)]
Sets the section names for fixed-size constants and use the mergeable
flag for ELF on x86 so that duplicate constants can be eliminated by
the linker. This matches what GCC does with its -fmerge-constants
option, which is enabled at most -O levels.

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

17 years agoMake my proxy happy.
Lauro Ramos Venancio [Thu, 3 May 2007 14:05:07 +0000 (14:05 +0000)]
Make my proxy happy.

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

17 years agorevert reid's patch to fix these failures:
Chris Lattner [Thu, 3 May 2007 02:57:13 +0000 (02:57 +0000)]
revert reid's patch to fix these failures:
test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll for PR1099 [DEJAGNU]
Applications/SPASS/SPASS [CBE]
Regression/C/2004-03-15-IndirectGoto [CBE]

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

17 years agoTypo. It's checking if V is multiple of 4, not multiple of 3. :-)
Evan Cheng [Thu, 3 May 2007 02:00:18 +0000 (02:00 +0000)]
Typo. It's checking if V is multiple of 4, not multiple of 3. :-)

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

17 years agoDrop 'const'
Devang Patel [Thu, 3 May 2007 01:11:54 +0000 (01:11 +0000)]
Drop 'const'

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

17 years agoNew test.
Devang Patel [Thu, 3 May 2007 00:42:22 +0000 (00:42 +0000)]
New test.

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

17 years agomatch a reassociated form of fnmul. This implements CodeGen/ARM/fnmul.ll
Chris Lattner [Thu, 3 May 2007 00:32:00 +0000 (00:32 +0000)]
match a reassociated form of fnmul.  This implements CodeGen/ARM/fnmul.ll

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

17 years agomatch a reassociated form of fnmul
Chris Lattner [Thu, 3 May 2007 00:31:40 +0000 (00:31 +0000)]
match a reassociated form of fnmul

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

17 years agoexpose HonorSignDependentRoundingFPMathOption to .td files
Chris Lattner [Thu, 3 May 2007 00:27:11 +0000 (00:27 +0000)]
expose HonorSignDependentRoundingFPMathOption to .td files

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

17 years agoAdd a new option.
Chris Lattner [Thu, 3 May 2007 00:16:07 +0000 (00:16 +0000)]
Add a new option.

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

17 years agoNon-algorithmic change. Moved definitions around into separate sections
Bill Wendling [Wed, 2 May 2007 23:11:52 +0000 (23:11 +0000)]
Non-algorithmic change. Moved definitions around into separate sections
for SSE1, SSE2, SSE3, and SSSE3.

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

17 years agoProperly set arguments bitwidth of EHSELECT node
Anton Korobeynikov [Wed, 2 May 2007 22:15:48 +0000 (22:15 +0000)]
Properly set arguments bitwidth of EHSELECT node

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

17 years agoUpdate.
Bill Wendling [Wed, 2 May 2007 21:42:20 +0000 (21:42 +0000)]
Update.

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

17 years agoUse 'static const char' instead of 'static const int'.
Devang Patel [Wed, 2 May 2007 21:39:20 +0000 (21:39 +0000)]
Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces
static const int, which defauts PassID based pass identification.

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

17 years agoDisable RTTI handling until we're ready.
Reid Spencer [Wed, 2 May 2007 21:31:09 +0000 (21:31 +0000)]
Disable RTTI handling until we're ready.

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

17 years agoAdd a rule to get the footprint of binaries and libraries.
Reid Spencer [Wed, 2 May 2007 21:29:39 +0000 (21:29 +0000)]
Add a rule to get the footprint of binaries and libraries.

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

17 years agoRe-install patch to enable use of PassID.
Devang Patel [Wed, 2 May 2007 20:38:25 +0000 (20:38 +0000)]
Re-install patch to enable use of PassID.
I am preparing another patch to address the failure that prompted
Chris to revert this patch earlier.

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

17 years agoFix build error.
Lauro Ramos Venancio [Wed, 2 May 2007 20:37:47 +0000 (20:37 +0000)]
Fix build error.

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

17 years agoEmit correct register move information in eh frames for X86. This allows Shootout...
Anton Korobeynikov [Wed, 2 May 2007 19:53:33 +0000 (19:53 +0000)]
Emit correct register move information in eh frames for X86. This allows Shootout-C++/except to pass on x86/linux
with non-llvm-compiled (e.g. "native") unwind runtime.

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

17 years agoEmit correct DWARF reg # for RA (return address) register
Anton Korobeynikov [Wed, 2 May 2007 08:46:03 +0000 (08:46 +0000)]
Emit correct DWARF reg # for RA (return address) register

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

17 years agoTest that TREE_CONSTANT is being set correctly.
Duncan Sands [Wed, 2 May 2007 07:43:14 +0000 (07:43 +0000)]
Test that TREE_CONSTANT is being set correctly.

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

17 years agoTest that inline assembler compiles (llvm-gcc added an extra "uses" parameter
Duncan Sands [Wed, 2 May 2007 07:41:22 +0000 (07:41 +0000)]
Test that inline assembler compiles (llvm-gcc added an extra "uses" parameter
to ASM_EXPR).

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

17 years agoupdate to reflect reality
Chris Lattner [Wed, 2 May 2007 05:47:22 +0000 (05:47 +0000)]
update to reflect reality

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

17 years agoadd reader logic for terminator instrs.
Chris Lattner [Wed, 2 May 2007 05:46:45 +0000 (05:46 +0000)]
add reader logic for terminator instrs.

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

17 years agoadd reader support for a bunch of new instructions
Chris Lattner [Wed, 2 May 2007 05:16:49 +0000 (05:16 +0000)]
add reader support for a bunch of new instructions

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

17 years agoread a few instructions, fix some bugs. This is enough to be able to round
Chris Lattner [Wed, 2 May 2007 04:27:25 +0000 (04:27 +0000)]
read a few instructions, fix some bugs.  This is enough to be able to round
trip function bodies like this:

define <2 x i64> @foo(<2 x i64> %x, <2 x i64> %y) {
        %tmp4 = bitcast <2 x i64> %y to <8 x i16>               ; <<8 x i16>> [#uses=1]
        %tmp5 = bitcast <2 x i64> %x to <8 x i16>               ; <<8 x i16>> [#uses=1]
        %tmp = add <8 x i16> %tmp5, %tmp4               ; <<8 x i16>> [#uses=1]
        %tmp6 = bitcast <8 x i16> %tmp to <2 x i64>             ; <<2 x i64>> [#uses=1]
        ret <2 x i64> %tmp6
}

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