oota-llvm.git
17 years agoNeed to walk the derived chain of typedefs to get actual size.
Jim Laskey [Fri, 22 Dec 2006 20:03:42 +0000 (20:03 +0000)]
Need to walk the derived chain of typedefs to get actual size.

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

17 years agoDebug dump error.
Evan Cheng [Fri, 22 Dec 2006 02:04:05 +0000 (02:04 +0000)]
Debug dump error.

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

17 years agoIgnore the LibDeps.txt.tmp file.
Reid Spencer [Fri, 22 Dec 2006 02:02:45 +0000 (02:02 +0000)]
Ignore the LibDeps.txt.tmp file.

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

17 years agoadd a note
Chris Lattner [Fri, 22 Dec 2006 01:03:22 +0000 (01:03 +0000)]
add a note

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

17 years agoFix for ARM weak symbols, patch by Lauro Ramos Venancio!
Chris Lattner [Thu, 21 Dec 2006 22:59:58 +0000 (22:59 +0000)]
Fix for ARM weak symbols, patch by Lauro Ramos Venancio!

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

17 years agoAdd a new variable, LLVMGCCLIBEXEC to get the libexec directory where the
Reid Spencer [Thu, 21 Dec 2006 22:55:41 +0000 (22:55 +0000)]
Add a new variable, LLVMGCCLIBEXEC to get the libexec directory where the
cc1 and cc1plus executables live.

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

17 years agoGrandchildren are covered by protect.
Jim Laskey [Thu, 21 Dec 2006 21:24:35 +0000 (21:24 +0000)]
Grandchildren are covered by protect.

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

17 years agoChanges from Nick Lewycky with a simplified PPCTargetAsmInfo.
Jim Laskey [Thu, 21 Dec 2006 20:26:09 +0000 (20:26 +0000)]
Changes from Nick Lewycky with a simplified PPCTargetAsmInfo.

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

17 years agoInteger constants now print out as signed values in the assembly,
Reid Spencer [Thu, 21 Dec 2006 19:14:49 +0000 (19:14 +0000)]
Integer constants now print out as signed values in the assembly,
regardless of the signedness of the associated type.

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

17 years agoJust print integer constants as signed values. The actual signedness
Reid Spencer [Thu, 21 Dec 2006 19:04:23 +0000 (19:04 +0000)]
Just print integer constants as signed values. The actual signedness
doesn't matter as it is determined in the way the constant is used.

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

17 years agoAdd a FIXME about signedness.
Reid Spencer [Thu, 21 Dec 2006 18:59:16 +0000 (18:59 +0000)]
Add a FIXME about signedness.

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

17 years agoSimplify all the casting business and get rid of isSigned().
Reid Spencer [Thu, 21 Dec 2006 08:28:31 +0000 (08:28 +0000)]
Simplify all the casting business and get rid of isSigned().

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

17 years agoRemove isSigned calls via foreknowledge of main's argument types.
Reid Spencer [Thu, 21 Dec 2006 07:49:49 +0000 (07:49 +0000)]
Remove isSigned calls via foreknowledge of main's argument types.

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

17 years agoGet rid of a useless if statement whose then and else blocks were identical.
Reid Spencer [Thu, 21 Dec 2006 07:15:54 +0000 (07:15 +0000)]
Get rid of a useless if statement whose then and else blocks were identical.

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

17 years agoAdd some comments about things that can go away once signless types are in.
Reid Spencer [Thu, 21 Dec 2006 06:43:46 +0000 (06:43 +0000)]
Add some comments about things that can go away once signless types are in.

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

17 years agoAt the beginning of run, initialize analyis info availability for _ALL_
Devang Patel [Thu, 21 Dec 2006 00:16:50 +0000 (00:16 +0000)]
At the beginning of run, initialize analyis info availability for _ALL_
pass managers. Otherwise, stale available analysis info, from the managers not
yet run, may cause pass manager to take wrong turn.

