oota-llvm.git
21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 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

21 years agoAdded a first-class representation for each call site that can be
Vikram S. Adve [Sun, 20 Oct 2002 18:08:55 +0000 (18:08 +0000)]
Added a first-class representation for each call site that can be
used in the DS graphs in DSGraph.h.  With that, the special-purpose
class BUDataStructure::CallSite is no longer needed here.

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

21 years agoAdded a first-class representation for each call site that can be
Vikram S. Adve [Sun, 20 Oct 2002 18:07:37 +0000 (18:07 +0000)]
Added a first-class representation for each call site that can be
used in the DS graphs.  Essentially, what was vector<DSNodeHandle>
before is now a DSCallSite with the same vector, plus pointers to the
CallInst and the caller Function.  The special-purpose class
BUDataStructure::CallSite is no longer needed.

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

21 years agoAdded a first-class representation for each call site that can be used
Vikram S. Adve [Sun, 20 Oct 2002 18:04:43 +0000 (18:04 +0000)]
Added a first-class representation for each call site that can be used
in the DS graphs.

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

21 years agoConvert typerec to be a structure instead of a pair
Chris Lattner [Fri, 18 Oct 2002 18:22:46 +0000 (18:22 +0000)]
Convert typerec to be a structure instead of a pair

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

21 years agoDon't emit braces around something without outgoing edges
Chris Lattner [Fri, 18 Oct 2002 14:55:44 +0000 (14:55 +0000)]
Don't emit braces around something without outgoing edges

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

21 years agoPrint Mod/ref info
Chris Lattner [Thu, 17 Oct 2002 22:13:28 +0000 (22:13 +0000)]
Print Mod/ref info

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

21 years agoCalculate mod/ref info
Chris Lattner [Thu, 17 Oct 2002 22:13:19 +0000 (22:13 +0000)]
Calculate mod/ref info

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

21 years agoAdd interface for mod/ref info to be captures by dsgraphs
Chris Lattner [Thu, 17 Oct 2002 21:03:49 +0000 (21:03 +0000)]
Add interface for mod/ref info to be captures by dsgraphs

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

21 years agoRemove more obsolete code
Chris Lattner [Thu, 17 Oct 2002 20:53:12 +0000 (20:53 +0000)]
Remove more obsolete code

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

21 years ago * Make the DSGraph cloner automatically merge global nodes
Chris Lattner [Thu, 17 Oct 2002 20:09:52 +0000 (20:09 +0000)]
 * Make the DSGraph cloner automatically merge global nodes
 * BUClosure doesn't have to worry about global nodes
 * TDClosure now works with global nodes
 * Reenable DNE on TD pass, now that globals work right

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

21 years ago* Apparently string::find doesn't work right on our sun boxes. Work around this.
Chris Lattner [Thu, 17 Oct 2002 16:22:08 +0000 (16:22 +0000)]
* Apparently string::find doesn't work right on our sun boxes.  Work around this.

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

21 years agoRemove obsolete code
Chris Lattner [Thu, 17 Oct 2002 04:58:10 +0000 (04:58 +0000)]
Remove obsolete code

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

21 years agoEnable incompleteness marking
Chris Lattner [Thu, 17 Oct 2002 04:57:28 +0000 (04:57 +0000)]
Enable incompleteness marking

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

21 years agoReally disable pool allocator
Chris Lattner [Thu, 17 Oct 2002 04:57:09 +0000 (04:57 +0000)]
Really disable pool allocator

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

21 years ago * First try at implementing TD pass this does not merge global nodes yet,
Chris Lattner [Thu, 17 Oct 2002 04:26:54 +0000 (04:26 +0000)]
  * First try at implementing TD pass this does not merge global nodes yet,
    among other things.
  * Significant rewrite of TD pass to avoid potentially N^2 algorithms if
    possible.  It is still not complete, but at least it's checked in now.

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

21 years agoReenable printing of TD analysis
Chris Lattner [Thu, 17 Oct 2002 04:24:30 +0000 (04:24 +0000)]
Reenable printing of TD analysis

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

