oota-llvm.git
17 years agothis warning is obsolete with llvmgcc3 being gone
Chris Lattner [Fri, 8 Dec 2006 05:03:54 +0000 (05:03 +0000)]
this warning is obsolete with llvmgcc3 being gone

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

17 years agothis is an initial patch to switch the ppc64 jit over to working in PIC mode,
Chris Lattner [Fri, 8 Dec 2006 04:54:03 +0000 (04:54 +0000)]
this is an initial patch to switch the ppc64 jit over to working in PIC mode,
which allows the code to be above the 2G marker.  We still need to JIT emit
dyld stubs to support external, weak, common, etc globals, but that will
happen tomorrow.

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

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

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

17 years agoBasicBlockPassManager_New::runOnFunction()
Devang Patel [Fri, 8 Dec 2006 01:38:28 +0000 (01:38 +0000)]
BasicBlockPassManager_New::runOnFunction()
Do initialization and finalization.

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

17 years agodoInitialization and doFinalization for BasicBlockPassManager_New
Devang Patel [Fri, 8 Dec 2006 00:59:05 +0000 (00:59 +0000)]
doInitialization and doFinalization for BasicBlockPassManager_New

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

17 years agoReimplement removeDeadPasses().
Devang Patel [Fri, 8 Dec 2006 00:37:52 +0000 (00:37 +0000)]
Reimplement removeDeadPasses().

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

17 years agoSimplify a bit
Andrew Lenharth [Thu, 7 Dec 2006 23:55:55 +0000 (23:55 +0000)]
Simplify a bit

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

17 years agoset Last User.
Devang Patel [Thu, 7 Dec 2006 23:55:10 +0000 (23:55 +0000)]
set Last User.

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

17 years agofix incorrect encoding of rldicr, used by ppc64 function stubs, etc.
Chris Lattner [Thu, 7 Dec 2006 23:44:07 +0000 (23:44 +0000)]
fix incorrect encoding of rldicr, used by ppc64 function stubs, etc.

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

17 years agoDon't use <sstream> in Streams.h but <iosfwd> instead.
Bill Wendling [Thu, 7 Dec 2006 23:41:45 +0000 (23:41 +0000)]
Don't use <sstream> in Streams.h but <iosfwd> instead.

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

17 years agoMaintain level(or depth) of pass manager in pass manager food chain.
Devang Patel [Thu, 7 Dec 2006 23:24:58 +0000 (23:24 +0000)]
Maintain level(or depth) of pass manager in pass manager food chain.

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

17 years agoNew method, PMDataManager::collectRequiredAnalysisPasses()
Devang Patel [Thu, 7 Dec 2006 23:05:44 +0000 (23:05 +0000)]
New method, PMDataManager::collectRequiredAnalysisPasses()

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

17 years agofix alignment
Rafael Espindola [Thu, 7 Dec 2006 22:38:06 +0000 (22:38 +0000)]
fix alignment

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

17 years agoFix CodeGen/PowerPC/2006-12-07-SelectCrash.ll on PPC64
Chris Lattner [Thu, 7 Dec 2006 22:36:47 +0000 (22:36 +0000)]
Fix CodeGen/PowerPC/2006-12-07-SelectCrash.ll on PPC64

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

17 years agonew testcase
Chris Lattner [Thu, 7 Dec 2006 22:36:14 +0000 (22:36 +0000)]
new testcase

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

17 years agoWhen new pass manager is created, initialize available analysis info
Devang Patel [Thu, 7 Dec 2006 22:34:21 +0000 (22:34 +0000)]
When new pass manager is created, initialize available analysis info
of existing manager at the same level. Otherwise, such info may be
considered as available, which not true.

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

17 years agoWhat should be the last unnecessary <iostream>s in the library.
Bill Wendling [Thu, 7 Dec 2006 22:21:48 +0000 (22:21 +0000)]
What should be the last unnecessary <iostream>s in the library.

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

17 years agoPMDataManager does not maintain LastUser info.
Devang Patel [Thu, 7 Dec 2006 22:17:09 +0000 (22:17 +0000)]
PMDataManager does not maintain LastUser info.

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

17 years agofix CodeGen/PowerPC/2006-12-07-LargeAlloca.ll on ppc64
Chris Lattner [Thu, 7 Dec 2006 22:15:58 +0000 (22:15 +0000)]
fix CodeGen/PowerPC/2006-12-07-LargeAlloca.ll on ppc64

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

17 years agonew testcase
Chris Lattner [Thu, 7 Dec 2006 22:15:20 +0000 (22:15 +0000)]
new testcase

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

