oota-llvm.git
17 years agoRegenerate
Reid Spencer [Mon, 15 Jan 2007 00:26:18 +0000 (00:26 +0000)]
Regenerate

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

17 years agoReorganize things a bit in preparation for rewrite. Although this looks
Reid Spencer [Mon, 15 Jan 2007 00:25:53 +0000 (00:25 +0000)]
Reorganize things a bit in preparation for rewrite. Although this looks
like a lot, its really only two changes:

1. Move stuff that should be private to .y out of the .h file.
2. Make all semantic values pointers.

This cleans up the silly destroy methods and changes them to delete. It
also moves the TypeInfo and ValueInfo classes into the .y where we can
modify them more readily because they have no clients any more.

This shouldn't result in any functional changes in llvm-upgrade.

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

17 years agoFix Analysis/Dominators/2006-10-02-BreakCritEdges.ll
Chris Lattner [Mon, 15 Jan 2007 00:15:09 +0000 (00:15 +0000)]
Fix Analysis/Dominators/2006-10-02-BreakCritEdges.ll

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

17 years agoPrimitive types don't include integers any more, adjust.
Reid Spencer [Sun, 14 Jan 2007 21:46:42 +0000 (21:46 +0000)]
Primitive types don't include integers any more, adjust.

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

17 years agoinstcombine has always been miscompiling fcmp x, x, disregarding possible
Chris Lattner [Sun, 14 Jan 2007 19:42:17 +0000 (19:42 +0000)]
instcombine has always been miscompiling fcmp x, x, disregarding possible
NANs.  This fixes PR1111 and Transforms/InstCombine/2007-01-14-FcmpSelf.ll

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

17 years agoadd accessors
Chris Lattner [Sun, 14 Jan 2007 19:41:24 +0000 (19:41 +0000)]
add accessors

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

17 years agonew testcase
Chris Lattner [Sun, 14 Jan 2007 19:40:48 +0000 (19:40 +0000)]
new testcase

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

17 years agoverify that hidden visibility support never goes away
Chris Lattner [Sun, 14 Jan 2007 18:57:37 +0000 (18:57 +0000)]
verify that hidden visibility support never goes away

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

17 years agoFix PR1110 and Analysis/Dominators/2007-01-14-BreakCritEdges.ll by being
Chris Lattner [Sun, 14 Jan 2007 18:33:35 +0000 (18:33 +0000)]
Fix PR1110 and Analysis/Dominators/2007-01-14-BreakCritEdges.ll by being
more careful about unreachable code when updating dominator info.

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

17 years agotestcase for pr1110
Chris Lattner [Sun, 14 Jan 2007 18:33:11 +0000 (18:33 +0000)]
testcase for pr1110

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

17 years agoNo hidden visiblity on Mingw32/Cygwin
Anton Korobeynikov [Sun, 14 Jan 2007 11:49:39 +0000 (11:49 +0000)]
No hidden visiblity on Mingw32/Cygwin

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

17 years agoclarify linkonce/weak linkage
Chris Lattner [Sun, 14 Jan 2007 06:51:48 +0000 (06:51 +0000)]
clarify linkonce/weak linkage

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

17 years agoadd support for hidden visibility to darwin/ppc and linux/ppc targets
Chris Lattner [Sun, 14 Jan 2007 06:37:54 +0000 (06:37 +0000)]
add support for hidden visibility to darwin/ppc and linux/ppc targets

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

17 years agoFix an incorrect conversion of int -> i32
Reid Spencer [Sun, 14 Jan 2007 06:29:54 +0000 (06:29 +0000)]
Fix an incorrect conversion of int -> i32

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

17 years agoadd support for hidden visibility to darwin/x86
Chris Lattner [Sun, 14 Jan 2007 06:29:53 +0000 (06:29 +0000)]
add support for hidden visibility to darwin/x86

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

17 years agoadd a new HiddenDirective member for handling visibility.
Chris Lattner [Sun, 14 Jan 2007 06:27:21 +0000 (06:27 +0000)]
add a new HiddenDirective member for handling visibility.

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

