oota-llvm.git
23 years ago* Support new setName interface
Chris Lattner [Fri, 7 Sep 2001 16:20:18 +0000 (16:20 +0000)]
* Support new setName interface
* Make the iterator a little nicer

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

23 years agoSupport new setName interface
Chris Lattner [Fri, 7 Sep 2001 16:19:55 +0000 (16:19 +0000)]
Support new setName interface

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

23 years ago* Add new DerivedType base class that goes between Type and the derived types
Chris Lattner [Fri, 7 Sep 2001 16:19:29 +0000 (16:19 +0000)]
* Add new DerivedType base class that goes between Type and the derived types
* Implement abstract types
* Add new Opaque derived type

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

23 years agoImplement support for globally unique constants. Constants no longer live
Chris Lattner [Fri, 7 Sep 2001 16:18:19 +0000 (16:18 +0000)]
Implement support for globally unique constants.  Constants no longer live
in a module or method local pool, they are global to the llvm system.

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

23 years agoAdd support for walking type graphs
Chris Lattner [Fri, 7 Sep 2001 16:17:24 +0000 (16:17 +0000)]
Add support for walking type graphs

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

23 years agoChanging setName semantics
Chris Lattner [Fri, 7 Sep 2001 16:16:57 +0000 (16:16 +0000)]
Changing setName semantics

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

23 years agoMake annotations operations const with a mutable annotation list so that
Chris Lattner [Fri, 7 Sep 2001 16:16:35 +0000 (16:16 +0000)]
Make annotations operations const with a mutable annotation list so that
we can annotate Types.  A better solution would be make types nonconst.

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

23 years agoFixed the "output constant pool even if he have no constants" issue
Chris Lattner [Fri, 7 Sep 2001 16:13:58 +0000 (16:13 +0000)]
Fixed the "output constant pool even if he have no constants" issue

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

23 years agowhoo hoo I did something! :)
Chris Lattner [Fri, 7 Sep 2001 16:10:35 +0000 (16:10 +0000)]
whoo hoo I did something! :)

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

23 years agoMake fib be more real
Chris Lattner [Sat, 1 Sep 2001 01:47:52 +0000 (01:47 +0000)]
Make fib be more real

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

23 years ago*** empty log message ***
Ruchira Sasanka [Fri, 31 Aug 2001 20:59:58 +0000 (20:59 +0000)]
*** empty log message ***

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

23 years ago*** empty log message ***
Ruchira Sasanka [Fri, 31 Aug 2001 20:30:42 +0000 (20:30 +0000)]
*** empty log message ***

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

23 years agoAdded directory LiveVar/
Vikram S. Adve [Tue, 28 Aug 2001 23:29:31 +0000 (23:29 +0000)]
Added directory LiveVar/

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

23 years agoMakefile for tools/tests/
Vikram S. Adve [Tue, 28 Aug 2001 23:28:25 +0000 (23:28 +0000)]
Makefile for tools/tests/

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

23 years agoDriver to test IsPowerOf2. Could be extended for other library routines.
Vikram S. Adve [Tue, 28 Aug 2001 23:28:10 +0000 (23:28 +0000)]
Driver to test IsPowerOf2.  Could be extended for other library routines.

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

23 years agoAdd testcodegen target, and restrict which tests are run for it.
Vikram S. Adve [Tue, 28 Aug 2001 23:26:44 +0000 (23:26 +0000)]
Add testcodegen target, and restrict which tests are run for it.

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

23 years agoAdded nonterminals for arithmetic operations where one operand is constant.
Vikram S. Adve [Tue, 28 Aug 2001 23:25:46 +0000 (23:25 +0000)]
Added nonterminals for arithmetic operations where one operand is constant.

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

23 years agoChanged link line.
Vikram S. Adve [Tue, 28 Aug 2001 23:23:35 +0000 (23:23 +0000)]
Changed link line.

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

23 years agoAdd calls to NormalizeMethod() and to ScheduleInstructionsWithSSA().
Vikram S. Adve [Tue, 28 Aug 2001 23:23:14 +0000 (23:23 +0000)]
Add calls to NormalizeMethod() and to ScheduleInstructionsWithSSA().

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

23 years agoMakefile for InstrSched/
Vikram S. Adve [Tue, 28 Aug 2001 23:17:22 +0000 (23:17 +0000)]
Makefile for InstrSched/

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