17 years agoMake current pass info available _after_ removing info that is not
Devang Patel [Thu, 7 Dec 2006 22:09:36 +0000 (22:09 +0000)]
Make current pass info available _after_ removing info that is not
preserved.

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

17 years agoAdd TODOs
Devang Patel [Thu, 7 Dec 2006 21:58:50 +0000 (21:58 +0000)]
Add TODOs

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

17 years agoFix thinko.
Devang Patel [Thu, 7 Dec 2006 21:44:12 +0000 (21:44 +0000)]
Fix thinko.

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

17 years agoTop level manages schedule the pass immediately at the time of insertion.
Devang Patel [Thu, 7 Dec 2006 21:32:57 +0000 (21:32 +0000)]
Top level manages schedule the pass immediately at the time of insertion.

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

17 years agoNow FunctionPassManagerImpl_New and PassManagerImpl_New derives from
Devang Patel [Thu, 7 Dec 2006 21:27:23 +0000 (21:27 +0000)]
Now FunctionPassManagerImpl_New and PassManagerImpl_New derives from
PMTopLevelManager.

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

17 years agoReimplement schedulePass interface. Move it into PMTopLevelManager.
Devang Patel [Thu, 7 Dec 2006 21:10:57 +0000 (21:10 +0000)]
Reimplement schedulePass interface. Move it into PMTopLevelManager.

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

17 years agoWhile initializing AvailableAnalysis info, make ImmutablePasses available
Devang Patel [Thu, 7 Dec 2006 21:02:08 +0000 (21:02 +0000)]
While initializing AvailableAnalysis info, make ImmutablePasses available
immediately.

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

17 years agoAdd ImmutablePass into the list of info managed by top level pass
Devang Patel [Thu, 7 Dec 2006 20:51:18 +0000 (20:51 +0000)]
Add ImmutablePass into the list of info  managed by top level pass
manager.

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

17 years agoRemoved more <iostream> includes
Bill Wendling [Thu, 7 Dec 2006 20:28:15 +0000 (20:28 +0000)]
Removed more <iostream> includes

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

17 years agoRemoving even more <iostream> includes.
Bill Wendling [Thu, 7 Dec 2006 20:04:42 +0000 (20:04 +0000)]
Removing even more <iostream> includes.

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

17 years agoIf pass reserves all analysis info then each info is not separately
Devang Patel [Thu, 7 Dec 2006 20:03:49 +0000 (20:03 +0000)]
If pass reserves all analysis info then each info is not separately
included in PreservedSet. So check getPreservesAll() first.

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

17 years agoPass Managers themselves do not invalidate any analysis info.
Devang Patel [Thu, 7 Dec 2006 19:57:52 +0000 (19:57 +0000)]
Pass Managers themselves do not invalidate any analysis info.

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

17 years agoAdd a handle to the top level pass manager in PMDataManager.
Devang Patel [Thu, 7 Dec 2006 19:54:15 +0000 (19:54 +0000)]
Add a handle to the top level pass manager in PMDataManager.

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

17 years agoCosmetic markers to divide code in separate chunks.
Devang Patel [Thu, 7 Dec 2006 19:39:39 +0000 (19:39 +0000)]
Cosmetic markers to divide code in separate chunks.

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

17 years agos/noteDownAvailableAnalysis/recordAvailableAnalysis
Devang Patel [Thu, 7 Dec 2006 19:33:53 +0000 (19:33 +0000)]
s/noteDownAvailableAnalysis/recordAvailableAnalysis

While recording available analysis, include interfaces implemented.

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

17 years agoAdd PMTopLevelManager. It is not used yet.
Devang Patel [Thu, 7 Dec 2006 19:21:29 +0000 (19:21 +0000)]
Add PMTopLevelManager. It is not used yet.

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

17 years agoRequiredAnalysis support is buggy and not used at the moment so remove
Devang Patel [Thu, 7 Dec 2006 18:47:25 +0000 (18:47 +0000)]
RequiredAnalysis support is buggy and not used at the moment so remove
the code. Add TODO note.

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

17 years agos/clearAnalysis/initializeAnalysisInfo/g
Devang Patel [Thu, 7 Dec 2006 18:41:09 +0000 (18:41 +0000)]
s/clearAnalysis/initializeAnalysisInfo/g

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

17 years agos/CommonPassManagerImpl/PMDataManager/g
Devang Patel [Thu, 7 Dec 2006 18:36:24 +0000 (18:36 +0000)]
s/CommonPassManagerImpl/PMDataManager/g

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