17 years agoadd a missing else. This caused globals to be printed as:
Chris Lattner [Sun, 14 Jan 2007 06:08:14 +0000 (06:08 +0000)]
add a missing else.  This caused globals to be printed as:
       movq ___dso_handle@GOTPCREL(%rip)(%rip), %rsi

instead of:
        movq ___dso_handle@GOTPCREL(%rip), %rsi

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

17 years agofit to 80 cols.
Chris Lattner [Sun, 14 Jan 2007 05:57:53 +0000 (05:57 +0000)]
fit to 80 cols.
Remove now-extraneous checks for ptr->ptr bitcasts.

Fix PR1109 and Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll.  We
need to consider arbitrary sized objects when checking for nested GEP offsets.

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

17 years agotestcase for pr1109
Chris Lattner [Sun, 14 Jan 2007 05:56:45 +0000 (05:56 +0000)]
testcase for pr1109

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

17 years agoFix PR1101 and Analysis/ScalarEvolution/trip-count.ll
Chris Lattner [Sun, 14 Jan 2007 01:24:47 +0000 (01:24 +0000)]
Fix PR1101 and Analysis/ScalarEvolution/trip-count.ll

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

17 years agonew testcase for pr1101
Chris Lattner [Sun, 14 Jan 2007 01:23:43 +0000 (01:23 +0000)]
new testcase for pr1101

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

17 years agodarwin doesn't use .hidden. Disable this until we fix it right.
Chris Lattner [Sun, 14 Jan 2007 00:50:56 +0000 (00:50 +0000)]
darwin doesn't use .hidden.  Disable this until we fix it right.

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

17 years agoadd a global variable example
Chris Lattner [Sun, 14 Jan 2007 00:27:09 +0000 (00:27 +0000)]
add a global variable example

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

17 years agoFix PR1103 and Regression/CodeGen/X86/2007-01-13-StackPtrIndex.ll
Chris Lattner [Sun, 14 Jan 2007 00:13:07 +0000 (00:13 +0000)]
Fix PR1103 and Regression/CodeGen/X86/2007-01-13-StackPtrIndex.ll

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

17 years agonew testcase for pr1103
Chris Lattner [Sun, 14 Jan 2007 00:12:50 +0000 (00:12 +0000)]
new testcase for pr1103

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

17 years agoremove dead code, frameindices must be resolve before the asmprinter runs.
Chris Lattner [Sat, 13 Jan 2007 23:59:03 +0000 (23:59 +0000)]
remove dead code, frameindices must be resolve before the asmprinter runs.

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

17 years agotestcase reduced from pr1107
Chris Lattner [Sat, 13 Jan 2007 23:11:45 +0000 (23:11 +0000)]
testcase reduced from pr1107

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

17 years agoFix Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll, which is part
Chris Lattner [Sat, 13 Jan 2007 23:11:38 +0000 (23:11 +0000)]
Fix Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll, which is part
of PR1107

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

17 years agoFix indentation to prior level for easier diffs.
Reid Spencer [Sat, 13 Jan 2007 05:10:53 +0000 (05:10 +0000)]
Fix indentation to prior level for easier diffs.

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

17 years agoFor PR1043:
Reid Spencer [Sat, 13 Jan 2007 05:06:52 +0000 (05:06 +0000)]
For PR1043:
Bye, Bye Booly. Remove the use of the bool type from non-upgraded test
cases and from grep expressions. The parser doesn't accept it and the
asm writer doesn't produce it any more.

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

17 years agoRegenerate.
Reid Spencer [Sat, 13 Jan 2007 05:00:46 +0000 (05:00 +0000)]
Regenerate.

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

17 years agoBye bye bool. AsmWriter doesn't generate it any more so AsmParser shouldn't
Reid Spencer [Sat, 13 Jan 2007 05:00:20 +0000 (05:00 +0000)]
Bye bye bool. AsmWriter doesn't generate it any more so AsmParser shouldn't
read it any more. This is consistent with the new IR as well.

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

17 years agoRegenerate.
Reid Spencer [Sat, 13 Jan 2007 04:40:16 +0000 (04:40 +0000)]
Regenerate.

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

