oota-llvm.git
23 years agoMinor changes.
Vikram S. Adve [Tue, 18 Sep 2001 13:10:45 +0000 (13:10 +0000)]
Minor changes.

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

23 years agoFolded inssel*.ll into select.ll.
Vikram S. Adve [Tue, 18 Sep 2001 13:10:26 +0000 (13:10 +0000)]
Folded inssel*.ll into select.ll.

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

23 years agoRenamed files to match the primary classes they provide.
Vikram S. Adve [Tue, 18 Sep 2001 13:10:05 +0000 (13:10 +0000)]
Renamed files to match the primary classes they provide.

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

23 years agoRenamed a header file.
Vikram S. Adve [Tue, 18 Sep 2001 13:04:53 +0000 (13:04 +0000)]
Renamed a header file.

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

23 years agoMake class TargetMachine the common interface to all target-dependent
Vikram S. Adve [Tue, 18 Sep 2001 13:04:24 +0000 (13:04 +0000)]
Make class TargetMachine the common interface to all target-dependent
information, including instr, sched, and reg information.
This allows us to allocate them all in one place and use them much
more uniformly.

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

23 years agoAllow pointer constants as well as integer and booleans.
Vikram S. Adve [Tue, 18 Sep 2001 13:03:13 +0000 (13:03 +0000)]
Allow pointer constants as well as integer and booleans.
Skip over list nodes in ForwardOperand.

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

23 years agoMake class TargetMachine the common interface to all target-dependent
Vikram S. Adve [Tue, 18 Sep 2001 13:01:29 +0000 (13:01 +0000)]
Make class TargetMachine the common interface to all target-dependent
information, including instr, sched, and reg information.
Rename files to match the primary classes they provide.
Commented out call to register allocation until more tests run correctly.

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

23 years agoRenamed files to match the main classes they provide.
Vikram S. Adve [Tue, 18 Sep 2001 12:58:33 +0000 (12:58 +0000)]
Renamed files to match the main classes they provide.
Some other minor changes.

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

23 years agoCast unsigned to int! It was causing a nice little bug.
Vikram S. Adve [Tue, 18 Sep 2001 12:57:39 +0000 (12:57 +0000)]
Cast unsigned to int!  It was causing a nice little bug.

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

23 years agoMinor changes.
Vikram S. Adve [Tue, 18 Sep 2001 12:56:28 +0000 (12:56 +0000)]
Minor changes.

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

23 years agoDon't add instructions to subtree for Phi or Call.
Vikram S. Adve [Tue, 18 Sep 2001 12:54:27 +0000 (12:54 +0000)]
Don't add instructions to subtree for Phi or Call.
Free tree nodes when done.
Avoid obscuring code with for_each and bind_obj :-)

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

23 years agoFormat file header.
Vikram S. Adve [Tue, 18 Sep 2001 12:52:03 +0000 (12:52 +0000)]
Format file header.

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

23 years agoAdd new entry/exit edges when removing delay slot nodes from the graph.
Vikram S. Adve [Tue, 18 Sep 2001 12:51:38 +0000 (12:51 +0000)]
Add new entry/exit edges when removing delay slot nodes from the graph.
Renamed some header files.

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

23 years agoMoved erase edge functions to class SchedGraph.
Vikram S. Adve [Tue, 18 Sep 2001 12:50:40 +0000 (12:50 +0000)]
Moved erase edge functions to class SchedGraph.
Add new dummy edges when deleting existing edges.

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

23 years agoRenamed some header files.
Vikram S. Adve [Tue, 18 Sep 2001 12:49:39 +0000 (12:49 +0000)]
Renamed some header files.

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

23 years agoMoved erase-edge functions from SchedGraphNode to SchedGraph.
Vikram S. Adve [Tue, 18 Sep 2001 12:49:26 +0000 (12:49 +0000)]
Moved erase-edge functions from SchedGraphNode to SchedGraph.
Renamed some header files.

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