17 years agomake sure that we don't use a common symbol if a section was specified
Rafael Espindola [Thu, 7 Dec 2006 18:33:58 +0000 (18:33 +0000)]
make sure that we don't use a common symbol if a section was specified

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

17 years agoAdd overview of pass manager.
Devang Patel [Thu, 7 Dec 2006 18:23:30 +0000 (18:23 +0000)]
Add overview of pass manager.

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

17 years agoBe sure to grab weak functions too, and make implicit defs comments
Andrew Lenharth [Thu, 7 Dec 2006 17:39:14 +0000 (17:39 +0000)]
Be sure to grab weak functions too, and make implicit defs comments

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

17 years agoCopy ARM's weak symbol test
Andrew Lenharth [Thu, 7 Dec 2006 17:37:54 +0000 (17:37 +0000)]
Copy ARM's weak symbol test

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

17 years agoThis now passes on Linux/x86
Reid Spencer [Thu, 7 Dec 2006 16:28:32 +0000 (16:28 +0000)]
This now passes on Linux/x86

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

17 years agoRevision 1.83 causes PR1037.
Reid Spencer [Thu, 7 Dec 2006 16:21:19 +0000 (16:21 +0000)]
Revision 1.83 causes PR1037.
Reverted.

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

17 years agoRegenerate.
Reid Spencer [Thu, 7 Dec 2006 04:23:03 +0000 (04:23 +0000)]
Regenerate.

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

17 years agoCreate an option to turn off generation of fcmp instructions while still
Reid Spencer [Thu, 7 Dec 2006 04:22:23 +0000 (04:22 +0000)]
Create an option to turn off generation of fcmp instructions while still
allowing integer setxx instructions to be converted to icmp.

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

17 years agoManually convert this to new assembly.
Reid Spencer [Thu, 7 Dec 2006 04:20:23 +0000 (04:20 +0000)]
Manually convert this to new assembly.

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

17 years agoProvide a getOpcode() method on CmpInst to ensure the opcode is returned
Reid Spencer [Thu, 7 Dec 2006 04:18:31 +0000 (04:18 +0000)]
Provide a getOpcode() method on CmpInst to ensure the opcode is returned
as the right type. Use this to shorten some code.

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

17 years agoInitialize {Min|Max}CSFrameIndex properly.
Evan Cheng [Thu, 7 Dec 2006 02:25:34 +0000 (02:25 +0000)]
Initialize {Min|Max}CSFrameIndex properly.

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

17 years agoChanged llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
Bill Wendling [Thu, 7 Dec 2006 01:30:32 +0000 (01:30 +0000)]
Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp.

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

17 years agoFix i64 uint_to_fp on ppc64
Chris Lattner [Thu, 7 Dec 2006 01:24:16 +0000 (01:24 +0000)]
Fix i64 uint_to_fp on ppc64

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

17 years agoMI keeps a ptr of TargetInstrDescriptor, use it.
Evan Cheng [Thu, 7 Dec 2006 01:21:59 +0000 (01:21 +0000)]
MI keeps a ptr of TargetInstrDescriptor, use it.

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

17 years agogetOperandConstraint returns -1 if the operand does have the specific constraint...
Evan Cheng [Thu, 7 Dec 2006 00:46:04 +0000 (00:46 +0000)]
getOperandConstraint returns -1 if the operand does have the specific constraint. This bug was causing excessive spills.

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

17 years agoIgnoring the upper 32 bits of a 64 bit constant is not a good thing.
Jim Laskey [Wed, 6 Dec 2006 22:47:14 +0000 (22:47 +0000)]
Ignoring the upper 32 bits of a 64 bit constant is not a good thing.

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

17 years agoimplement sextinreg i8->i64 and i16->i64
Chris Lattner [Wed, 6 Dec 2006 21:46:13 +0000 (21:46 +0000)]
implement sextinreg i8->i64 and i16->i64

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

17 years agoFailing linux.
Jim Laskey [Wed, 6 Dec 2006 21:36:07 +0000 (21:36 +0000)]
Failing linux.

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

17 years agofix another sradi encoding bug. This fixes Olden/health with the ppc64 jit.
Chris Lattner [Wed, 6 Dec 2006 21:35:10 +0000 (21:35 +0000)]
fix another sradi encoding bug.  This fixes Olden/health with the ppc64 jit.

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

17 years agoAlways pass "true" to isMaxValue(bool) because we know the type is LongTy.
Reid Spencer [Wed, 6 Dec 2006 21:27:07 +0000 (21:27 +0000)]
Always pass "true" to isMaxValue(bool) because we know the type is LongTy.

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