17 years agoCan't generate "bool" any more. Change to i1
Reid Spencer [Sat, 13 Jan 2007 04:39:47 +0000 (04:39 +0000)]
Can't generate "bool" any more. Change to i1

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

17 years agoCan't grep for bool any more.
Reid Spencer [Sat, 13 Jan 2007 04:36:22 +0000 (04:36 +0000)]
Can't grep for bool any more.

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

17 years ago"Default context" blocks can occur after a non-default one. This meant
Nick Lewycky [Sat, 13 Jan 2007 02:05:28 +0000 (02:05 +0000)]
"Default context" blocks can occur after a non-default one. This meant
that properties were being applied where they didn't belong. Fixes crash
in new MiBench testcase.

Also mark debugging code as such in #ifdef.

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

17 years agoFix a FIXME. 1 bit integer types are now printed as i1 not bool.
Reid Spencer [Sat, 13 Jan 2007 01:09:33 +0000 (01:09 +0000)]
Fix a FIXME. 1 bit integer types are now printed as i1 not bool.

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

17 years agoFix a minor bug handling constant exprs, introduced by a recent patch.
Chris Lattner [Sat, 13 Jan 2007 00:42:58 +0000 (00:42 +0000)]
Fix a minor bug handling constant exprs, introduced by a recent patch.

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

17 years agoRemove this obsolete test. The CBE will never be able to handle zero argument
Chris Lattner [Sat, 13 Jan 2007 00:40:40 +0000 (00:40 +0000)]
Remove this obsolete test.  The CBE will never be able to handle zero argument
vararg functions.

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

17 years agoWhoops. Give this test some input. Doubly important since its XFAIL.
Reid Spencer [Sat, 13 Jan 2007 00:28:36 +0000 (00:28 +0000)]
Whoops. Give this test some input. Doubly important since its XFAIL.

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

17 years agoRegenerate.
Reid Spencer [Sat, 13 Jan 2007 00:23:06 +0000 (00:23 +0000)]
Regenerate.

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

17 years agoDon't attempt to upgrade argument to va.start and va.end if there are none.
Reid Spencer [Sat, 13 Jan 2007 00:22:40 +0000 (00:22 +0000)]
Don't attempt to upgrade argument to va.start and va.end if there are none.

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

17 years agoThis is not an upgrade candidate any more.
Reid Spencer [Sat, 13 Jan 2007 00:19:13 +0000 (00:19 +0000)]
This is not an upgrade candidate any more.

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

17 years agoRegenerate.
Reid Spencer [Sat, 13 Jan 2007 00:13:49 +0000 (00:13 +0000)]
Regenerate.

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

17 years agoMake sure the IntegerValType has enough space for 2^23 bits.
Reid Spencer [Sat, 13 Jan 2007 00:12:29 +0000 (00:12 +0000)]
Make sure the IntegerValType has enough space for 2^23 bits.

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

17 years agoMake sure that GEP indices are only 32 or 64 bits. We're not ready for
Reid Spencer [Sat, 13 Jan 2007 00:10:02 +0000 (00:10 +0000)]
Make sure that GEP indices are only 32 or 64 bits. We're not ready for
indices with other bit sizes yet.

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

17 years agoGet rid of some useless distinction between bool and integer.
Reid Spencer [Sat, 13 Jan 2007 00:09:12 +0000 (00:09 +0000)]
Get rid of some useless distinction between bool and integer.

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

17 years agoRegenerate.
Reid Spencer [Sat, 13 Jan 2007 00:03:30 +0000 (00:03 +0000)]
Regenerate.

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

17 years agofix a bug in a recent patch
Chris Lattner [Sat, 13 Jan 2007 00:02:49 +0000 (00:02 +0000)]
fix a bug in a recent patch

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

17 years agoFor PR1093:
Reid Spencer [Sat, 13 Jan 2007 00:02:00 +0000 (00:02 +0000)]
For PR1093:
Implement upgrading of the varargs intrinsics. These must now have i8*
arguments. This patch bitcasts arguments to i8* and fixes the prototypes.

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

