oota-llvm.git
22 years agoAdd new getOperandType(i) method to MachineInstr
Chris Lattner [Mon, 28 Oct 2002 04:30:20 +0000 (04:30 +0000)]
Add new getOperandType(i) method to MachineInstr

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

22 years agoFairly major overhaul of MachineInstr & Operand classes
Chris Lattner [Mon, 28 Oct 2002 04:24:49 +0000 (04:24 +0000)]
Fairly major overhaul of MachineInstr & Operand classes
  - Inline methods that are mostly a single line anyway
  - Eliminate several methods that were never called
  - Group methods a bit more consistently

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

22 years agoMake MachineInstr.h not #include MachineInstrInfo.h
Chris Lattner [Mon, 28 Oct 2002 02:29:46 +0000 (02:29 +0000)]
Make MachineInstr.h not #include MachineInstrInfo.h

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

22 years agoAdd #includes now that MachineInstr.h doesn't include llvm/Target/MachineInstrInfo.h
Chris Lattner [Mon, 28 Oct 2002 02:28:39 +0000 (02:28 +0000)]
Add #includes now that MachineInstr.h doesn't include llvm/Target/MachineInstrInfo.h

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

22 years agoRemvoe a bunch of unneeded forward decls
Chris Lattner [Mon, 28 Oct 2002 02:27:07 +0000 (02:27 +0000)]
Remvoe a bunch of unneeded forward decls

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

22 years agoDon't #include <Support/*>, #include "Support/*"
Chris Lattner [Mon, 28 Oct 2002 02:11:53 +0000 (02:11 +0000)]
Don't #include <Support/*>, #include "Support/*"

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

22 years agoAdd BasicBlock list to MchineFunction that will eventually be the only
Chris Lattner [Mon, 28 Oct 2002 02:08:43 +0000 (02:08 +0000)]
Add BasicBlock list to MchineFunction that will eventually be the only
way to access MachineBasicBlocks.  For now, it is never filled.

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

22 years ago*** empty log message ***
Chris Lattner [Mon, 28 Oct 2002 02:01:37 +0000 (02:01 +0000)]
*** empty log message ***

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

22 years agoMachineFunction now includes MachineBasicBlock so there is no need to
Chris Lattner [Mon, 28 Oct 2002 02:01:35 +0000 (02:01 +0000)]
MachineFunction now includes MachineBasicBlock so there is no need to
reinclude it

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

22 years agoMachineFunction.h now includes MachineBasicBlock.h in preparation for
Chris Lattner [Mon, 28 Oct 2002 02:01:06 +0000 (02:01 +0000)]
MachineFunction.h now includes MachineBasicBlock.h in preparation for
list changes.

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

22 years agoRemvoe dead fixme and typedef
Chris Lattner [Mon, 28 Oct 2002 01:55:26 +0000 (01:55 +0000)]
Remvoe dead fixme and typedef

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

22 years agoMachineBasicBlock doesn't need basicblock.h, it needs Annotation.h
Chris Lattner [Mon, 28 Oct 2002 01:53:00 +0000 (01:53 +0000)]
MachineBasicBlock doesn't need basicblock.h, it needs Annotation.h

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

22 years agoRename MachineCodeForBasicBlock to MachineBasicBlock
Chris Lattner [Mon, 28 Oct 2002 01:41:47 +0000 (01:41 +0000)]
Rename MachineCodeForBasicBlock to MachineBasicBlock

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

22 years ago*** empty log message ***
Chris Lattner [Mon, 28 Oct 2002 01:41:27 +0000 (01:41 +0000)]
*** empty log message ***

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

22 years agoRename file to MachineBasicBlock.h
Chris Lattner [Mon, 28 Oct 2002 01:39:21 +0000 (01:39 +0000)]
Rename file to MachineBasicBlock.h

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

22 years agoAdd note about state that should be removed when time permits
Chris Lattner [Mon, 28 Oct 2002 01:27:51 +0000 (01:27 +0000)]
Add note about state that should be removed when time permits

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

22 years agoFixes to previous checkin
Chris Lattner [Mon, 28 Oct 2002 01:27:30 +0000 (01:27 +0000)]
Fixes to previous checkin

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

22 years agoInline some methods from .cpp files into .h files, minor cleanups
Chris Lattner [Mon, 28 Oct 2002 01:21:55 +0000 (01:21 +0000)]
Inline some methods from .cpp files into .h files, minor cleanups

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

22 years agoMinor cleanups
Chris Lattner [Mon, 28 Oct 2002 01:16:38 +0000 (01:16 +0000)]
Minor cleanups

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