23 years agoMoved DebugValue to Value.cpp.
Vikram S. Adve [Tue, 18 Sep 2001 12:48:16 +0000 (12:48 +0000)]
Moved DebugValue to Value.cpp.

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

23 years agoAdded debugging support.
Vikram S. Adve [Tue, 18 Sep 2001 12:44:41 +0000 (12:44 +0000)]
Added debugging support.

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

23 years agoMoved debugging interfaces for class Value to Value.h.
Vikram S. Adve [Tue, 18 Sep 2001 12:43:15 +0000 (12:43 +0000)]
Moved debugging interfaces for class Value to Value.h.

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

23 years agoMinor fixes: renamed target machine files; fold sched info into TargetMachine.
Vikram S. Adve [Tue, 18 Sep 2001 12:41:43 +0000 (12:41 +0000)]
Minor fixes: renamed target machine files; fold sched info into TargetMachine.

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

23 years agoMake class TargetMachine the common interface to all target-dependent
Vikram S. Adve [Tue, 18 Sep 2001 12:38:31 +0000 (12:38 +0000)]
Make class TargetMachine the common interface to all target-dependent
information, including instr, sched, and reg information.
Rename files to match the primary classes they provide.

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

23 years agoAdded debugging support.
Vikram S. Adve [Tue, 18 Sep 2001 12:23:40 +0000 (12:23 +0000)]
Added debugging support.

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

23 years agoFix testcases to handle new syntax for construction and initializeation
Chris Lattner [Tue, 18 Sep 2001 04:38:50 +0000 (04:38 +0000)]
Fix testcases to handle new syntax for construction and initializeation
Test constants

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

23 years agoRemove the unsized array constraint
Chris Lattner [Tue, 18 Sep 2001 04:38:32 +0000 (04:38 +0000)]
Remove the unsized array constraint

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

23 years agoAdd support for global constants, and for initializers for constants
Chris Lattner [Tue, 18 Sep 2001 04:01:05 +0000 (04:01 +0000)]
Add support for global constants, and for initializers for constants

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

23 years agoAdd support for global constants, and for initializers for constants
Chris Lattner [Tue, 18 Sep 2001 04:00:54 +0000 (04:00 +0000)]
Add support for global constants, and for initializers for constants
Clean up parser somewhat by factoring out freeing of ID's into setname function

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

23 years agoadded a method to get reg num after register allocation
Ruchira Sasanka [Sat, 15 Sep 2001 21:11:48 +0000 (21:11 +0000)]
added a method to get reg num after register allocation

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

23 years agomodified machine code printing
Ruchira Sasanka [Sat, 15 Sep 2001 21:11:11 +0000 (21:11 +0000)]
modified machine code printing

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

23 years ago-modified machine operand class - took regNum out of union to set regNum after
Ruchira Sasanka [Sat, 15 Sep 2001 20:16:41 +0000 (20:16 +0000)]
-modified machine operand class - took regNum out of union to set regNum after
retister allocation.

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

23 years agomodified printing of debug messages
Ruchira Sasanka [Sat, 15 Sep 2001 19:11:31 +0000 (19:11 +0000)]
modified printing of debug messages

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

23 years ago--added methods for printing
Ruchira Sasanka [Sat, 15 Sep 2001 19:08:41 +0000 (19:08 +0000)]
--added methods for printing

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

23 years agoadded setRegForValue to MachineOperand class
Ruchira Sasanka [Sat, 15 Sep 2001 19:07:45 +0000 (19:07 +0000)]
added setRegForValue to MachineOperand class

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

23 years agofixed printing messages
Ruchira Sasanka [Sat, 15 Sep 2001 19:06:58 +0000 (19:06 +0000)]
fixed printing messages

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

23 years ago-- debug messages dissabled
Ruchira Sasanka [Sat, 15 Sep 2001 16:54:40 +0000 (16:54 +0000)]
-- debug messages dissabled

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