17 years agoTest case for PR1093 for llvm.va_* intrinsics upgrade.
Reid Spencer [Sat, 13 Jan 2007 00:00:43 +0000 (00:00 +0000)]
Test case for PR1093 for llvm.va_* intrinsics upgrade.

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

17 years agovirtual not needed.
Jim Laskey [Fri, 12 Jan 2007 23:39:50 +0000 (23:39 +0000)]
virtual not needed.

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

17 years agoRemove this file. It was inadvertently added because I could not find
Reid Spencer [Fri, 12 Jan 2007 23:32:11 +0000 (23:32 +0000)]
Remove this file. It was inadvertently added because I could not find
TargetLowering.cpp in CodeGen/SelectionDAG (location makes no sense to me)

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

17 years agoCompensate for loss of DerivedTypes.h in TargetLowering.h
Reid Spencer [Fri, 12 Jan 2007 23:31:12 +0000 (23:31 +0000)]
Compensate for loss of DerivedTypes.h in TargetLowering.h

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

17 years agoMove a function out of line.
Reid Spencer [Fri, 12 Jan 2007 23:30:31 +0000 (23:30 +0000)]
Move a function out of line.

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

17 years agoremove over-general code.
Chris Lattner [Fri, 12 Jan 2007 23:28:32 +0000 (23:28 +0000)]
remove over-general code.

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

17 years agoremove unneeded special case for bool
Chris Lattner [Fri, 12 Jan 2007 23:26:17 +0000 (23:26 +0000)]
remove unneeded special case for bool

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

17 years agoEliminate a log(n) lookup
Chris Lattner [Fri, 12 Jan 2007 23:23:08 +0000 (23:23 +0000)]
Eliminate a log(n) lookup

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

17 years agoAdjust #includes to compensate for lost of DerivedTypes.h in
Reid Spencer [Fri, 12 Jan 2007 23:22:14 +0000 (23:22 +0000)]
Adjust #includes to compensate for lost of DerivedTypes.h in
TargetLowering.h

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

17 years agoDon't #include DerivedTypes.h in this header. Make adjustments to
Reid Spencer [Fri, 12 Jan 2007 23:21:42 +0000 (23:21 +0000)]
Don't #include DerivedTypes.h in this header. Make adjustments to
compensate. Move a function out of line to TargetLowering.cpp

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

17 years agoAdd a new home for TargetLowering member functions.
Reid Spencer [Fri, 12 Jan 2007 23:18:18 +0000 (23:18 +0000)]
Add a new home for TargetLowering member functions.

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

17 years agoremove obsolete fixme
Chris Lattner [Fri, 12 Jan 2007 22:52:50 +0000 (22:52 +0000)]
remove obsolete fixme

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

17 years agosimplify some code
Chris Lattner [Fri, 12 Jan 2007 22:51:20 +0000 (22:51 +0000)]
simplify some code

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

17 years agoMinor fix.
Evan Cheng [Fri, 12 Jan 2007 22:51:10 +0000 (22:51 +0000)]
Minor fix.

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

17 years ago- Move RTLIB::Libcall enum to a separate file.
Evan Cheng [Fri, 12 Jan 2007 22:49:32 +0000 (22:49 +0000)]
- Move RTLIB::Libcall enum to a separate file.
- Code clean up.

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

17 years agoRemove over-general comparisons
Chris Lattner [Fri, 12 Jan 2007 22:49:11 +0000 (22:49 +0000)]
Remove over-general comparisons

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

17 years agoAllow isAllOnesValue testing on packed constants
Jim Laskey [Fri, 12 Jan 2007 22:39:14 +0000 (22:39 +0000)]
Allow isAllOnesValue testing on packed constants

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

17 years agoSilence a bogus compiler warning.
Evan Cheng [Fri, 12 Jan 2007 22:30:07 +0000 (22:30 +0000)]
Silence a bogus compiler warning.

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