22 years agoAfter removing stuff from TargetMachine, we now no longer have to include
Chris Lattner [Mon, 28 Oct 2002 01:13:07 +0000 (01:13 +0000)]
After removing stuff from TargetMachine, we now no longer have to include
it twice.

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

22 years agoMove machine code generation/destruction passes out of Sparc.cpp because
Chris Lattner [Mon, 28 Oct 2002 01:12:41 +0000 (01:12 +0000)]
Move machine code generation/destruction passes out of Sparc.cpp because
they are generic

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

22 years agoAdd prototypes for creation/destruction passes
Chris Lattner [Mon, 28 Oct 2002 01:11:58 +0000 (01:11 +0000)]
Add prototypes for creation/destruction passes

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

22 years agoMove addPassesToEmitAssembly from TargetMachine to UltraSparc because it
Chris Lattner [Mon, 28 Oct 2002 01:03:43 +0000 (01:03 +0000)]
Move addPassesToEmitAssembly from TargetMachine to UltraSparc because it
really is sparc specific.

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

22 years agoPrune #includes
Chris Lattner [Mon, 28 Oct 2002 01:02:51 +0000 (01:02 +0000)]
Prune #includes

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

22 years ago* Doxygenify comments
Chris Lattner [Mon, 28 Oct 2002 01:02:24 +0000 (01:02 +0000)]
* Doxygenify comments
* Move addPassesToEmitAssembly back to Sparc.cpp because it really is
  sparc specific

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

22 years agoAdd codegen library
Chris Lattner [Mon, 28 Oct 2002 00:54:59 +0000 (00:54 +0000)]
Add codegen library

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

22 years agoThis header is renamed to MachineFunction.h
Chris Lattner [Mon, 28 Oct 2002 00:45:06 +0000 (00:45 +0000)]
This header is renamed to MachineFunction.h

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

22 years agoWe don't need the forwarding typedef
Chris Lattner [Mon, 28 Oct 2002 00:44:09 +0000 (00:44 +0000)]
We don't need the forwarding typedef

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

22 years agoUpdates to match misha's changes
Chris Lattner [Mon, 28 Oct 2002 00:37:53 +0000 (00:37 +0000)]
Updates to match misha's changes

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

22 years agoChanged `MachineCodeForMethod' to `MachineFunction'.
Misha Brukman [Mon, 28 Oct 2002 00:28:31 +0000 (00:28 +0000)]
Changed `MachineCodeForMethod' to `MachineFunction'.

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

22 years agoRemove dead fixme
Chris Lattner [Sun, 27 Oct 2002 21:23:43 +0000 (21:23 +0000)]
Remove dead fixme

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

22 years agoMake pointless testcase a bit more "challenging"
Chris Lattner [Sun, 27 Oct 2002 21:18:06 +0000 (21:18 +0000)]
Make pointless testcase a bit more "challenging"

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

22 years agoAdd support or other operand types
Chris Lattner [Sun, 27 Oct 2002 21:17:45 +0000 (21:17 +0000)]
Add support or other operand types

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

22 years agoInstruction select constant arguments correctly
Chris Lattner [Sun, 27 Oct 2002 21:16:59 +0000 (21:16 +0000)]
Instruction select constant arguments correctly

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

22 years agoAdd instruction definitions for mov r, imm instructions
Chris Lattner [Sun, 27 Oct 2002 21:16:44 +0000 (21:16 +0000)]
Add instruction definitions for mov r, imm instructions

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

22 years agoPrune #includes
Chris Lattner [Sun, 27 Oct 2002 20:49:47 +0000 (20:49 +0000)]
Prune #includes

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

22 years agoAdd neccesary #include
Chris Lattner [Sun, 27 Oct 2002 19:16:27 +0000 (19:16 +0000)]
Add neccesary #include

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

22 years agoOld GCC's don't have an <ostream>
Chris Lattner [Sun, 27 Oct 2002 19:12:37 +0000 (19:12 +0000)]
Old GCC's don't have an <ostream>

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

22 years agochange ++ to +1 when using random access iterators
Chris Lattner [Sun, 27 Oct 2002 19:09:51 +0000 (19:09 +0000)]
change ++ to +1 when using random access iterators

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

22 years agoAdd #include
Chris Lattner [Sun, 27 Oct 2002 19:08:03 +0000 (19:08 +0000)]
Add #include

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

22 years agoWork better with other versions of bison
Chris Lattner [Sun, 27 Oct 2002 19:06:56 +0000 (19:06 +0000)]
Work better with other versions of bison

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

22 years agoFix a major bug in lli
Chris Lattner [Sat, 26 Oct 2002 01:57:15 +0000 (01:57 +0000)]
Fix a major bug in lli

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