23 years agoadded reg alloc support
Ruchira Sasanka [Sat, 15 Sep 2001 00:34:31 +0000 (00:34 +0000)]
added reg alloc support

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

23 years ago--reg alloc code added
Ruchira Sasanka [Sat, 15 Sep 2001 00:33:26 +0000 (00:33 +0000)]
--reg alloc code added

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

23 years ago-reg alloc code
Ruchira Sasanka [Sat, 15 Sep 2001 00:31:44 +0000 (00:31 +0000)]
-reg alloc code

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

23 years agoadded register allocation code
Ruchira Sasanka [Sat, 15 Sep 2001 00:30:44 +0000 (00:30 +0000)]
added register allocation code

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

23 years agoAdded regalloc
Ruchira Sasanka [Sat, 15 Sep 2001 00:28:37 +0000 (00:28 +0000)]
Added regalloc

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

23 years agoOops, accidentally checked my debugging makefile
Chris Lattner [Fri, 14 Sep 2001 23:21:08 +0000 (23:21 +0000)]
Oops, accidentally checked my debugging makefile

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

23 years agoFix a bug with not removing method level types after compilation
Chris Lattner [Fri, 14 Sep 2001 22:03:42 +0000 (22:03 +0000)]
Fix a bug with not removing method level types after compilation

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

23 years agoadded RegAlloc Directory to DIRS
Ruchira Sasanka [Fri, 14 Sep 2001 21:28:17 +0000 (21:28 +0000)]
added RegAlloc Directory to DIRS

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

23 years ago*** empty log message ***
Ruchira Sasanka [Fri, 14 Sep 2001 21:18:34 +0000 (21:18 +0000)]
*** empty log message ***

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

23 years ago*** empty log message ***
Ruchira Sasanka [Fri, 14 Sep 2001 20:31:39 +0000 (20:31 +0000)]
*** empty log message ***

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

23 years agoRemove invalid testcase
Chris Lattner [Fri, 14 Sep 2001 20:30:58 +0000 (20:30 +0000)]
Remove invalid testcase

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

23 years agoRemove invalid testcase. Unneccesary anyways
Chris Lattner [Fri, 14 Sep 2001 20:28:57 +0000 (20:28 +0000)]
Remove invalid testcase.  Unneccesary anyways

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

23 years agoAdd new test cases
Chris Lattner [Fri, 14 Sep 2001 20:03:04 +0000 (20:03 +0000)]
Add new test cases

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

23 years agoAdd support for loading and storing pointers...
Chris Lattner [Fri, 14 Sep 2001 20:00:02 +0000 (20:00 +0000)]
Add support for loading and storing pointers...

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

23 years agoFix a bug that caused a crash if a setcc had zero uses.
Chris Lattner [Fri, 14 Sep 2001 18:29:28 +0000 (18:29 +0000)]
Fix a bug that caused a crash if a setcc had zero uses.

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

23 years agoAdd a forward decl, oops.
Chris Lattner [Fri, 14 Sep 2001 17:55:51 +0000 (17:55 +0000)]
Add a forward decl, oops.

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

23 years agoChris seems fond of #include <vector>. Fix these. Also convert use list in
Chris Lattner [Fri, 14 Sep 2001 16:56:32 +0000 (16:56 +0000)]
Chris seems fond of #include <vector>.  Fix these. Also convert use list in
Value to a vector instead of a list.

Move SchedGraph.h & SchedPriorities.h into lib/CodeGen/InstrScheduling

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

23 years agoAdd a comment
Chris Lattner [Fri, 14 Sep 2001 16:08:12 +0000 (16:08 +0000)]
Add a comment

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

23 years agoMinor reformatting, & protection fixes
Chris Lattner [Fri, 14 Sep 2001 16:08:06 +0000 (16:08 +0000)]
Minor reformatting, & protection fixes

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

23 years agoBreak scheduling infrastructure out of TargetMachine.cpp into SchedInfo.cpp
Chris Lattner [Fri, 14 Sep 2001 15:43:58 +0000 (15:43 +0000)]
Break scheduling infrastructure out of TargetMachine.cpp into SchedInfo.cpp

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