17 years agoinline isIntegral to make this method look like classof for all other
Chris Lattner [Fri, 12 Jan 2007 22:11:53 +0000 (22:11 +0000)]
inline isIntegral to make this method look like classof for all other
derived types

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

17 years agoupdate this to work with recent asmprinter change
Chris Lattner [Fri, 12 Jan 2007 21:16:56 +0000 (21:16 +0000)]
update this to work with recent asmprinter change

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

17 years agoDon't add or sub zero to sp.
Lauro Ramos Venancio [Fri, 12 Jan 2007 20:52:27 +0000 (20:52 +0000)]
Don't add or sub zero to sp.

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

17 years agoBuild constants using instructions mov/orr or mvn/eor.
Lauro Ramos Venancio [Fri, 12 Jan 2007 20:35:49 +0000 (20:35 +0000)]
Build constants using instructions mov/orr or mvn/eor.

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

17 years agoRegenerate.
Reid Spencer [Fri, 12 Jan 2007 20:10:51 +0000 (20:10 +0000)]
Regenerate.

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

17 years agoRemove support for upgrading NOT. The llvm-upgrade lexer didn't recognize
Reid Spencer [Fri, 12 Jan 2007 20:09:48 +0000 (20:09 +0000)]
Remove support for upgrading NOT. The llvm-upgrade lexer didn't recognize
it either. NOT is just plain illegal now.

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

17 years agos/addPassToManager/add/g
Devang Patel [Fri, 12 Jan 2007 20:07:16 +0000 (20:07 +0000)]
s/addPassToManager/add/g

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

17 years agoRegenerate
Anton Korobeynikov [Fri, 12 Jan 2007 19:22:51 +0000 (19:22 +0000)]
Regenerate

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

17 years ago* PIC codegen for X86/Linux has been implemented
Anton Korobeynikov [Fri, 12 Jan 2007 19:20:47 +0000 (19:20 +0000)]
* PIC codegen for X86/Linux has been implemented
* PIC-aware internal structures in X86 Codegen have been refactored
* Visibility (default/weak) has been added
* Docs fixes (external weak linkage, visibility, formatting)

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

17 years agoMove PMTopLevelManager, PMDataManager and FPPassManger classes into
Devang Patel [Fri, 12 Jan 2007 18:52:44 +0000 (18:52 +0000)]
Move PMTopLevelManager, PMDataManager and FPPassManger classes into
new PassManagers.h header.

This opens door for implementing CGPassManager in IPA library.

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

17 years agoRemove a bunch of duplicated code. Among other things, this fixes
Chris Lattner [Fri, 12 Jan 2007 18:42:52 +0000 (18:42 +0000)]
Remove a bunch of duplicated code.  Among other things, this fixes
constant folding of signed comparisons of bool.

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

17 years agounbreak i1 constants with the cpp writer, eliminate special case.
Chris Lattner [Fri, 12 Jan 2007 18:37:29 +0000 (18:37 +0000)]
unbreak i1 constants with the cpp writer, eliminate special case.

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

17 years agoeliminate redundant check
Chris Lattner [Fri, 12 Jan 2007 18:35:11 +0000 (18:35 +0000)]
eliminate redundant check

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

17 years agoregenerate
Chris Lattner [Fri, 12 Jan 2007 18:33:30 +0000 (18:33 +0000)]
regenerate

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

17 years agoThis production is dead, the lexer can never return 'NOT'
Chris Lattner [Fri, 12 Jan 2007 18:32:39 +0000 (18:32 +0000)]
This production is dead, the lexer can never return 'NOT'

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

17 years agoBranch conditions must be i1
Chris Lattner [Fri, 12 Jan 2007 18:30:11 +0000 (18:30 +0000)]
Branch conditions must be i1

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

17 years agodon't discriminate against bool
Chris Lattner [Fri, 12 Jan 2007 18:28:58 +0000 (18:28 +0000)]
don't discriminate against bool

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

17 years agoremove unneeded special cases
Chris Lattner [Fri, 12 Jan 2007 18:23:49 +0000 (18:23 +0000)]
remove unneeded special cases

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

