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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Reid Spencer [Fri, 12 Jan 2007 03:36:33 +0000 (03:36 +0000)]
Update for changes in the IR. The ConstantIntegral, ConstantBool, and
ConstantInt classes were merged into just ConstantInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33107
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 12 Jan 2007 03:35:51 +0000 (03:35 +0000)]
Update for changes in the assembly syntax. bool is replaced with i1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33106
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 12 Jan 2007 02:11:51 +0000 (02:11 +0000)]
Store default libgcc routine names and allow them to be redefined by target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33105
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Fri, 12 Jan 2007 01:23:53 +0000 (01:23 +0000)]
If we know that it's a constant being casted, propagate through the cast
instruction. Doesn't work the other way though (can't recover bits that
have been truncated).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33104
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Fri, 12 Jan 2007 00:02:12 +0000 (00:02 +0000)]
Clean up logic after ConstantBool removal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33096
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 11 Jan 2007 22:15:30 +0000 (22:15 +0000)]
Start using PMStack. Now each pass is responsibe for assinging
a pass manager for itself.
There is some opportunity to remove some dead code from PassManager.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33087
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 11 Jan 2007 21:40:25 +0000 (21:40 +0000)]
Don't remove the find_rule label from FLEX output. It is needed by some
versions of FLEX even through we don't use REJECT. Thanks to Jeff Cohen
for tracking this down.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33085
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 11 Jan 2007 19:59:06 +0000 (19:59 +0000)]
Use getPassManagerType() instead of dynamic_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33078
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 11 Jan 2007 18:21:29 +0000 (18:21 +0000)]
Rename BoolTy as Int1Ty. Patch by Sheng Zhou.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33076
91177308-0d34-0410-b5e6-
96231b3b80d8
Zhou Sheng [Thu, 11 Jan 2007 14:38:17 +0000 (14:38 +0000)]
Remove unnecessary boolean type check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33075
91177308-0d34-0410-b5e6-
96231b3b80d8
Zhou Sheng [Thu, 11 Jan 2007 14:31:10 +0000 (14:31 +0000)]
Fixed a bug in ConstantInt::Inverted().
Modified comment of that method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33074
91177308-0d34-0410-b5e6-
96231b3b80d8
Zhou Sheng [Thu, 11 Jan 2007 12:24:14 +0000 (12:24 +0000)]
For PR1043:
Merge ConstantIntegral and ConstantBool into ConstantInt.
Remove ConstantIntegral and ConstantBool from LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33073
91177308-0d34-0410-b5e6-
96231b3b80d8
Zhou Sheng [Thu, 11 Jan 2007 10:33:26 +0000 (10:33 +0000)]
Fixed indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33072
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 11 Jan 2007 07:58:19 +0000 (07:58 +0000)]
Shut up a warning about signed/unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33071
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 11 Jan 2007 06:51:56 +0000 (06:51 +0000)]
Put in some needed \ at the end of lines!!!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33070
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Jan 2007 04:30:21 +0000 (04:30 +0000)]
simplify some logic further
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33069
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Jan 2007 03:54:27 +0000 (03:54 +0000)]
Recommit my previous patch with a bugfix: printInfoComment works on both
local and global values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33068
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 11 Jan 2007 02:38:21 +0000 (02:38 +0000)]
Quiet compiler warning. The only reason the function is marked virtual
is so that it can be called from inside a debugger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33067
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 11 Jan 2007 02:32:38 +0000 (02:32 +0000)]
New predicate simplifier!
Please do not enable, there is still some known miscompile problem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33066
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 11 Jan 2007 01:10:25 +0000 (01:10 +0000)]
Add PassManagerType enum.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33065
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 11 Jan 2007 00:35:10 +0000 (00:35 +0000)]
Avoid taking the address of a macro by checking to see if stdin is defined
or not. This allows DynamicLibrary.cpp to compile on Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33064
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 11 Jan 2007 00:25:45 +0000 (00:25 +0000)]
Implement better constant folding of unordered FCMP predicates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33063
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 11 Jan 2007 00:19:00 +0000 (00:19 +0000)]
Robustify assingPassManager() for Module, Function and Basic Block
Passes.
Robustify PMStack.push()
Add dump() routine to print PMStack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33062
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 10 Jan 2007 19:50:43 +0000 (19:50 +0000)]
Allow LLI, in interpreter mode, to find stdin, stdout, and stderr. This is
a bit of a hack but it lets some of the llvm-test programs run.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33058
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 10 Jan 2007 09:18:16 +0000 (09:18 +0000)]
Back out the last patch which is a nightly test killer. The assertion
in getLocalSlot fires on many, many values. It broke nearly all of
the dejagnu tests. Simple changes to the assertion did not fix the
problem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33054
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Jan 2007 07:01:46 +0000 (07:01 +0000)]
Last refactoring before PR645: split up getSlot into getLocalSlot and getGlobalSlot.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33053
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Jan 2007 06:43:26 +0000 (06:43 +0000)]
eliminate some iterator gymnastics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33052
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 10 Jan 2007 04:17:32 +0000 (04:17 +0000)]
Change the file header name as this file was renamed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33051
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 10 Jan 2007 04:16:17 +0000 (04:16 +0000)]
Rename Writer.cpp as CBackend.cpp so it doesn't conflict with Writer.cpp
in the bytecode writer library. This helps with debugging.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33050
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Jan 2007 23:29:37 +0000 (23:29 +0000)]
Fix a bug in heap-sra that caused compilation failure of office-ispell.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33043
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 9 Jan 2007 20:08:58 +0000 (20:08 +0000)]
Explain that bitcast can only cast a pointer to another pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33041
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 9 Jan 2007 17:09:09 +0000 (17:09 +0000)]
For PR1099:
Invert the "isSigned" logic in calls to printType and printPrimitiveType.
We want variables to be declared unsigned by default so that signless
operators like + and - perform the unsigned operation that LLVM expects
by default. Parameters with the sext attribute will be declared signed and
signed instructions will case operand values to signed regardless of the
type of the variable. This passes all tests and fixes PR1099.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33039
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Jan 2007 08:04:59 +0000 (08:04 +0000)]
Inline insertValue into CreateModuleSlot/CreateFunctionSlot
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33038
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Jan 2007 07:58:11 +0000 (07:58 +0000)]
Remove a bunch of complex logic that is completely dead: duplicates can
never be inserted!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33037
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Jan 2007 07:55:49 +0000 (07:55 +0000)]
Split CreateSlot into two versions, one for globals and one for function-local
values
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33036
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Jan 2007 07:46:21 +0000 (07:46 +0000)]
Remove extraneous return value from insertValue and getOrCreateSlot. Since
getOrCreateSlot no longer gets the slot, rename it to CreateSlot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33035
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 9 Jan 2007 06:38:06 +0000 (06:38 +0000)]
For PR1099:
Partial fix for this PR. Default function parameters to signed integer, just
like everything else in CBE. The bug was caused by incorrectly introducing
parameter attributes feature by choosing "signed" parameter if the
SExtAttribute was specified. Howeer, if no attribute is specified, this
causes it to become unsigned which is incorrect. Reversing the logic so
that signedness is detected by "not ZExtAttribute" set fixes the issue.
This fixes 197.parser but there is more to do. Any comparison and possibly
other operators involving arguments may need to correctly cast the parameter
before its use, depending on the sign of the operator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33034
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 9 Jan 2007 06:25:15 +0000 (06:25 +0000)]
Test case for PR1099.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33033
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Tue, 9 Jan 2007 02:38:29 +0000 (02:38 +0000)]
Fixing a ">" redirect to be a ">>" redirect, so a sed command doesn't get clobbered.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33032
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Jan 2007 00:31:52 +0000 (00:31 +0000)]
Add PR number for future reference
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33031
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 9 Jan 2007 00:09:34 +0000 (00:09 +0000)]
Fix test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33030
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 9 Jan 2007 00:05:55 +0000 (00:05 +0000)]
PR1085 is fixed now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33029
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 8 Jan 2007 23:58:27 +0000 (23:58 +0000)]
Added a test case from PR1075.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33028
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 8 Jan 2007 23:57:40 +0000 (23:57 +0000)]
Undo xfail now scheduler deficiency has been fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33027
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 8 Jan 2007 23:55:53 +0000 (23:55 +0000)]
Naming consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33026
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 8 Jan 2007 23:50:38 +0000 (23:50 +0000)]
Fix for PR1075: bottom-up register-reduction scheduling actually increases register pressure.
- Fixed bugs in sethi-ullman number computation and priority queue comparison
functions.
- Separate code that handles priority computation special cases from SU number computation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33025
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Jan 2007 23:04:05 +0000 (23:04 +0000)]
Implement some trivial FP foldings when -enable-unsafe-fp-math is specified.
This implements CodeGen/PowerPC/unsafe-math.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33024
91177308-0d34-0410-b5e6-
96231b3b80d8