23 years agoSplit Register specific stuff out from TargetMachine.h to RegInfo.h
Chris Lattner [Fri, 14 Sep 2001 06:20:10 +0000 (06:20 +0000)]
Split Register specific stuff out from TargetMachine.h to RegInfo.h
Get rid of unneccesary #includes from TargetMachine.h

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

23 years agoSplit Target/Machine.h into three files:
Chris Lattner [Fri, 14 Sep 2001 06:08:03 +0000 (06:08 +0000)]
Split Target/Machine.h into three files:
* Machine.h
* InstInfo.h
* SchedInfo.h

TODO: Split out reg info stuff

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

23 years agoMake a new llvm/Target #include directory.
Chris Lattner [Fri, 14 Sep 2001 05:34:53 +0000 (05:34 +0000)]
Make a new llvm/Target #include directory.
Move files from lib/CodeGen/TargetMachine to lib/Target
Move TargetData.h and TargetMachine.h to Target/{Data.h|Machine.h}
Prepare to split TargetMachine.h into several smaller files

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

23 years agoCheckin changes to:
Chris Lattner [Fri, 14 Sep 2001 04:32:55 +0000 (04:32 +0000)]
Checkin changes to:
1. Clean up the TargetMachine structure.  No more wierd pointers that have to
   be cast around and taken care of by the target.
2. Instruction Scheduling now takes the schedinfo as an argument.  The same
   should be done with the instinfo, it just isn't now.

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

23 years agoCheckin changes to:
Chris Lattner [Fri, 14 Sep 2001 04:32:38 +0000 (04:32 +0000)]
Checkin changes to:
1. Clean up the TargetMachine structure.  No more wierd pointers that have to
   be cast around and taken care of by the target.
2. Instruction Scheduling now takes the schedinfo as an argument.  The same
   should be done with the instinfo, it just isn't now.
3. Sparc.h is now just a factory method.  Eventually this file will dissapear,
   but probably not until we have more than one backend.  :)

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

23 years agoMove files to new sparc directory
Chris Lattner [Fri, 14 Sep 2001 03:56:45 +0000 (03:56 +0000)]
Move files to new sparc directory

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

23 years agoMove the sparc target to a new lib/Target directory
Chris Lattner [Fri, 14 Sep 2001 03:55:11 +0000 (03:55 +0000)]
Move the sparc target to a new lib/Target directory

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

23 years agoMove files.
Chris Lattner [Fri, 14 Sep 2001 03:47:57 +0000 (03:47 +0000)]
Move files.

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

23 years agoMove the contents of the CodeGen/TargetMachine/Sparc directory to Target/Sparc
Chris Lattner [Fri, 14 Sep 2001 03:46:34 +0000 (03:46 +0000)]
Move the contents of the CodeGen/TargetMachine/Sparc directory to Target/Sparc

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

23 years agoThis checkin represents some cleanup of the backend, implementing the following things:
Chris Lattner [Fri, 14 Sep 2001 03:37:52 +0000 (03:37 +0000)]
This checkin represents some cleanup of the backend, implementing the following things:

1. The TargetMachine structure is free to decide the process a particular target uses to generate code.
2. All of the gooee details of the sparc backend are now localized in the lib/CodeGen/TargetMAchine/Sparc directory.  The Sparc.h file that is globally visible is just a stub.
3. The Sparc.h file that esxists now will dissapear entirely someday when we have multiple backends chosen by a factory of some sort.

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

23 years agoThis checkin represents some cleanup of the backend, implementing the following things:
Chris Lattner [Fri, 14 Sep 2001 03:37:22 +0000 (03:37 +0000)]
This checkin represents some cleanup of the backend, implementing the following things:

1. The TargetMachine structure is free to decide the process a particular target uses to generate code.
2. All of the gooee details of the sparc backend are now localized in the lib/CodeGen/TargetMAchine/Sparc directory.  The Sparc.h file that is globally visible is just a stub.
3. The Sparc.h file that esxists now will dissapear entirely someday when we have multiple backends chosen by a factory of some sort.

NOTE! The BBLiveVar.cpp file dependant on the Sparc backend, and is therefore not generic/portale to other backends.  This needs to be fixed.

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

23 years agoUpdates to use local header files.
Chris Lattner [Fri, 14 Sep 2001 03:33:32 +0000 (03:33 +0000)]
Updates to use local header files.

Note that this reverted changes that Ruchira commited that broke the build and
are unmaintainable without other checkins.

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

23 years agoExport the instruction forest support from the analysis library
Chris Lattner [Fri, 14 Sep 2001 01:42:42 +0000 (01:42 +0000)]
Export the instruction forest support from the analysis library

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

23 years agoInitial instruction tree support for the analysis library
Chris Lattner [Fri, 14 Sep 2001 01:42:26 +0000 (01:42 +0000)]
Initial instruction tree support for the analysis library

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

23 years agoGeneric k-way tree support
Chris Lattner [Fri, 14 Sep 2001 01:42:01 +0000 (01:42 +0000)]
Generic k-way tree support

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

23 years agoMore cleanups, preparing to revamp InstrForest to, among other things,
Chris Lattner [Wed, 12 Sep 2001 16:34:03 +0000 (16:34 +0000)]
More cleanups, preparing to revamp InstrForest to, among other things,
not leak all its allocated memory.

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

23 years ago* Clean up InstrForest
Chris Lattner [Wed, 12 Sep 2001 01:28:49 +0000 (01:28 +0000)]
* Clean up InstrForest
* Fix ins sel problem, test case:
void "foo" (int *%x, int *%y)

begin
        seteq int *%x, %y
        ret void
end

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

23 years agoEliminate 'BasicNode' from InstrForest.
Chris Lattner [Tue, 11 Sep 2001 23:52:11 +0000 (23:52 +0000)]
Eliminate 'BasicNode' from InstrForest.

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

23 years agoEliminate MainTreeNode function
Chris Lattner [Tue, 11 Sep 2001 23:22:43 +0000 (23:22 +0000)]
Eliminate MainTreeNode function

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

23 years agoRemove irrelevant gross K&R Cisms
Chris Lattner [Tue, 11 Sep 2001 23:13:38 +0000 (23:13 +0000)]
Remove irrelevant gross K&R Cisms

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

23 years agoHandle subtract in expression classifier
Chris Lattner [Tue, 11 Sep 2001 04:27:34 +0000 (04:27 +0000)]
Handle subtract in expression classifier

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

23 years agoDisable destructors on constants
Chris Lattner [Tue, 11 Sep 2001 04:27:19 +0000 (04:27 +0000)]
Disable destructors on constants

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

23 years agoUse the correct style casts
Chris Lattner [Mon, 10 Sep 2001 20:12:04 +0000 (20:12 +0000)]
Use the correct style casts

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

23 years agoUse correct style casts
Chris Lattner [Mon, 10 Sep 2001 20:11:44 +0000 (20:11 +0000)]
Use correct style casts

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

23 years agoUse correct style casts
Chris Lattner [Mon, 10 Sep 2001 20:11:28 +0000 (20:11 +0000)]
Use correct style casts
Types are not all constant now

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

23 years agoUse type checking predicates
Chris Lattner [Mon, 10 Sep 2001 20:10:26 +0000 (20:10 +0000)]
Use type checking predicates

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

23 years agoUse correct casts
Chris Lattner [Mon, 10 Sep 2001 20:10:02 +0000 (20:10 +0000)]
Use correct casts

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

23 years agoUse predicate for Value type test
Chris Lattner [Mon, 10 Sep 2001 20:09:50 +0000 (20:09 +0000)]
Use predicate for Value type test
Use builtin casts

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