21 years ago * Add data structures and code to track the call sites for each function
Chris Lattner [Thu, 17 Oct 2002 04:24:08 +0000 (04:24 +0000)]
  * Add data structures and code to track the call sites for each function

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

21 years ago * Add data structures to BU pass to keep track of call sites for functions
Chris Lattner [Thu, 17 Oct 2002 04:23:05 +0000 (04:23 +0000)]
  * Add data structures to BU pass to keep track of call sites for functions
  * Reenable the TD analysis

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

21 years ago * Remove a lot of obsolete #if 0'd code
Chris Lattner [Thu, 17 Oct 2002 04:22:16 +0000 (04:22 +0000)]
 * Remove a lot of obsolete #if 0'd code
 * Add a simple getNodeForValue method to access the ValueMap.

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

21 years agoUse the forward declaration for GraphTraits instead of #including
Chris Lattner [Thu, 17 Oct 2002 01:36:08 +0000 (01:36 +0000)]
Use the forward declaration for GraphTraits instead of #including
the header

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

21 years agoCleanup data structure graph printer, eliminate hard coded printing in
Chris Lattner [Thu, 17 Oct 2002 01:02:46 +0000 (01:02 +0000)]
Cleanup data structure graph printer, eliminate hard coded printing in
favor of generic printer.

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

21 years agoBe const correct. Handle both DSGraph* and const DSGraph*'s
Chris Lattner [Thu, 17 Oct 2002 01:01:06 +0000 (01:01 +0000)]
Be const correct.  Handle both DSGraph* and const DSGraph*'s

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

21 years agoBreak up the GraphWriter into smaller chunks to be used in different ways
Chris Lattner [Thu, 17 Oct 2002 00:59:59 +0000 (00:59 +0000)]
Break up the GraphWriter into smaller chunks to be used in different ways

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

21 years agoAs wierd as it feels to type it, const void* is more generic than void*
Chris Lattner [Thu, 17 Oct 2002 00:16:39 +0000 (00:16 +0000)]
As wierd as it feels to type it, const void* is more generic than void*

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

21 years agoAdded partial specialization of GraphTraits for the DominatorTree class.
Joel Stanley [Wed, 16 Oct 2002 23:26:00 +0000 (23:26 +0000)]
Added partial specialization of GraphTraits for the DominatorTree class.

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

21 years agochanges
Nick Hildenbrandt [Wed, 16 Oct 2002 22:12:31 +0000 (22:12 +0000)]
changes

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

21 years agoMake sure to print out the call nodes as well
Chris Lattner [Wed, 16 Oct 2002 20:16:16 +0000 (20:16 +0000)]
Make sure to print out the call nodes as well

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

21 years agoAllow simple nodes to have outgoing edges
Chris Lattner [Wed, 16 Oct 2002 20:15:38 +0000 (20:15 +0000)]
Allow simple nodes to have outgoing edges

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

21 years agoFix bug: CBackend/2002-10-16-External.ll
Chris Lattner [Wed, 16 Oct 2002 20:08:47 +0000 (20:08 +0000)]
Fix bug: CBackend/2002-10-16-External.ll

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

21 years agoNew testcase
Chris Lattner [Wed, 16 Oct 2002 20:08:19 +0000 (20:08 +0000)]
New testcase

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

21 years ago * Print the "return" node in the graphs
Chris Lattner [Wed, 16 Oct 2002 02:04:36 +0000 (02:04 +0000)]
 * Print the "return" node in the graphs

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

21 years ago * Factor printing code again, add emitSimpleNode method
Chris Lattner [Wed, 16 Oct 2002 02:03:18 +0000 (02:03 +0000)]
 * Factor printing code again, add emitSimpleNode method

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

21 years ago * Add new DOTGraphTraits::addCustomGraphFeatures method
Chris Lattner [Wed, 16 Oct 2002 01:44:59 +0000 (01:44 +0000)]
 * Add new DOTGraphTraits::addCustomGraphFeatures method

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

21 years agoThe second element of the iterator is really an offset, not a link
Chris Lattner [Wed, 16 Oct 2002 01:43:11 +0000 (01:43 +0000)]
The second element of the iterator is really an offset, not a link

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