23 years agoRemove source list.
Vikram S. Adve [Tue, 28 Aug 2001 23:16:59 +0000 (23:16 +0000)]
Remove source list.

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

23 years agoAdded directory InstrSched.
Vikram S. Adve [Tue, 28 Aug 2001 23:16:13 +0000 (23:16 +0000)]
Added directory InstrSched.

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

23 years agoMajor changes too hard to document :-)
Vikram S. Adve [Tue, 28 Aug 2001 23:12:57 +0000 (23:12 +0000)]
Major changes too hard to document :-)

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

23 years agoAdded function MachineInstr::operandIsDefined(i) and decl for
Vikram S. Adve [Tue, 28 Aug 2001 23:11:46 +0000 (23:11 +0000)]
Added function MachineInstr::operandIsDefined(i) and decl for
function PrintMachineInstructions.

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

23 years agoExtensive additions for supporting instruction scheduling.
Vikram S. Adve [Tue, 28 Aug 2001 23:10:41 +0000 (23:10 +0000)]
Extensive additions for supporting instruction scheduling.

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

23 years agoAdded class MachineSchedInfo and several supporting classes
Vikram S. Adve [Tue, 28 Aug 2001 23:09:36 +0000 (23:09 +0000)]
Added class MachineSchedInfo and several supporting classes
as a machine description for instruction scheduling.

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

23 years agoImplementation of instruction scheduling for LLVM.
Vikram S. Adve [Tue, 28 Aug 2001 23:07:19 +0000 (23:07 +0000)]
Implementation of instruction scheduling for LLVM.
Currently schedules one basic block at a time.

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

23 years agoClass that encapsulates priority heuristics for instruction scheduling.
Vikram S. Adve [Tue, 28 Aug 2001 23:06:49 +0000 (23:06 +0000)]
Class that encapsulates priority heuristics for instruction scheduling.

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

23 years agoScheduling DAG for instruction scheduling. Currently for a single basic block.
Vikram S. Adve [Tue, 28 Aug 2001 23:06:02 +0000 (23:06 +0000)]
Scheduling DAG for instruction scheduling.  Currently for a single basic block.

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

23 years agoMoved debug options declaration to header file, and moved
Vikram S. Adve [Tue, 28 Aug 2001 23:04:38 +0000 (23:04 +0000)]
Moved debug options declaration to header file, and moved
a function to MachineInstr.cpp.

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

23 years agoMoved function PrintMachineInstructions here.
Vikram S. Adve [Tue, 28 Aug 2001 23:02:39 +0000 (23:02 +0000)]
Moved function PrintMachineInstructions here.

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

23 years agoanalyze() now checks to see that we don't analyze the same method twice.
Vikram S. Adve [Tue, 28 Aug 2001 22:36:35 +0000 (22:36 +0000)]
analyze() now checks to see that we don't analyze the same method twice.
Needs a mechnanism to override this check (e.g., after a transformation).

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

23 years ago*** empty log message ***
Vikram S. Adve [Tue, 28 Aug 2001 22:35:21 +0000 (22:35 +0000)]
*** empty log message ***

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

23 years agoSimplification transformations to normalize the code for later passes.
Vikram S. Adve [Tue, 28 Aug 2001 21:40:27 +0000 (21:40 +0000)]
Simplification transformations to normalize the code for later passes.

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

23 years agoUse const int instead of #define.
Vikram S. Adve [Tue, 28 Aug 2001 21:35:26 +0000 (21:35 +0000)]
Use const int instead of #define.

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

23 years agoAdd copy and assignment operators for POIterator, and
Vikram S. Adve [Tue, 28 Aug 2001 21:34:56 +0000 (21:34 +0000)]
Add copy and assignment operators for POIterator, and
static constructors.

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

23 years agoAdded InstrSched library to link line.
Vikram S. Adve [Tue, 28 Aug 2001 21:33:33 +0000 (21:33 +0000)]
Added InstrSched library to link line.

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

23 years agoI suck
Chris Lattner [Mon, 27 Aug 2001 18:54:45 +0000 (18:54 +0000)]
I suck

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

23 years agoInitial checkin of TargetData code
Chris Lattner [Mon, 27 Aug 2001 16:00:15 +0000 (16:00 +0000)]
Initial checkin of TargetData code

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