22 years agoCheckin simple testcases for LLVM-JIT
Chris Lattner [Fri, 25 Oct 2002 23:01:51 +0000 (23:01 +0000)]
Checkin simple testcases for LLVM-JIT

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

22 years agoInitial checkin of target support for X86 backend.
Chris Lattner [Fri, 25 Oct 2002 23:00:40 +0000 (23:00 +0000)]
Initial checkin of target support for X86 backend.

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

22 years agoInitial checkin of Machine Code representation for X86 backend. This will
Chris Lattner [Fri, 25 Oct 2002 23:00:13 +0000 (23:00 +0000)]
Initial checkin of Machine Code representation for X86 backend.  This will
eventually be merged with the sparc backend.

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

22 years agoInitial checkin of LLVM JIT, codenamed jello. This tool is not built by
Chris Lattner [Fri, 25 Oct 2002 22:58:53 +0000 (22:58 +0000)]
Initial checkin of LLVM JIT, codenamed jello.  This tool is not built by
default, until it becomes stable.  Even then it will only work for for X86
targets.

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

22 years agoInitial checkin of X86 backend.
Chris Lattner [Fri, 25 Oct 2002 22:55:53 +0000 (22:55 +0000)]
Initial checkin of X86 backend.
We can instruction select exactly one instruction 'ret void'.  Wow.

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

22 years agoBuild the X86 target as well
Chris Lattner [Fri, 25 Oct 2002 22:55:05 +0000 (22:55 +0000)]
Build the X86 target as well

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

22 years agoInitial checkin of codegen infrastructure for LLVM-JIT
Chris Lattner [Fri, 25 Oct 2002 22:54:41 +0000 (22:54 +0000)]
Initial checkin of codegen infrastructure for LLVM-JIT

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

22 years agoFix typo
Chris Lattner [Fri, 25 Oct 2002 22:53:56 +0000 (22:53 +0000)]
Fix typo

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

22 years agoUpdate test to use long instead of uint getelementptr subscripts
Chris Lattner [Fri, 25 Oct 2002 22:29:07 +0000 (22:29 +0000)]
Update test to use long instead of uint getelementptr subscripts

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

22 years agoAdded datastructure library to resolve link error.
Vikram S. Adve [Fri, 25 Oct 2002 21:17:34 +0000 (21:17 +0000)]
Added datastructure library to resolve link error.

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

22 years agoPatch submited by Casey to remove obnoxious warnings.
Chris Lattner [Fri, 25 Oct 2002 14:32:42 +0000 (14:32 +0000)]
Patch submited by Casey to remove obnoxious warnings.

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

22 years agoPrune #includes
Chris Lattner [Fri, 25 Oct 2002 02:01:33 +0000 (02:01 +0000)]
Prune #includes

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

22 years agoFix misspelling
Chris Lattner [Fri, 25 Oct 2002 01:43:26 +0000 (01:43 +0000)]
Fix misspelling

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

22 years ago* Remove unneccesary #includes
Chris Lattner [Thu, 24 Oct 2002 22:34:41 +0000 (22:34 +0000)]
* Remove unneccesary #includes
* Fix typeo in the (unused) MachineInstrInfo::isArith method

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

22 years agoUpdated
Nick Hildenbrandt [Thu, 24 Oct 2002 20:54:49 +0000 (20:54 +0000)]
Updated

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

22 years agoFixed it
Nick Hildenbrandt [Wed, 23 Oct 2002 21:48:52 +0000 (21:48 +0000)]
Fixed it

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

22 years agoAdded Burg
Nick Hildenbrandt [Wed, 23 Oct 2002 20:50:22 +0000 (20:50 +0000)]
Added Burg

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

22 years agoMalloc prototyping now works even if the original file had its own prototype for...
Nick Hildenbrandt [Wed, 23 Oct 2002 18:59:40 +0000 (18:59 +0000)]
Malloc prototyping now works even if the original file had its own prototype for malloc

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

22 years agoTell PassManager that this pass does not invalidate the CFG so that dominator
Chris Lattner [Wed, 23 Oct 2002 03:30:47 +0000 (03:30 +0000)]
Tell PassManager that this pass does not invalidate the CFG so that dominator
information and Loop info will not have to be recomputed after this runs.

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

22 years agoMinor cleanups
Chris Lattner [Wed, 23 Oct 2002 01:12:01 +0000 (01:12 +0000)]
Minor cleanups
Make sure to have a pass name

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

22 years agoMinor cleanups
Chris Lattner [Wed, 23 Oct 2002 01:11:51 +0000 (01:11 +0000)]
Minor cleanups

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