17 years ago'==' is not a legal test operator on BSD. Use '='.
Jeff Cohen [Fri, 12 Jan 2007 18:22:38 +0000 (18:22 +0000)]
'==' is not a legal test operator on BSD.  Use '='.

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

17 years agoGEP operands can't be bools
Chris Lattner [Fri, 12 Jan 2007 18:20:48 +0000 (18:20 +0000)]
GEP operands can't be bools

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

17 years agoSimplify code
Chris Lattner [Fri, 12 Jan 2007 18:15:09 +0000 (18:15 +0000)]
Simplify code

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

17 years agoMake a couple organizational changes. Type no longer derives from Value
Reid Spencer [Fri, 12 Jan 2007 17:26:25 +0000 (17:26 +0000)]
Make a couple organizational changes. Type no longer derives from Value
(hasn't for ages) so move it up one level in the table of contents.
Type needs to be understood before Value so move it before Value. Make
the descriptions of types stand out a little more.  Add references to the
doxygen for the Type class.

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

17 years agoRemove dead code.
Devang Patel [Fri, 12 Jan 2007 17:23:48 +0000 (17:23 +0000)]
Remove dead code.

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

17 years agoUpdate documentation for arbitrary precision integers:
Reid Spencer [Fri, 12 Jan 2007 17:11:23 +0000 (17:11 +0000)]
Update documentation for arbitrary precision integers:
1. int -> i32
2. Describe the IntegerType class.
3. Correct the description of Type and its primitive type subclasses.
4. Document OpaqueType and PackedType a little better.

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

17 years agoFix a typo.
Reid Spencer [Fri, 12 Jan 2007 15:46:11 +0000 (15:46 +0000)]
Fix a typo.

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

17 years agoRegenerate.
Reid Spencer [Fri, 12 Jan 2007 07:28:27 +0000 (07:28 +0000)]
Regenerate.

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

17 years agoInteger type names need 1 or more digits, not zero or more.
Reid Spencer [Fri, 12 Jan 2007 07:27:59 +0000 (07:27 +0000)]
Integer type names need 1 or more digits, not zero or more.

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

17 years agoAlways write 1 bit integers as i1 not "bool".
Reid Spencer [Fri, 12 Jan 2007 07:25:20 +0000 (07:25 +0000)]
Always write 1 bit integers as i1 not "bool".

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

17 years agoComment.
Evan Cheng [Fri, 12 Jan 2007 07:25:16 +0000 (07:25 +0000)]
Comment.

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

17 years agoFor PR1064:
Reid Spencer [Fri, 12 Jan 2007 07:05:14 +0000 (07:05 +0000)]
For PR1064:
Implement the arbitrary bit-width integer feature. The feature allows
integers of any bitwidth (up to 64) to be defined instead of just 1, 8,
16, 32, and 64 bit integers.

This change does several things:
1. Introduces a new Derived Type, IntegerType, to represent the number of
   bits in an integer. The Type classes SubclassData field is used to
   store the number of bits. This allows 2^23 bits in an integer type.
2. Removes the five integer Type::TypeID values for the 1, 8, 16, 32 and
   64-bit integers. These are replaced with just IntegerType which is not
   a primitive any more.
3. Adjust the rest of LLVM to account for this change.

Note that while this incremental change lays the foundation for arbitrary
bit-width integers, LLVM has not yet been converted to actually deal with
them in any significant way. Most optimization passes, for example, will
still only deal with the byte-width integer types.  Future increments
will rectify this situation.

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

17 years agoFix persistent conflict madness by removing these from cvs.
Chris Lattner [Fri, 12 Jan 2007 05:35:13 +0000 (05:35 +0000)]
Fix persistent conflict madness by removing these from cvs.

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

17 years agoImplement review feedback for the ConstantBool->ConstantInt merge. Chris
Reid Spencer [Fri, 12 Jan 2007 04:24:46 +0000 (04:24 +0000)]
Implement review feedback for the ConstantBool->ConstantInt merge. Chris
recommended that getBoolValue be replaced with getZExtValue and that
get(bool) be replaced by get(const Type*, uint64_t). This implements
those changes.

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