23 years agoRemove target specific stuff from Type classes
Chris Lattner [Mon, 27 Aug 2001 15:52:13 +0000 (15:52 +0000)]
Remove target specific stuff from Type classes

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

23 years agoRemove target specific method from MemAccessInst class
Chris Lattner [Mon, 27 Aug 2001 15:51:43 +0000 (15:51 +0000)]
Remove target specific method from MemAccessInst class

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

23 years agoConvert to use the new factored out TargetData class
Chris Lattner [Mon, 27 Aug 2001 15:51:16 +0000 (15:51 +0000)]
Convert to use the new factored out TargetData class

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

23 years agoFactor code out to the TargetData class
Chris Lattner [Mon, 27 Aug 2001 15:50:41 +0000 (15:50 +0000)]
Factor code out to the TargetData class

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

23 years agoUse the new TargetData class to factor out some of the shared code
Chris Lattner [Mon, 27 Aug 2001 15:50:12 +0000 (15:50 +0000)]
Use the new TargetData class to factor out some of the shared code
between the static compilers and the interpreter.

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

23 years agoRemove target specific method.
Chris Lattner [Mon, 27 Aug 2001 15:49:36 +0000 (15:49 +0000)]
Remove target specific method.

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

23 years agoRemove target specific code, move to TargetData.cpp file
Chris Lattner [Mon, 27 Aug 2001 15:49:16 +0000 (15:49 +0000)]
Remove target specific code, move to TargetData.cpp file

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

23 years agoSupport passing a data pointer to annotation factory methods
Chris Lattner [Mon, 27 Aug 2001 05:19:10 +0000 (05:19 +0000)]
Support passing a data pointer to annotation factory methods

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

23 years agoDemolish explicit source list
Chris Lattner [Mon, 27 Aug 2001 05:18:35 +0000 (05:18 +0000)]
Demolish explicit source list

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

23 years agoExtend annotations to pass data pointers around to the functions
Chris Lattner [Mon, 27 Aug 2001 05:17:47 +0000 (05:17 +0000)]
Extend annotations to pass data pointers around to the functions

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

23 years agoAdd another TODO: sigh
Chris Lattner [Mon, 27 Aug 2001 05:17:20 +0000 (05:17 +0000)]
Add another TODO: sigh

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

23 years agoLots of new functionality
Chris Lattner [Mon, 27 Aug 2001 05:16:50 +0000 (05:16 +0000)]
Lots of new functionality

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

23 years agoRemove explicit source list
Chris Lattner [Sat, 25 Aug 2001 20:40:32 +0000 (20:40 +0000)]
Remove explicit source list

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

23 years agoAdd dependence to libvmcore.
Vikram S. Adve [Sat, 25 Aug 2001 12:43:25 +0000 (12:43 +0000)]
Add dependence to libvmcore.

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

23 years agoMake sure noone branches to the entry node of the method
Chris Lattner [Fri, 24 Aug 2001 14:56:34 +0000 (14:56 +0000)]
Make sure noone branches to the entry node of the method

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

23 years agoCompile LLI
Chris Lattner [Thu, 23 Aug 2001 17:09:06 +0000 (17:09 +0000)]
Compile LLI

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

23 years agoRename start methods to main so interpreter works easier
Chris Lattner [Thu, 23 Aug 2001 17:08:51 +0000 (17:08 +0000)]
Rename start methods to main so interpreter works easier

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

23 years agoAdd annotation support
Chris Lattner [Thu, 23 Aug 2001 17:07:56 +0000 (17:07 +0000)]
Add annotation support

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

23 years agoHandle case where there is no exit node from a flowgraph
Chris Lattner [Thu, 23 Aug 2001 17:07:19 +0000 (17:07 +0000)]
Handle case where there is no exit node from a flowgraph

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

23 years agoChanged an assertion message
Chris Lattner [Thu, 23 Aug 2001 17:06:38 +0000 (17:06 +0000)]
Changed an assertion message

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

23 years agoAdd annotation support to value
Chris Lattner [Thu, 23 Aug 2001 17:06:21 +0000 (17:06 +0000)]
Add annotation support to value

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

23 years ago* Add assertions
Chris Lattner [Thu, 23 Aug 2001 17:05:59 +0000 (17:05 +0000)]
* Add assertions
* Add a nodeVisited method to the DF interator

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

23 years agoInitial checkin of interpreter
Chris Lattner [Thu, 23 Aug 2001 17:05:04 +0000 (17:05 +0000)]
Initial checkin of interpreter

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