This fixes CBE test failures reported by nightly tester.

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

17 years agoThese tests all rely on using register mnemonics and thus must behave in the
Jim Laskey [Thu, 21 Dec 2006 00:01:42 +0000 (00:01 +0000)]
These tests all rely on using register mnemonics and thus must behave in the
world of darwin.

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

17 years agoOops.
Jim Laskey [Wed, 20 Dec 2006 21:35:00 +0000 (21:35 +0000)]
Oops.

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

17 years agoOriginal patch was overly complicated.
Jim Laskey [Wed, 20 Dec 2006 21:33:34 +0000 (21:33 +0000)]
Original patch was overly complicated.

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

17 years agoFix Regression/Verifier/invoke-1.ll
Chris Lattner [Wed, 20 Dec 2006 21:20:13 +0000 (21:20 +0000)]
Fix Regression/Verifier/invoke-1.ll

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

17 years agoChanges to target powerpc for non-Darwin assemblers.
Jim Laskey [Wed, 20 Dec 2006 20:56:46 +0000 (20:56 +0000)]
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.

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

17 years agoFixed 80 cols & style violation
Anton Korobeynikov [Wed, 20 Dec 2006 20:40:30 +0000 (20:40 +0000)]
Fixed 80 cols & style violation

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

17 years agoEnable old pass manager. New pass manager causes CBE failures in llvm-test.
Devang Patel [Wed, 20 Dec 2006 19:57:07 +0000 (19:57 +0000)]
Enable old pass manager. New pass manager causes CBE failures in llvm-test.

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

17 years agoRevert the previous patch which was incorrect. This unbreaks eon, but rebreaks
Chris Lattner [Wed, 20 Dec 2006 19:50:15 +0000 (19:50 +0000)]
Revert the previous patch which was incorrect.  This unbreaks eon, but rebreaks
invoke-1.ll

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

17 years agoAdd some tests for negative constants to unsigned and large positive
Reid Spencer [Wed, 20 Dec 2006 17:27:58 +0000 (17:27 +0000)]
Add some tests for negative constants to unsigned and large positive
constants to signed.

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

17 years agoAllow negative constants for unsigned integers and unsigned constants
Reid Spencer [Wed, 20 Dec 2006 17:20:09 +0000 (17:20 +0000)]
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.

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

17 years agohandle undef values much more carefully: generalize the resolveundefbranches
Chris Lattner [Wed, 20 Dec 2006 06:21:33 +0000 (06:21 +0000)]
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

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

17 years agonew testcase
Chris Lattner [Wed, 20 Dec 2006 06:20:23 +0000 (06:20 +0000)]
new testcase

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

17 years agofix a typo
Chris Lattner [Wed, 20 Dec 2006 04:23:36 +0000 (04:23 +0000)]
fix a typo

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

17 years agogetLoad() and getStore() calls missed SVOffset operand. Thanks to Dan Gohman
Evan Cheng [Wed, 20 Dec 2006 01:27:29 +0000 (01:27 +0000)]
getLoad() and getStore() calls missed SVOffset operand. Thanks to Dan Gohman
for pointing it out!

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

17 years agoFixed dllimported symbols support during JIT'ing. JIT on mingw32
Anton Korobeynikov [Wed, 20 Dec 2006 01:03:20 +0000 (01:03 +0000)]
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 :)

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

17 years agoeliminate constructor from Statistic class. It is now impossible to get a
Chris Lattner [Tue, 19 Dec 2006 23:17:40 +0000 (23:17 +0000)]
eliminate constructor from Statistic class.  It is now impossible to get a
static constructor for them :).   Transition complete.

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

17 years agoswitch statistics over to not use static ctors.
Chris Lattner [Tue, 19 Dec 2006 23:16:47 +0000 (23:16 +0000)]
switch statistics over to not use static ctors.

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