23 years agoUse predicate for Value type test
Chris Lattner [Mon, 10 Sep 2001 20:09:28 +0000 (20:09 +0000)]
Use predicate for Value type test

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

23 years agoModuleTyID doesn't exist anyymore
Chris Lattner [Mon, 10 Sep 2001 20:09:08 +0000 (20:09 +0000)]
ModuleTyID doesn't exist anyymore
Use correct cast

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

23 years agogetMethodType is now just getType
Chris Lattner [Mon, 10 Sep 2001 20:08:52 +0000 (20:08 +0000)]
getMethodType is now just getType

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

23 years agoAdd support for printing globals
Chris Lattner [Mon, 10 Sep 2001 20:08:19 +0000 (20:08 +0000)]
Add support for printing globals

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

23 years agoUpdate to use correct type cast
Chris Lattner [Mon, 10 Sep 2001 20:08:08 +0000 (20:08 +0000)]
Update to use correct type cast

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

23 years agoAdd support for global variables
Chris Lattner [Mon, 10 Sep 2001 20:07:57 +0000 (20:07 +0000)]
Add support for global variables

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

23 years ago* Add capability of printing out a global variable
Chris Lattner [Mon, 10 Sep 2001 20:06:47 +0000 (20:06 +0000)]
* Add capability of printing out a global variable

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

23 years ago* Method::getType should return type cast as MethodType, eliminate getMethodType
Chris Lattner [Mon, 10 Sep 2001 20:06:17 +0000 (20:06 +0000)]
* Method::getType should return type cast as MethodType, eliminate getMethodType
* Make Type::*Ty not be const types
* Add a new Type.def file to provide info about types
* Add a full complement of casting methods to the Type class

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

23 years agoUpdate assertion to allow extra case
Chris Lattner [Mon, 10 Sep 2001 20:02:12 +0000 (20:02 +0000)]
Update assertion to allow extra case

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

23 years agoFix a bug I introduced (assertion failed: Unknown operand type), and convert to predi...
Chris Lattner [Mon, 10 Sep 2001 19:43:38 +0000 (19:43 +0000)]
Fix a bug I introduced (assertion failed: Unknown operand type), and convert to predicate style for type checks

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

23 years agoImplement global variable support
Chris Lattner [Mon, 10 Sep 2001 07:58:01 +0000 (07:58 +0000)]
Implement global variable support

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

23 years agoAdd support for external methods
Chris Lattner [Mon, 10 Sep 2001 04:50:17 +0000 (04:50 +0000)]
Add support for external methods

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

23 years agoGenericize support for calling functions a bit
Chris Lattner [Mon, 10 Sep 2001 04:49:44 +0000 (04:49 +0000)]
Genericize support for calling functions a bit
Add external method support

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

23 years agoAdd support for tool specified linker options
Chris Lattner [Mon, 10 Sep 2001 04:49:26 +0000 (04:49 +0000)]
Add support for tool specified linker options

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

23 years agoRemove the definitions of 3 global functions that don't belong in the core
Chris Lattner [Sun, 9 Sep 2001 23:02:07 +0000 (23:02 +0000)]
Remove the definitions of 3 global functions that don't belong in the core

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

23 years agoImplement the subset of the GetConstantValueAsSignedInt function that is needed,...
Chris Lattner [Sun, 9 Sep 2001 23:01:47 +0000 (23:01 +0000)]
Implement the subset of the GetConstantValueAsSignedInt function that is needed, locally.  Remove the two support functions to inline their contents.

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

23 years agoImplement the subset of the GetConstantValueAsSignedInt function that is needed,...
Chris Lattner [Sun, 9 Sep 2001 23:01:32 +0000 (23:01 +0000)]
Implement the subset of the GetConstantValueAsSignedInt function that is needed, locally.

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

23 years agoRemove 3 gross global functions that don't belong here
Chris Lattner [Sun, 9 Sep 2001 23:00:59 +0000 (23:00 +0000)]
Remove 3 gross global functions that don't belong here

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