23 years agoLV code on machine instructions
Ruchira Sasanka [Mon, 20 Aug 2001 21:12:49 +0000 (21:12 +0000)]
LV code on machine instructions

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

23 years agoLV info on machine instructions
Ruchira Sasanka [Mon, 20 Aug 2001 21:11:01 +0000 (21:11 +0000)]
LV info on machine instructions

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

23 years agoCorrected the compilation error by making the ValOperator class a friend of
Ruchira Sasanka [Mon, 13 Aug 2001 16:54:48 +0000 (16:54 +0000)]
Corrected the compilation error by making the ValOperator class a friend of
MachineOperand class - Ruchira

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

23 years agoAlways set isDef for operand in position resultPos.
Vikram S. Adve [Mon, 13 Aug 2001 16:32:45 +0000 (16:32 +0000)]
Always set isDef for operand in position resultPos.

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

23 years agoChanged SetMachineOpernad calls in Set3OperandsFromInstr so that the
Ruchira Sasanka [Mon, 13 Aug 2001 16:26:28 +0000 (16:26 +0000)]
Changed SetMachineOpernad calls in Set3OperandsFromInstr so that the
result position is a def (i.e., added true to the end of call) -- Ruchira

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

23 years agoChanged case 64 to make the first arg of phi a defintion
Ruchira Sasanka [Mon, 13 Aug 2001 16:24:01 +0000 (16:24 +0000)]
Changed case 64 to make the first arg of phi a defintion

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

23 years agoCan't use ref to stack value!
Vikram S. Adve [Thu, 9 Aug 2001 20:14:22 +0000 (20:14 +0000)]
Can't use ref to stack value!

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

23 years agoNeeded old conditions as well as new in skipToNextVal()!
Vikram S. Adve [Thu, 9 Aug 2001 19:18:33 +0000 (19:18 +0000)]
Needed old conditions as well as new in skipToNextVal()!

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

23 years agoBug fix in ValOpIterator: not moving past operand with NULL Value.
Vikram S. Adve [Wed, 8 Aug 2001 00:15:42 +0000 (00:15 +0000)]
Bug fix in ValOpIterator: not moving past operand with NULL Value.

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

23 years ago*** empty log message ***
Ruchira Sasanka [Tue, 7 Aug 2001 21:01:23 +0000 (21:01 +0000)]
*** empty log message ***

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

23 years agoadded a default isDef arg to SetMachineOperand method - Ruchira
Ruchira Sasanka [Tue, 7 Aug 2001 20:16:52 +0000 (20:16 +0000)]
added a default isDef arg to SetMachineOperand method - Ruchira

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

23 years agoAdded isDef field to MachineOperand class - Ruchira
Ruchira Sasanka [Tue, 7 Aug 2001 20:14:30 +0000 (20:14 +0000)]
Added isDef field to MachineOperand class - Ruchira

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

23 years agoAdd CC operand as 4th operand of SUBcc, and mark it as a def.
Vikram S. Adve [Mon, 6 Aug 2001 21:06:10 +0000 (21:06 +0000)]
Add CC operand as 4th operand of SUBcc, and mark it as a def.

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

23 years agoUse extra operand for instructions that set a CC register that
Vikram S. Adve [Mon, 6 Aug 2001 21:05:39 +0000 (21:05 +0000)]
Use extra operand for instructions that set a CC register that
was not explicit before.

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

23 years agoAlso, move burg rule to Makefile.common.
Vikram S. Adve [Mon, 6 Aug 2001 19:06:56 +0000 (19:06 +0000)]
Also, move burg rule to Makefile.common.

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

23 years agoAnd add rule to create a .cpp source file from burg input file!
Vikram S. Adve [Mon, 6 Aug 2001 19:06:43 +0000 (19:06 +0000)]
And add rule to create a .cpp source file from burg input file!

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

23 years agoBetter still, lets move pathname for Burg to Makefile.common.
Vikram S. Adve [Mon, 6 Aug 2001 19:01:45 +0000 (19:01 +0000)]
Better still, lets move pathname for Burg to Makefile.common.

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

23 years agoAdd path and options for burg.
Vikram S. Adve [Mon, 6 Aug 2001 19:01:20 +0000 (19:01 +0000)]
Add path and options for burg.

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