17 years agoRemove documentation for isSigned and isUnsigned methods of Type class.
Reid Spencer [Tue, 19 Dec 2006 23:12:09 +0000 (23:12 +0000)]
Remove documentation for isSigned and isUnsigned methods of Type class.

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

17 years agoswitch statistic over, remove misspelt comment.
Chris Lattner [Tue, 19 Dec 2006 23:03:41 +0000 (23:03 +0000)]
switch statistic over, remove misspelt comment.

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

17 years agoeliminate static ctors for Statistic objects.
Chris Lattner [Tue, 19 Dec 2006 22:59:26 +0000 (22:59 +0000)]
eliminate static ctors for Statistic objects.

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

17 years agoelimiante Statistic static ctors
Chris Lattner [Tue, 19 Dec 2006 22:56:53 +0000 (22:56 +0000)]
elimiante Statistic static ctors

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

17 years agoAdded operator methods to the Statistic class; some LLVM projects depend
John Criswell [Tue, 19 Dec 2006 22:55:57 +0000 (22:55 +0000)]
Added operator methods to the Statistic class; some LLVM projects depend
on these.

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

17 years agoremove static ctors from Statistic objects
Chris Lattner [Tue, 19 Dec 2006 22:43:32 +0000 (22:43 +0000)]
remove static ctors from Statistic objects

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

17 years agoUpdate this test because constant integers are always printed signed now.
Reid Spencer [Tue, 19 Dec 2006 22:42:17 +0000 (22:42 +0000)]
Update this test because constant integers are always printed signed now.

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

17 years agoEliminate static ctors from Statistics
Chris Lattner [Tue, 19 Dec 2006 22:41:21 +0000 (22:41 +0000)]
Eliminate static ctors from Statistics

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

17 years agoeliminate static ctors from Statistics
Chris Lattner [Tue, 19 Dec 2006 22:30:33 +0000 (22:30 +0000)]
eliminate static ctors from Statistics

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

17 years agoeliminate static ctor from example.
Chris Lattner [Tue, 19 Dec 2006 22:24:09 +0000 (22:24 +0000)]
eliminate static ctor from example.

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

17 years agoremove dead statistic
Chris Lattner [Tue, 19 Dec 2006 22:23:21 +0000 (22:23 +0000)]
remove dead statistic

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

17 years agoswitch more statistics over to STATISTIC, eliminating static ctors. Also,
Chris Lattner [Tue, 19 Dec 2006 22:17:40 +0000 (22:17 +0000)]
switch more statistics over to STATISTIC, eliminating static ctors.  Also,
delete some dead ones.

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

17 years agoEliminate static ctors due to Statistic objects
Chris Lattner [Tue, 19 Dec 2006 22:09:18 +0000 (22:09 +0000)]
Eliminate static ctors due to Statistic objects

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

17 years agoConvert more Statistic's over to STATISTIC
Chris Lattner [Tue, 19 Dec 2006 21:49:03 +0000 (21:49 +0000)]
Convert more Statistic's over to STATISTIC

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

17 years agoupdate to reflect changes in statistic class.
Chris Lattner [Tue, 19 Dec 2006 21:46:21 +0000 (21:46 +0000)]
update to reflect changes in statistic class.

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

17 years agoSwitch over Transforms/Scalar to use the STATISTIC macro. For each statistic
Chris Lattner [Tue, 19 Dec 2006 21:40:18 +0000 (21:40 +0000)]
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.

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

17 years agoEnable new pass manager.
Devang Patel [Tue, 19 Dec 2006 21:32:24 +0000 (21:32 +0000)]
Enable new pass manager.

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

17 years agoFix for PR1062 by Dan Gohman.
Evan Cheng [Tue, 19 Dec 2006 21:31:42 +0000 (21:31 +0000)]
Fix for PR1062 by Dan Gohman.

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