17 years agoAdjust to new ConstantIntegral interface for Max/Min tests.
Reid Spencer [Wed, 6 Dec 2006 20:45:15 +0000 (20:45 +0000)]
Adjust to new ConstantIntegral interface for Max/Min tests.

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

17 years agoUpdate ConstantIntegral Max/Min tests for new interface.
Reid Spencer [Wed, 6 Dec 2006 20:39:57 +0000 (20:39 +0000)]
Update ConstantIntegral Max/Min tests for new interface.

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

17 years agoFor PR950:
Reid Spencer [Wed, 6 Dec 2006 20:30:17 +0000 (20:30 +0000)]
For PR950:
Remove the getMaxValue and getMinValue functions from ConstantIntegral.
They don't make sense for a signless type. Also, for isMaxValue and
isMinValue, have the caller provided the signedness rather than obtaining
it from the constant's type.

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

17 years agoFix some 80 col violations.
Reid Spencer [Wed, 6 Dec 2006 20:28:46 +0000 (20:28 +0000)]
Fix some 80 col violations.

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

17 years agofix the jit encoding of sradi, simplify the MDForm1 description.
Chris Lattner [Wed, 6 Dec 2006 20:02:54 +0000 (20:02 +0000)]
fix the jit encoding of sradi, simplify the MDForm1 description.

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

17 years agoadd relocation support for ppc64 branches.
Chris Lattner [Wed, 6 Dec 2006 19:40:04 +0000 (19:40 +0000)]
add relocation support for ppc64 branches.

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

17 years agoDetemplatize the Statistic class.
Devang Patel [Wed, 6 Dec 2006 19:00:27 +0000 (19:00 +0000)]
Detemplatize the Statistic class.

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

17 years agomerge the Statistic and StatisticBase classes, eliminating virtual methods
Chris Lattner [Wed, 6 Dec 2006 18:20:44 +0000 (18:20 +0000)]
merge the Statistic and StatisticBase classes, eliminating virtual methods
and eliminating #includes from the Statistic.h file.

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

17 years agoadd #include
Chris Lattner [Wed, 6 Dec 2006 18:19:53 +0000 (18:19 +0000)]
add #include

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

17 years agoadd missing #include
Chris Lattner [Wed, 6 Dec 2006 18:14:47 +0000 (18:14 +0000)]
add missing #include

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

17 years agoDetemplatize the Statistic class. The only type it is instantiated with
Chris Lattner [Wed, 6 Dec 2006 17:46:33 +0000 (17:46 +0000)]
Detemplatize the Statistic class.  The only type it is instantiated with
is 'unsigned'.

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

17 years agoSome addresssed should be 64-bit and some shouldn't.
Jim Laskey [Wed, 6 Dec 2006 17:43:18 +0000 (17:43 +0000)]
Some addresssed should be 64-bit and some shouldn't.

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

17 years agoMake it easier for gdb to find the return address.
Jim Laskey [Wed, 6 Dec 2006 17:42:06 +0000 (17:42 +0000)]
Make it easier for gdb to find the return address.

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

17 years agoprint weak references
Rafael Espindola [Wed, 6 Dec 2006 13:35:10 +0000 (13:35 +0000)]
print weak references

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

17 years agoNo need to update generated files.
Jim Laskey [Wed, 6 Dec 2006 11:03:10 +0000 (11:03 +0000)]
No need to update generated files.

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

17 years agoFix build for older versios of bison.
Jim Laskey [Wed, 6 Dec 2006 10:57:33 +0000 (10:57 +0000)]
Fix build for older versios of bison.

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

17 years agoMove copyKillDeadInfo out-of-line. Add findRegisterUseOperand().
Evan Cheng [Wed, 6 Dec 2006 08:27:42 +0000 (08:27 +0000)]
Move copyKillDeadInfo out-of-line. Add findRegisterUseOperand().

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

17 years agoTie the ordered/unordered predicate descriptions to their meaning wrt
Reid Spencer [Wed, 6 Dec 2006 07:08:07 +0000 (07:08 +0000)]
Tie the ordered/unordered predicate descriptions to their meaning wrt
to QNAN values.

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

17 years agoRemove the dead CachedWriter class.
Chris Lattner [Wed, 6 Dec 2006 06:40:49 +0000 (06:40 +0000)]
Remove the dead CachedWriter class.

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

17 years agoSimplify code
Chris Lattner [Wed, 6 Dec 2006 06:35:25 +0000 (06:35 +0000)]
Simplify code

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

17 years agoRegenerate.
Reid Spencer [Wed, 6 Dec 2006 06:30:15 +0000 (06:30 +0000)]
Regenerate.

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

