Reid Spencer
1e9d4977b6
For PR950:
...
Test needs to be upgraded for the forthcoming FCmpInst patch.
llvm-svn: 32683
2006-12-19 19:55:17 +00:00
Reid Spencer
98679b56a1
This test needs to be upgraded for the forthcoming FCmpInst patch.
...
llvm-svn: 32682
2006-12-19 19:50:30 +00:00
Reid Spencer
8810d370af
Fix an example that used the old SetCondInst instruction.
...
llvm-svn: 32681
2006-12-19 19:47:54 +00:00
Reid Spencer
c6be386754
Make changes for removal of SETCC instruction to unify with LangRef.html.
...
llvm-svn: 32680
2006-12-19 19:47:19 +00:00
Devang Patel
67d6a5e411
s/BasicBlockPassManager/BBPassManager/g
...
s/ModulePassManager/MPPassManager/g
s/FunctionPassManagerImpl_New/FunctionPassManagerImpl/g
s/PassManagerImpl_New/PassManagerImpl/g
Introduce FPPassManager to manage function passes and
BBPassManagers.
Now FunctionPassManagerImpl is an implementation class
used by externally visible FunctionPassManager to manage
FPPassManagers.
Module pass manager (MPPassManager) now manages FPPassManagers
and ModulePasses.
llvm-svn: 32679
2006-12-19 19:46:59 +00:00
Chris Lattner
68f62b58f7
The x86-64 target machine should be used for amd64-* target triples.
...
llvm-svn: 32678
2006-12-19 19:40:09 +00:00
Reid Spencer
fb5e766bea
This test needs to be upgraded for the FCmpInst patch.
...
llvm-svn: 32677
2006-12-19 19:30:58 +00:00
Chris Lattner
a7f95900f4
Fix PR1061 and CodeGen/X86/2006-12-19-IntelSyntax.ll
...
llvm-svn: 32676
2006-12-19 19:29:58 +00:00
Reid Spencer
60544284e8
Make sure linker output is overwritten so this test can pass multiple times.
...
llvm-svn: 32675
2006-12-19 19:29:50 +00:00
Chris Lattner
8826afd893
testcase for pr1061
...
llvm-svn: 32674
2006-12-19 19:29:50 +00:00
Anton Korobeynikov
eef04ba1c2
Partly fixed JITing on mingw32 platform. The support is not full due to
...
absence of dllimport JIT codegen.
llvm-svn: 32673
2006-12-19 15:24:18 +00:00
Reid Spencer
8dabca4118
Clean up ConstantFoldCastInstruction.
...
llvm-svn: 32672
2006-12-19 07:41:40 +00:00
Reid Spencer
f5fc34ad09
Rewrite ConstantFoldCastInstruction so that it doesn't use any of the
...
ConstRules. Remove the casting rules from ConstRules and subclasses. This
cleans up ConstantFolding significantly. Passes all tests.
llvm-svn: 32671
2006-12-19 03:15:47 +00:00
Reid Spencer
56fd357f5e
Back out last revision, a bit premature, its not an upgrade-only change.
...
llvm-svn: 32670
2006-12-19 02:17:23 +00:00
Reid Spencer
60ea16cd6d
For PR950:
...
Upgrade this test in preparation for the SETCC patch.
llvm-svn: 32669
2006-12-19 02:14:08 +00:00
Reid Spencer
2fff0acab4
For PR950:
...
These tests need to be upgraded in preparation for the SETCC patch.
llvm-svn: 32668
2006-12-19 02:09:20 +00:00
Reid Spencer
fe0cda3de8
This test needs to be upgraded in preparation for the SETCC patch.
...
llvm-svn: 32667
2006-12-19 02:07:11 +00:00
Reid Spencer
c136005f32
This test needs to be upgraded.
...
llvm-svn: 32666
2006-12-19 02:03:04 +00:00
Evan Cheng
9ad6edf2ec
May need to promote the operand (either sign_extend_inreg or and) before
...
expanding a {s|u}int_to_fp.
llvm-svn: 32665
2006-12-19 01:44:04 +00:00
Reid Spencer
b799e77547
Correct the description of ConstantInt::isValueValidForType.
...
llvm-svn: 32664
2006-12-19 01:34:39 +00:00
Reid Spencer
e733472221
Make ConstantInt not care about sign any more. To ensure the AsmParser can
...
still check the validity of signed values an overload to isValueValidForType
was added to allow passing in an int64_t to check.
llvm-svn: 32663
2006-12-19 01:28:19 +00:00
Chris Lattner
0a1e99317e
Fix a bug in GetConstantFactor for affine expressions, in which the existing
...
code was wrong for things like 3+4*i.
llvm-svn: 32662
2006-12-19 01:16:02 +00:00
Chris Lattner
c1b828c78d
Doxgenate comments.
...
Add GreatestCommonDivisor64
llvm-svn: 32661
2006-12-19 01:11:32 +00:00
Reid Spencer
8b5cd5f710
Remove a useless statement.
...
llvm-svn: 32660
2006-12-18 23:40:19 +00:00
Evan Cheng
adc80f98cf
LegalizeSetCCOperands() may end up inserting libcalls. They need to be
...
properly serialized. Do not clear LastCallSEQ_END until that is done.
llvm-svn: 32659
2006-12-18 22:55:34 +00:00
Bill Wendling
21be92d260
Removed llvm_ostream and used std::ostream instead.
...
llvm-svn: 32658
2006-12-18 21:59:00 +00:00
Reid Spencer
77cc7edf3e
For PR1042:
...
Fix a thinko. We want to check the second case if the first cast *didn't*
trigger.
llvm-svn: 32657
2006-12-18 21:56:29 +00:00
Rafael Espindola
3ab9256d19
macros -> Inline functions
...
Lauros's patch
llvm-svn: 32656
2006-12-18 11:07:09 +00:00
Reid Spencer
e45ac2ab11
Remove the createInferredCast methods now that their last uses have been
...
removed. All casting is now explicit and not inferred by VMCore.
llvm-svn: 32655
2006-12-18 08:52:59 +00:00
Reid Spencer
668d90f289
Convert the last uses of CastInst::createInferredCast to a normal cast
...
creation. These changes are still temporary but at least this pushes
knowledge of signedness out closer to where it can be determined properly
and allows signedness to be removed from VMCore.
llvm-svn: 32654
2006-12-18 08:47:13 +00:00
Reid Spencer
4800c38a75
Remove the two-argument (inferred cast) form of ConstantExpr::getCast now
...
that its last uses have been removed.
llvm-svn: 32653
2006-12-18 08:18:46 +00:00
Reid Spencer
b83593e3ea
Convert the last use of two-argument ConstantExpr::getCast into another
...
form so we can remove that method from ConstantExpr.
llvm-svn: 32652
2006-12-18 08:16:27 +00:00
Reid Spencer
cf0c82f5fa
Remove a call to Type::isSigned().
...
llvm-svn: 32651
2006-12-18 07:58:01 +00:00
Reid Spencer
db6b6fb916
Revert last patch. ConstantInt isn't quite ready for signlessness.
...
llvm-svn: 32650
2006-12-18 04:22:56 +00:00
Reid Spencer
a4044f35f4
Determine if the -enable-pic option was given.
...
llvm-svn: 32649
2006-12-18 04:11:16 +00:00
Rafael Espindola
d7998d0e6d
move ExtWeakSymbols to AsmPrinter
...
llvm-svn: 32648
2006-12-18 03:37:18 +00:00
Reid Spencer
0e60d55519
Add a couple little tests for SExt/ZExt of constants of a sign that doesn't
...
match.
llvm-svn: 32647
2006-12-18 01:11:46 +00:00
Reid Spencer
776311e000
Remove the last use of getUnsignedVersion and getSignedVersion from VMCore.
...
ConstantInt doesn't care about the sign of the type it represents. It only
cares about the bitwidth so there is no need to make the sign of the type
match the SExt or ZExt constant expression.
llvm-svn: 32646
2006-12-18 01:11:03 +00:00
Reid Spencer
f5165ac0d1
Remove some clutter and make it keep going instead of stopping at the
...
first difference.
llvm-svn: 32645
2006-12-18 00:37:37 +00:00
Chris Lattner
811d75f71a
Fix PR1057 (compilation on macos 10.3), patch by Scott Michel!
...
llvm-svn: 32644
2006-12-17 21:04:02 +00:00
Reid Spencer
8bd6317823
Use a predicate function to identify bitcast of fp and integer instead of
...
repeating the logic in two different parts of the code.
llvm-svn: 32643
2006-12-17 20:24:50 +00:00
Reid Spencer
174dc2f35e
Fix PR1058:
...
Generate the BITCAST_TEMPORARY regardless of the uses or inlinability of
the instruction. This temporary is needed to perform the instruction, not
provide storage for its results.
llvm-svn: 32642
2006-12-17 18:50:51 +00:00
Bill Wendling
3307244ce9
Added example of how to code print() methods so that they will disappear
...
from the code if "cnull" is passed into them.
llvm-svn: 32641
2006-12-17 11:40:40 +00:00
Bill Wendling
e33ce528da
Fixed so that it dereferences the ostream pointer.
...
llvm-svn: 32640
2006-12-17 11:15:53 +00:00
Bill Wendling
1e48353346
Accidental submission.
...
llvm-svn: 32639
2006-12-17 11:13:13 +00:00
Bill Wendling
e891701547
This snuck in. Reverted.
...
llvm-svn: 32638
2006-12-17 11:11:10 +00:00
Reid Spencer
cb80954483
Fix problems in the CBE and InstructionCombining which use the isMaxValue
...
and isMinValue methods of ConstantInt. These have been broken since the
isSigned parameter was added. It is necessary to use the signed version
of the type in the call to isValueValidForType or else incorrect results
are returned.
llvm-svn: 32637
2006-12-17 06:07:30 +00:00
Bill Wendling
a77f14265b
Added an automatic cast to "std::ostream*" etc. from OStream. We then can
...
rework the hacks that had us passing OStream in. We pass in std::ostream*
instead, check for null, and then dispatch to the correct print() method.
llvm-svn: 32636
2006-12-17 05:15:13 +00:00
Reid Spencer
05a1fe5bf5
Allow an --enable-pic option to turn on -fPIC compiler option when building.
...
The default is disabled until we know this doesn't break anyone.
llvm-svn: 32635
2006-12-16 22:07:52 +00:00
Chris Lattner
fd5f03ec3f
when inserting a dummy argument to work-around the CBE not supporting
...
zero arg vararg functions, pass undef instead of 'int 0', which is cheaper.
llvm-svn: 32634
2006-12-16 21:21:53 +00:00