17 years agoRefactor statistic a big and introduce a horrible-but-necessary macro
Chris Lattner [Tue, 19 Dec 2006 21:27:47 +0000 (21:27 +0000)]
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.

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

17 years agoNow that ConstantInt::isValueValidForType can handle signed and unsigned
Reid Spencer [Tue, 19 Dec 2006 21:16:35 +0000 (21:16 +0000)]
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.

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

17 years agoFix for PR1059: http://llvm.org/PR1059
Anton Korobeynikov [Tue, 19 Dec 2006 21:04:20 +0000 (21:04 +0000)]
Fix for PR1059: http://llvm.org/PR1059

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

17 years agoNow, there is additional layer, referred in the comment,
Devang Patel [Tue, 19 Dec 2006 20:12:38 +0000 (20:12 +0000)]
Now, there is additional layer, referred in the comment,
in place to handle this correctly.

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

17 years agoFor PR950:
Reid Spencer [Tue, 19 Dec 2006 19:55:17 +0000 (19:55 +0000)]
For PR950:
Test needs to be upgraded for the forthcoming FCmpInst patch.

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

17 years agoThis test needs to be upgraded for the forthcoming FCmpInst patch.
Reid Spencer [Tue, 19 Dec 2006 19:50:30 +0000 (19:50 +0000)]
This test needs to be upgraded for the forthcoming FCmpInst patch.

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

17 years agoFix an example that used the old SetCondInst instruction.
Reid Spencer [Tue, 19 Dec 2006 19:47:54 +0000 (19:47 +0000)]
Fix an example that used the old SetCondInst instruction.

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

17 years agoMake changes for removal of SETCC instruction to unify with LangRef.html.
Reid Spencer [Tue, 19 Dec 2006 19:47:19 +0000 (19:47 +0000)]
Make changes for removal of SETCC instruction to unify with LangRef.html.

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

17 years agos/BasicBlockPassManager/BBPassManager/g
Devang Patel [Tue, 19 Dec 2006 19:46:59 +0000 (19:46 +0000)]
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.

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

17 years agoThe x86-64 target machine should be used for amd64-* target triples.
Chris Lattner [Tue, 19 Dec 2006 19:40:09 +0000 (19:40 +0000)]
The x86-64 target machine should be used for amd64-* target triples.

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

17 years agoThis test needs to be upgraded for the FCmpInst patch.
Reid Spencer [Tue, 19 Dec 2006 19:30:58 +0000 (19:30 +0000)]
This test needs to be upgraded for the FCmpInst patch.

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

17 years agoFix PR1061 and CodeGen/X86/2006-12-19-IntelSyntax.ll
Chris Lattner [Tue, 19 Dec 2006 19:29:58 +0000 (19:29 +0000)]
Fix PR1061 and CodeGen/X86/2006-12-19-IntelSyntax.ll

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

17 years agoMake sure linker output is overwritten so this test can pass multiple times.
Reid Spencer [Tue, 19 Dec 2006 19:29:50 +0000 (19:29 +0000)]
Make sure linker output is overwritten so this test can pass multiple times.

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

17 years agotestcase for pr1061
Chris Lattner [Tue, 19 Dec 2006 19:29:50 +0000 (19:29 +0000)]
testcase for pr1061

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

17 years agoPartly fixed JITing on mingw32 platform. The support is not full due to
Anton Korobeynikov [Tue, 19 Dec 2006 15:24:18 +0000 (15:24 +0000)]
Partly fixed JITing on mingw32 platform. The support is not full due to
absence of dllimport JIT codegen.

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

17 years agoClean up ConstantFoldCastInstruction.
Reid Spencer [Tue, 19 Dec 2006 07:41:40 +0000 (07:41 +0000)]
Clean up ConstantFoldCastInstruction.

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

17 years agoRewrite ConstantFoldCastInstruction so that it doesn't use any of the
Reid Spencer [Tue, 19 Dec 2006 03:15:47 +0000 (03:15 +0000)]
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.

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