22 years ago - Fix a really nasty bug in the bytecode reader that caused it to fail
Chris Lattner [Wed, 23 Oct 2002 00:51:54 +0000 (00:51 +0000)]
  - Fix a really nasty bug in the bytecode reader that caused it to fail
    reading bytecode files with > 255 types in them, but only when optimization
    is enabled.  This was caused by GCC shrinking an enum to a single byte
    instead of a whole word.

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

22 years agoWow, for some reason, when reading bytecode from stdin, we were only reading
Chris Lattner [Tue, 22 Oct 2002 23:55:24 +0000 (23:55 +0000)]
Wow, for some reason, when reading bytecode from stdin, we were only reading
4 bytes at a time.  Change this to read blocks of 4k

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

22 years agoDisable optimization that doesn't apply to C
Chris Lattner [Tue, 22 Oct 2002 23:35:28 +0000 (23:35 +0000)]
Disable optimization that doesn't apply to C

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

22 years agoEnsure definate initialization
Chris Lattner [Tue, 22 Oct 2002 23:34:11 +0000 (23:34 +0000)]
Ensure definate initialization

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

22 years agoFix misspelled variable
Chris Lattner [Tue, 22 Oct 2002 23:28:23 +0000 (23:28 +0000)]
Fix misspelled variable

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

22 years ago - Two minor improvements to the MachineInstr class to reduce footprint and
Chris Lattner [Tue, 22 Oct 2002 23:16:21 +0000 (23:16 +0000)]
  - Two minor improvements to the MachineInstr class to reduce footprint and
    overhead: Merge 3 parallel vectors into 1, change regsUsed hash_set to be a
    bitvector.  Sped up LLC a little less than 10% in a debug build!

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

22 years ago - Make sure to only keep track of mappings that the TD pass may need in the
Chris Lattner [Tue, 22 Oct 2002 16:01:03 +0000 (16:01 +0000)]
  - Make sure to only keep track of mappings that the TD pass may need in the
    future.  This prevents having spurious map entries to nodes that we really
    don't care about.  This allows us to reenable the DeadNodeElim, which was
    disabled.

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

22 years agoThe callee is not correct, and confuses the TD pass. Null it out.
Chris Lattner [Tue, 22 Oct 2002 15:58:46 +0000 (15:58 +0000)]
The callee is not correct, and confuses the TD pass.  Null it out.

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

22 years agoWe need to know the call sites each function hosts
Chris Lattner [Tue, 22 Oct 2002 15:58:23 +0000 (15:58 +0000)]
We need to know the call sites each function hosts

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

22 years agoAllow modification of callee
Chris Lattner [Tue, 22 Oct 2002 15:57:58 +0000 (15:57 +0000)]
Allow modification of callee

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

22 years agoSmall space optimization: Make MachineOperands take 16 bytes instead of
Chris Lattner [Tue, 22 Oct 2002 00:15:13 +0000 (00:15 +0000)]
Small space optimization: Make MachineOperands take 16 bytes instead of
20 on intel or 24 on sparc

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

22 years ago - Rename AnalysisUsage::preservesAll to getPreservesAll & preservesCFG to
Chris Lattner [Mon, 21 Oct 2002 20:00:28 +0000 (20:00 +0000)]
  - Rename AnalysisUsage::preservesAll to getPreservesAll & preservesCFG to
    setPreservesCFG to be less confusing.

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

22 years agoRename Analysis Usage methods
Chris Lattner [Mon, 21 Oct 2002 19:57:59 +0000 (19:57 +0000)]
Rename Analysis Usage methods

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

22 years agoDelete unused arguments to DSGraph::cloneInto method
Chris Lattner [Mon, 21 Oct 2002 19:50:29 +0000 (19:50 +0000)]
Delete unused arguments to DSGraph::cloneInto method

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

22 years ago - Add "ResolvingCaller" to the CallSite record. This keeps track of which
Chris Lattner [Mon, 21 Oct 2002 19:47:18 +0000 (19:47 +0000)]
  - Add "ResolvingCaller" to the CallSite record.  This keeps track of which
    function was finally able to resolve the function call.  Adding this allows
    the TD pass to actually work right!
  - Temporarily disable dead node pruning.  This will be reenabled soon.

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

22 years agoAdd another copy ctor form
Chris Lattner [Mon, 21 Oct 2002 15:32:34 +0000 (15:32 +0000)]
Add another copy ctor form

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