23 years agoUse full pathname for burg.
Vikram S. Adve [Mon, 6 Aug 2001 18:53:26 +0000 (18:53 +0000)]
Use full pathname for burg.

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

23 years agoAllow numOperands of -1 for variable #operands.
Vikram S. Adve [Tue, 31 Jul 2001 21:55:51 +0000 (21:55 +0000)]
Allow numOperands of -1 for variable #operands.

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

23 years agoSimplify command line options, and add option for printing
Vikram S. Adve [Tue, 31 Jul 2001 21:53:25 +0000 (21:53 +0000)]
Simplify command line options, and add option for printing
machine instructions without debugging info.

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

23 years agoHad used the wrong option.
Vikram S. Adve [Tue, 31 Jul 2001 21:52:28 +0000 (21:52 +0000)]
Had used the wrong option.

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

23 years agoAdded tree nodes for Phi instructions.
Vikram S. Adve [Tue, 31 Jul 2001 21:50:29 +0000 (21:50 +0000)]
Added tree nodes for Phi instructions.

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

23 years agoGenerate tree nodes for Phi instructions.
Vikram S. Adve [Tue, 31 Jul 2001 21:49:53 +0000 (21:49 +0000)]
Generate tree nodes for Phi instructions.

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

23 years agoAllow machine instructions with variable numbers of arguments.
Vikram S. Adve [Tue, 31 Jul 2001 21:49:28 +0000 (21:49 +0000)]
Allow machine instructions with variable numbers of arguments.
This is used only by Phi for now.

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

23 years agoAdded dummy Phi instruction.
Vikram S. Adve [Tue, 31 Jul 2001 21:48:23 +0000 (21:48 +0000)]
Added dummy Phi instruction.

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

23 years agoGenerate dummy Phi machine instruction, plus a bug fix for BrCond(boolreg).
Vikram S. Adve [Tue, 31 Jul 2001 21:46:57 +0000 (21:46 +0000)]
Generate dummy Phi machine instruction, plus a bug fix for BrCond(boolreg).

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

23 years agoAdded support for testing instruction selection on all but 2 tests.
Vikram S. Adve [Tue, 31 Jul 2001 21:45:56 +0000 (21:45 +0000)]
Added support for testing instruction selection on all but 2 tests.

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

23 years agoAdded class MachineCodeForBasicBlock.
Vikram S. Adve [Mon, 30 Jul 2001 18:49:07 +0000 (18:49 +0000)]
Added class MachineCodeForBasicBlock.

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

23 years agoRecord machine instructions in the vector for each basic block.
Vikram S. Adve [Mon, 30 Jul 2001 18:48:43 +0000 (18:48 +0000)]
Record machine instructions in the vector for each basic block.

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

23 years agoAdded vector of machine instructions for the basic block.
Vikram S. Adve [Mon, 30 Jul 2001 18:47:24 +0000 (18:47 +0000)]
Added vector of machine instructions for the basic block.

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

23 years agoNew test cases
Chris Lattner [Sat, 28 Jul 2001 18:04:10 +0000 (18:04 +0000)]
New test cases

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

23 years agoRemove some gross stuff
Chris Lattner [Sat, 28 Jul 2001 17:52:53 +0000 (17:52 +0000)]
Remove some gross stuff

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

23 years agoAllow vararg method types with 0 fixed types
Chris Lattner [Sat, 28 Jul 2001 17:52:35 +0000 (17:52 +0000)]
Allow vararg method types with 0 fixed types

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

23 years agoMake error msg nicer
Chris Lattner [Sat, 28 Jul 2001 17:52:14 +0000 (17:52 +0000)]
Make error msg nicer

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

23 years agoEnable the elimination of method prototypes that are not referenced
Chris Lattner [Sat, 28 Jul 2001 17:51:49 +0000 (17:51 +0000)]
Enable the elimination of method prototypes that are not referenced

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

23 years ago* Make sure that the size of the type field can also control the output
Chris Lattner [Sat, 28 Jul 2001 17:51:21 +0000 (17:51 +0000)]
* Make sure that the size of the type field can also control the output
  instruction pattern.

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

23 years ago* Add calls to failure template so that it is actually possible to debug
Chris Lattner [Sat, 28 Jul 2001 17:50:18 +0000 (17:50 +0000)]
* Add calls to failure template so that it is actually possible to debug
  why bytecode parsing is failing.  Just put a breakpoint in the failure
  templates.

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