17 years agoBack out last revision, a bit premature, its not an upgrade-only change.
Reid Spencer [Tue, 19 Dec 2006 02:17:23 +0000 (02:17 +0000)]
Back out last revision, a bit premature, its not an upgrade-only change.

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

17 years agoFor PR950:
Reid Spencer [Tue, 19 Dec 2006 02:14:08 +0000 (02:14 +0000)]
For PR950:
Upgrade this test in preparation for the SETCC patch.

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

17 years agoFor PR950:
Reid Spencer [Tue, 19 Dec 2006 02:09:20 +0000 (02:09 +0000)]
For PR950:
These tests need to be upgraded in preparation for the SETCC patch.

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

17 years agoThis test needs to be upgraded in preparation for the SETCC patch.
Reid Spencer [Tue, 19 Dec 2006 02:07:11 +0000 (02:07 +0000)]
This test needs to be upgraded in preparation for the SETCC patch.

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

17 years agoThis test needs to be upgraded.
Reid Spencer [Tue, 19 Dec 2006 02:03:04 +0000 (02:03 +0000)]
This test needs to be upgraded.

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

17 years agoMay need to promote the operand (either sign_extend_inreg or and) before
Evan Cheng [Tue, 19 Dec 2006 01:44:04 +0000 (01:44 +0000)]
May need to promote the operand (either sign_extend_inreg or and) before
expanding a {s|u}int_to_fp.

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

17 years agoCorrect the description of ConstantInt::isValueValidForType.
Reid Spencer [Tue, 19 Dec 2006 01:34:39 +0000 (01:34 +0000)]
Correct the description of ConstantInt::isValueValidForType.

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

17 years agoMake ConstantInt not care about sign any more. To ensure the AsmParser can
Reid Spencer [Tue, 19 Dec 2006 01:28:19 +0000 (01:28 +0000)]
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.

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

17 years agoFix a bug in GetConstantFactor for affine expressions, in which the existing
Chris Lattner [Tue, 19 Dec 2006 01:16:02 +0000 (01:16 +0000)]
Fix a bug in GetConstantFactor for affine expressions, in which the existing
code was wrong for things like 3+4*i.

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

17 years agoDoxgenate comments.
Chris Lattner [Tue, 19 Dec 2006 01:11:32 +0000 (01:11 +0000)]
Doxgenate comments.
Add GreatestCommonDivisor64

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

17 years agoRemove a useless statement.
Reid Spencer [Mon, 18 Dec 2006 23:40:19 +0000 (23:40 +0000)]
Remove a useless statement.

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

17 years agoLegalizeSetCCOperands() may end up inserting libcalls. They need to be
Evan Cheng [Mon, 18 Dec 2006 22:55:34 +0000 (22:55 +0000)]
LegalizeSetCCOperands() may end up inserting libcalls. They need to be
properly serialized. Do not clear LastCallSEQ_END until that is done.

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

17 years agoRemoved llvm_ostream and used std::ostream instead.
Bill Wendling [Mon, 18 Dec 2006 21:59:00 +0000 (21:59 +0000)]
Removed llvm_ostream and used std::ostream instead.

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

17 years agoFor PR1042:
Reid Spencer [Mon, 18 Dec 2006 21:56:29 +0000 (21:56 +0000)]
For PR1042:
Fix a thinko. We want to check the second case if the first cast *didn't*
trigger.

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

17 years agomacros -> Inline functions
Rafael Espindola [Mon, 18 Dec 2006 11:07:09 +0000 (11:07 +0000)]
macros -> Inline functions
Lauros's patch

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

17 years agoRemove the createInferredCast methods now that their last uses have been
Reid Spencer [Mon, 18 Dec 2006 08:52:59 +0000 (08:52 +0000)]
Remove the createInferredCast methods now that their last uses have been
removed. All casting is now explicit and not inferred by VMCore.

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