21 years agoSpecify the graph name
Chris Lattner [Wed, 16 Oct 2002 01:34:28 +0000 (01:34 +0000)]
Specify the graph name

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

21 years ago * Significantly refactor GraphWriter into a class.
Chris Lattner [Wed, 16 Oct 2002 01:34:18 +0000 (01:34 +0000)]
 * Significantly refactor GraphWriter into a class.

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

21 years ago - DSGraph Printing Improvements:
Chris Lattner [Wed, 16 Oct 2002 01:18:27 +0000 (01:18 +0000)]
  - DSGraph Printing Improvements:
     * Print edge source labels again
     * Override node shape to be Mrecord again, instead of just record.

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

21 years ago - Generic graph printing infrastructure changes:
Chris Lattner [Wed, 16 Oct 2002 01:18:14 +0000 (01:18 +0000)]
  - Generic graph printing infrastructure changes:
     * Only print outgoing edges from a cell if the destination isn't null.
       This is important for DSGraphs, which have sources with no edges.
     * Allow Node attributes to override shape of the node

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

21 years agoAllow direct access to mergemap for printing
Chris Lattner [Wed, 16 Oct 2002 01:17:16 +0000 (01:17 +0000)]
Allow direct access to mergemap for printing

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

21 years agoFix bug: test/Regression/CBackend/2002-10-15-OpaqueTypeProblem.ll
Chris Lattner [Wed, 16 Oct 2002 00:08:22 +0000 (00:08 +0000)]
Fix bug: test/Regression/CBackend/2002-10-15-OpaqueTypeProblem.ll

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

21 years agoNew testcase
Chris Lattner [Wed, 16 Oct 2002 00:08:08 +0000 (00:08 +0000)]
New testcase

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

21 years ago - Fix bug: Assembler/2002-10-15-NameClash.ll
Chris Lattner [Tue, 15 Oct 2002 21:41:14 +0000 (21:41 +0000)]
  - Fix bug: Assembler/2002-10-15-NameClash.ll
  - Clean up code a bit, s/Method/Function/

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

21 years agoClean up testcases
Chris Lattner [Tue, 15 Oct 2002 21:39:49 +0000 (21:39 +0000)]
Clean up testcases

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

21 years ago - Eliminate SymbolTable::ParentSymTab, ST::localLookup, and
Chris Lattner [Tue, 15 Oct 2002 21:26:29 +0000 (21:26 +0000)]
  - Eliminate SymbolTable::ParentSymTab, ST::localLookup, and
    Function::ParentSymTab.  These aren't needed at all.

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

21 years agoCleanup test
Chris Lattner [Tue, 15 Oct 2002 21:21:42 +0000 (21:21 +0000)]
Cleanup test

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

21 years agoFix typo
Chris Lattner [Tue, 15 Oct 2002 21:20:18 +0000 (21:20 +0000)]
Fix typo

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

21 years agoNew testcase
Chris Lattner [Tue, 15 Oct 2002 21:18:03 +0000 (21:18 +0000)]
New testcase

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

21 years agoCleanup testcase
Chris Lattner [Tue, 15 Oct 2002 21:14:24 +0000 (21:14 +0000)]
Cleanup testcase

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

21 years agoFix testcase
Chris Lattner [Tue, 15 Oct 2002 21:10:53 +0000 (21:10 +0000)]
Fix testcase

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

21 years ago - Fix LLI so that it simulates the endianness of the target machine
Chris Lattner [Tue, 15 Oct 2002 20:34:05 +0000 (20:34 +0000)]
  - Fix LLI so that it simulates the endianness of the target machine
    correctly, despite the fact that the host machine might not be the same.

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

21 years agoMake sure to escape \'s when they are output
Chris Lattner [Tue, 15 Oct 2002 19:56:24 +0000 (19:56 +0000)]
Make sure to escape \'s when they are output

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

21 years agoRemove outdated line which of course cvs merging never detects...
Vikram S. Adve [Tue, 15 Oct 2002 01:59:45 +0000 (01:59 +0000)]
Remove outdated line which of course cvs merging never detects...

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