17 years agoDon't turn on SETCC upgrade yet!
Reid Spencer [Wed, 6 Dec 2006 06:29:36 +0000 (06:29 +0000)]
Don't turn on SETCC upgrade yet!

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

17 years agoRegenerate.
Reid Spencer [Wed, 6 Dec 2006 06:25:46 +0000 (06:25 +0000)]
Regenerate.

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

17 years agoFix upgrade of setcc with bool operands.
Reid Spencer [Wed, 6 Dec 2006 06:25:22 +0000 (06:25 +0000)]
Fix upgrade of setcc with bool operands.

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

17 years agoprintName is almost always true. In the cases that mattered where it was false,
Chris Lattner [Wed, 6 Dec 2006 06:24:27 +0000 (06:24 +0000)]
printName is almost always true.  In the cases that mattered where it was false,
it was effectively set to true by this:

-  if ((PrintName || isa<GlobalValue>(V)) && V->hasName())
+  if (V->hasName())

Delete printname entirely.

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

17 years agoRemove the 'printname' argument to WriteAsOperand. It is always true, and
Chris Lattner [Wed, 6 Dec 2006 06:16:21 +0000 (06:16 +0000)]
Remove the 'printname' argument to WriteAsOperand.  It is always true, and
passing false would make the asmprinter fail anyway.

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

17 years agoThe hasSlot methods are gone.
Chris Lattner [Wed, 6 Dec 2006 06:15:43 +0000 (06:15 +0000)]
The hasSlot methods are gone.
Remove the 'PrintName' argument to WriteAsOperand, as it is always true.
Only call getOrCreateSlot on things that are valid.

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

17 years agoThese asm printers shouldn't use assembly/writer.h
Chris Lattner [Wed, 6 Dec 2006 06:13:25 +0000 (06:13 +0000)]
These asm printers shouldn't use assembly/writer.h

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

17 years agoremove unused api
Chris Lattner [Wed, 6 Dec 2006 05:55:44 +0000 (05:55 +0000)]
remove unused api

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

17 years agoremove unused api, simplify some code
Chris Lattner [Wed, 6 Dec 2006 05:55:41 +0000 (05:55 +0000)]
remove unused api, simplify some code

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

17 years agoremove more code that was only used by the bc writer
Chris Lattner [Wed, 6 Dec 2006 05:50:41 +0000 (05:50 +0000)]
remove more code that was only used by the bc writer

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

17 years agoremove dead code left over from when this functionality was shared with the
Chris Lattner [Wed, 6 Dec 2006 05:42:32 +0000 (05:42 +0000)]
remove dead code left over from when this functionality was shared with the
bcwriter.

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

17 years agoreword message
Chris Lattner [Wed, 6 Dec 2006 05:39:18 +0000 (05:39 +0000)]
reword message

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

17 years agorename createSlot -> getOrCreateSlot.
Chris Lattner [Wed, 6 Dec 2006 05:27:40 +0000 (05:27 +0000)]
rename createSlot -> getOrCreateSlot.

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

17 years agoclean up some sloppy and inconsistent spacing
Chris Lattner [Wed, 6 Dec 2006 05:12:21 +0000 (05:12 +0000)]
clean up some sloppy and inconsistent spacing

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

17 years agowrap long lines
Chris Lattner [Wed, 6 Dec 2006 04:41:52 +0000 (04:41 +0000)]
wrap long lines

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

17 years agoFix a CmpInst writing bug by removing merge cruft that I *know* I've removed
Reid Spencer [Wed, 6 Dec 2006 04:27:07 +0000 (04:27 +0000)]
Fix a CmpInst writing bug by removing merge cruft that I *know* I've removed
before. Also, make sure we write the predicate value for Cmp instructions
using instruction format 0.

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

17 years agocounter should be unsigned.
Chris Lattner [Wed, 6 Dec 2006 01:50:04 +0000 (01:50 +0000)]
counter should be unsigned.

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

17 years agoeliminate fp statistic
Chris Lattner [Wed, 6 Dec 2006 01:48:55 +0000 (01:48 +0000)]
eliminate fp statistic

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

17 years agomake all llvm tools call llvm_shutdown when they exit, static'ify some stuff.
Chris Lattner [Wed, 6 Dec 2006 01:18:01 +0000 (01:18 +0000)]
make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.

With this change, I can now move -stats to print when llvm_shutdown is called.

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

17 years agoadd a helper to call llvm_shutdown()
Chris Lattner [Wed, 6 Dec 2006 01:01:14 +0000 (01:01 +0000)]
add a helper to call llvm_shutdown()

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