17 years agoConvert the last uses of CastInst::createInferredCast to a normal cast
Reid Spencer [Mon, 18 Dec 2006 08:47:13 +0000 (08:47 +0000)]
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.

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

17 years agoRemove the two-argument (inferred cast) form of ConstantExpr::getCast now
Reid Spencer [Mon, 18 Dec 2006 08:18:46 +0000 (08:18 +0000)]
Remove the two-argument (inferred cast) form of ConstantExpr::getCast now
that its last uses have been removed.

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

17 years agoConvert the last use of two-argument ConstantExpr::getCast into another
Reid Spencer [Mon, 18 Dec 2006 08:16:27 +0000 (08:16 +0000)]
Convert the last use of two-argument ConstantExpr::getCast into another
form so we can remove that method from ConstantExpr.

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

17 years agoRemove a call to Type::isSigned().
Reid Spencer [Mon, 18 Dec 2006 07:58:01 +0000 (07:58 +0000)]
Remove a call to Type::isSigned().

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

17 years agoRevert last patch. ConstantInt isn't quite ready for signlessness.
Reid Spencer [Mon, 18 Dec 2006 04:22:56 +0000 (04:22 +0000)]
Revert last patch. ConstantInt isn't quite ready for signlessness.

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

17 years agoDetermine if the -enable-pic option was given.
Reid Spencer [Mon, 18 Dec 2006 04:11:16 +0000 (04:11 +0000)]
Determine if the -enable-pic option was given.

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

17 years agomove ExtWeakSymbols to AsmPrinter
Rafael Espindola [Mon, 18 Dec 2006 03:37:18 +0000 (03:37 +0000)]
move ExtWeakSymbols to AsmPrinter

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

17 years agoAdd a couple little tests for SExt/ZExt of constants of a sign that doesn't
Reid Spencer [Mon, 18 Dec 2006 01:11:46 +0000 (01:11 +0000)]
Add a couple little tests for SExt/ZExt of constants of a sign that doesn't
match.

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

17 years agoRemove the last use of getUnsignedVersion and getSignedVersion from VMCore.
Reid Spencer [Mon, 18 Dec 2006 01:11:03 +0000 (01:11 +0000)]
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.

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

17 years agoRemove some clutter and make it keep going instead of stopping at the
Reid Spencer [Mon, 18 Dec 2006 00:37:37 +0000 (00:37 +0000)]
Remove some clutter and make it keep going instead of stopping at the
first difference.

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

17 years agoFix PR1057 (compilation on macos 10.3), patch by Scott Michel!
Chris Lattner [Sun, 17 Dec 2006 21:04:02 +0000 (21:04 +0000)]
Fix PR1057 (compilation on macos 10.3), patch by Scott Michel!

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

17 years agoUse a predicate function to identify bitcast of fp and integer instead of
Reid Spencer [Sun, 17 Dec 2006 20:24:50 +0000 (20:24 +0000)]
Use a predicate function to identify bitcast of fp and integer instead of
repeating the logic in two different parts of the code.

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

17 years agoFix PR1058:
Reid Spencer [Sun, 17 Dec 2006 18:50:51 +0000 (18:50 +0000)]
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.

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

17 years agoAdded example of how to code print() methods so that they will disappear
Bill Wendling [Sun, 17 Dec 2006 11:40:40 +0000 (11:40 +0000)]
Added example of how to code print() methods so that they will disappear
from the code if "cnull" is passed into them.

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

17 years agoFixed so that it dereferences the ostream pointer.
Bill Wendling [Sun, 17 Dec 2006 11:15:53 +0000 (11:15 +0000)]
Fixed so that it dereferences the ostream pointer.

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

17 years agoAccidental submission.
Bill Wendling [Sun, 17 Dec 2006 11:13:13 +0000 (11:13 +0000)]
Accidental submission.

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