22 years agoAs it turns out, we don't need a fully generic mapping copy ctor, we just need
Chris Lattner [Mon, 21 Oct 2002 15:04:18 +0000 (15:04 +0000)]
As it turns out, we don't need a fully generic mapping copy ctor, we just need
something that maps through a std::map.  Since this simplified the client and
implementation code, do so now.

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

22 years agoDon't create a new node for every reference to a global. This caused a huge
Chris Lattner [Mon, 21 Oct 2002 13:51:30 +0000 (13:51 +0000)]
Don't create a new node for every reference to a global.  This caused a huge
node explosion that doesn't help anything at all.  In previous versions of
the representation this DID help, but not anymore.

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

22 years agoFix a confusing bug that caused return value and callee pointers to not
Chris Lattner [Mon, 21 Oct 2002 13:47:57 +0000 (13:47 +0000)]
Fix a confusing bug that caused return value and callee pointers to not
be printed!

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

22 years agoMake sure to initialize isArray member
Chris Lattner [Mon, 21 Oct 2002 13:38:07 +0000 (13:38 +0000)]
Make sure to initialize isArray member

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

22 years agoRemove some unneccesary 'using' directives
Chris Lattner [Mon, 21 Oct 2002 13:31:48 +0000 (13:31 +0000)]
Remove some unneccesary 'using' directives

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

22 years agoRemove a 'using' directives from a header file. Using directives cause
Chris Lattner [Mon, 21 Oct 2002 13:24:50 +0000 (13:24 +0000)]
Remove a 'using' directives from a header file.  Using directives cause
global changes, so aren't good for headers.

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

22 years agoAdd a missing std:: qualifier
Chris Lattner [Mon, 21 Oct 2002 13:23:42 +0000 (13:23 +0000)]
Add a missing std:: qualifier

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

22 years agoAdd a link to C++ in a nutshell book
Chris Lattner [Mon, 21 Oct 2002 02:38:02 +0000 (02:38 +0000)]
Add a link to C++ in a nutshell book

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

22 years agoFix bug with prior checkin
Chris Lattner [Mon, 21 Oct 2002 02:18:55 +0000 (02:18 +0000)]
Fix bug with prior checkin

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

22 years agoTwo callsites are equivalent even if they are from two completely different
Chris Lattner [Mon, 21 Oct 2002 02:09:03 +0000 (02:09 +0000)]
Two callsites are equivalent even if they are from two completely different
call instructions

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

22 years ago - Make DSCallSite not inherit from std::vector. Renamed methods slightly.
Chris Lattner [Mon, 21 Oct 2002 02:08:03 +0000 (02:08 +0000)]
  - Make DSCallSite not inherit from std::vector.  Renamed methods slightly.
    Make copy ctor have two versions to avoid dealing with conditional template
    argument.  DSCallSite ctor now takes all arguments instead of taking one
    and being populated later.

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

22 years agoAvoid extra copy
Chris Lattner [Sun, 20 Oct 2002 22:12:06 +0000 (22:12 +0000)]
Avoid extra copy

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

22 years agoSimplify code a bit, add comment flyer
Chris Lattner [Sun, 20 Oct 2002 22:11:44 +0000 (22:11 +0000)]
Simplify code a bit, add comment flyer

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

22 years agoSplit some long lines
Chris Lattner [Sun, 20 Oct 2002 22:11:17 +0000 (22:11 +0000)]
Split some long lines

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

22 years agoWarn when we are linking an executable without symbols.
Vikram S. Adve [Sun, 20 Oct 2002 21:45:49 +0000 (21:45 +0000)]
Warn when we are linking an executable without symbols.

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

22 years agoRemove spurious caller pointer in DSCallSite.
Vikram S. Adve [Sun, 20 Oct 2002 21:41:02 +0000 (21:41 +0000)]
Remove spurious caller pointer in DSCallSite.
Also add functions to access pointer argument nodes cleanly.

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

22 years agoThis function can be static
Chris Lattner [Sun, 20 Oct 2002 20:39:31 +0000 (20:39 +0000)]
This function can be static

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

22 years agoFix previous checkin :(
Chris Lattner [Sun, 20 Oct 2002 20:39:17 +0000 (20:39 +0000)]
Fix previous checkin :(

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

22 years agoAvoid extra callSite copy
Chris Lattner [Sun, 20 Oct 2002 20:32:13 +0000 (20:32 +0000)]
Avoid extra callSite copy

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

22 years agoPrint the array flag
Chris Lattner [Sun, 20 Oct 2002 20:29:10 +0000 (20:29 +0000)]
Print the array flag

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

22 years agoAdd isArray flag
Chris Lattner [Sun, 20 Oct 2002 20:28:35 +0000 (20:28 +0000)]
Add isArray flag

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