Jim Laskey
41621a72f5
Changes to target powerpc for non-Darwin assemblers.
...
1. Patches from Nick Lewycky.
2. Code to filter register names and print them as numeric values on
non-Darwin systems.
llvm-svn: 32721
2006-12-20 20:56:46 +00:00
Anton Korobeynikov
b3d704c91d
Fixed 80 cols & style violation
...
llvm-svn: 32720
2006-12-20 20:40:30 +00:00
Devang Patel
e86567e1e1
Enable old pass manager. New pass manager causes CBE failures in llvm-test.
...
llvm-svn: 32719
2006-12-20 19:57:07 +00:00
Chris Lattner
439c25a08a
Revert the previous patch which was incorrect. This unbreaks eon, but rebreaks
...
invoke-1.ll
llvm-svn: 32718
2006-12-20 19:50:15 +00:00
Reid Spencer
21278e9932
Add some tests for negative constants to unsigned and large positive
...
constants to signed.
llvm-svn: 32717
2006-12-20 17:27:58 +00:00
Reid Spencer
3f46fbaa00
Allow negative constants for unsigned integers and unsigned constants
...
greater than MAX_INT64 for signed integers. This is now valid and is just
waiting for the distinction between signed and unsigned to go away.
llvm-svn: 32716
2006-12-20 17:20:09 +00:00
Chris Lattner
1847f6ddbd
handle undef values much more carefully: generalize the resolveundefbranches
...
code to handle instructions as well, so that we properly fold things like
X & undef -> 0.
This fixes Transforms/SCCP/2006-12-19-UndefBug.ll
llvm-svn: 32715
2006-12-20 06:21:33 +00:00
Chris Lattner
aef35566f5
new testcase
...
llvm-svn: 32714
2006-12-20 06:20:23 +00:00
Chris Lattner
d7ed9c92c2
fix a typo
...
llvm-svn: 32713
2006-12-20 04:23:36 +00:00
Evan Cheng
258657e64e
getLoad() and getStore() calls missed SVOffset operand. Thanks to Dan Gohman
...
for pointing it out!
llvm-svn: 32712
2006-12-20 01:27:29 +00:00
Anton Korobeynikov
93acb49182
Fixed dllimported symbols support during JIT'ing. JIT on mingw32
...
platform should be more or less workable. At least, sim is running fine
under lli :)
llvm-svn: 32711
2006-12-20 01:03:20 +00:00
Chris Lattner
00bb216977
eliminate constructor from Statistic class. It is now impossible to get a
...
static constructor for them :). Transition complete.
llvm-svn: 32710
2006-12-19 23:17:40 +00:00
Chris Lattner
575d3218ab
switch statistics over to not use static ctors.
...
llvm-svn: 32709
2006-12-19 23:16:47 +00:00
Reid Spencer
85f3c06003
Remove documentation for isSigned and isUnsigned methods of Type class.
...
llvm-svn: 32708
2006-12-19 23:12:09 +00:00
Chris Lattner
874e55d551
switch statistic over, remove misspelt comment.
...
llvm-svn: 32704
2006-12-19 23:03:41 +00:00
Chris Lattner
1ef9cd400d
eliminate static ctors for Statistic objects.
...
llvm-svn: 32703
2006-12-19 22:59:26 +00:00
Chris Lattner
e712a5a1d2
elimiante Statistic static ctors
...
llvm-svn: 32702
2006-12-19 22:56:53 +00:00
John Criswell
a20006cd96
Added operator methods to the Statistic class; some LLVM projects depend
...
on these.
llvm-svn: 32701
2006-12-19 22:55:57 +00:00
Chris Lattner
c346ecd780
remove static ctors from Statistic objects
...
llvm-svn: 32700
2006-12-19 22:43:32 +00:00
Reid Spencer
38ea551520
Update this test because constant integers are always printed signed now.
...
llvm-svn: 32699
2006-12-19 22:42:17 +00:00
Chris Lattner
aee775a6b7
Eliminate static ctors from Statistics
...
llvm-svn: 32698
2006-12-19 22:41:21 +00:00
Chris Lattner
57ef942306
eliminate static ctors from Statistics
...
llvm-svn: 32697
2006-12-19 22:30:33 +00:00
Chris Lattner
1fa216f572
eliminate static ctor from example.
...
llvm-svn: 32696
2006-12-19 22:24:09 +00:00
Chris Lattner
40b29cac01
remove dead statistic
...
llvm-svn: 32695
2006-12-19 22:23:21 +00:00
Chris Lattner
45f966d80f
switch more statistics over to STATISTIC, eliminating static ctors. Also,
...
delete some dead ones.
llvm-svn: 32694
2006-12-19 22:17:40 +00:00
Chris Lattner
1631bcb1d4
Eliminate static ctors due to Statistic objects
...
llvm-svn: 32693
2006-12-19 22:09:18 +00:00
Chris Lattner
0e5255bdc6
Convert more Statistic's over to STATISTIC
...
llvm-svn: 32692
2006-12-19 21:49:03 +00:00
Chris Lattner
58e5345894
update to reflect changes in statistic class.
...
llvm-svn: 32691
2006-12-19 21:46:21 +00:00
Chris Lattner
79a42ac941
Switch over Transforms/Scalar to use the STATISTIC macro. For each statistic
...
converted, we lose a static initializer. This also allows GCC to emit warnings
about unused statistics.
llvm-svn: 32690
2006-12-19 21:40:18 +00:00
Devang Patel
91fc1e5780
Enable new pass manager.
...
llvm-svn: 32689
2006-12-19 21:32:24 +00:00
Evan Cheng
582ac4bed7
Fix for PR1062 by Dan Gohman.
...
llvm-svn: 32688
2006-12-19 21:31:42 +00:00
Chris Lattner
13bfd32f5d
Refactor statistic a big and introduce a horrible-but-necessary macro
...
(STATISTIC), which allows us to define statistics that don't introduce
static ctors into the .o files. I'm migrating code over to use this
incrementally.
llvm-svn: 32687
2006-12-19 21:27:47 +00:00
Reid Spencer
2acb8e1a43
Now that ConstantInt::isValueValidForType can handle signed and unsigned
...
values regardless of the signedness of the constant's type, it is okay to
always make the AsmWriter.cpp print constant ints as signed values. The
AsmParser will automatically handle things like: uint -1 as a result.
llvm-svn: 32686
2006-12-19 21:16:35 +00:00
Anton Korobeynikov
44ef93449a
Fix for PR1059: http://llvm.org/PR1059
...
llvm-svn: 32685
2006-12-19 21:04:20 +00:00
Devang Patel
cb5128a8d9
Now, there is additional layer, referred in the comment,
...
in place to handle this correctly.
llvm-svn: 32684
2006-12-19 20:12:38 +00:00
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