oota-llvm.git
23 years agoAdd more function call and prototype specific tests
Chris Lattner [Sat, 13 Oct 2001 07:05:07 +0000 (07:05 +0000)]
Add more function call and prototype specific tests

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

23 years agoCompile the transforms directory
Chris Lattner [Sat, 13 Oct 2001 07:04:00 +0000 (07:04 +0000)]
Compile the transforms directory

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

23 years agoStart of a linker
Chris Lattner [Sat, 13 Oct 2001 07:03:50 +0000 (07:03 +0000)]
Start of a linker

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

23 years agoImplement the invoke instruction
Chris Lattner [Sat, 13 Oct 2001 07:01:45 +0000 (07:01 +0000)]
Implement the invoke instruction

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

23 years ago* Fix a nefarious bugs: TypesEqual was wrong for varargs methods
Chris Lattner [Sat, 13 Oct 2001 07:01:33 +0000 (07:01 +0000)]
* Fix a nefarious bugs: TypesEqual was wrong for varargs methods
* MethodType::get now takes a literal isVarArg method argument
* Use new style casts

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

23 years agoConvert a runtime check into an assertion
Chris Lattner [Sat, 13 Oct 2001 06:58:56 +0000 (06:58 +0000)]
Convert a runtime check into an assertion

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

23 years ago* Add support for Module specific constants
Chris Lattner [Sat, 13 Oct 2001 06:58:40 +0000 (06:58 +0000)]
* Add support for Module specific constants
* Add proper support for ConstPoolPointerReference's

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

23 years agoAdd new TerminatorInst ctor for invoke
Chris Lattner [Sat, 13 Oct 2001 06:57:47 +0000 (06:57 +0000)]
Add new TerminatorInst ctor for invoke

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

23 years ago* Fix TODO
Chris Lattner [Sat, 13 Oct 2001 06:57:33 +0000 (06:57 +0000)]
* Fix TODO
* Support ConstPoolPOinterReferences correctly
* New constPoolPointerNull subclass
* Add classof support for more classes
* Add proper support for ConstPoolPointerReference::getStrValue()

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

23 years agoFix broken #endif
Chris Lattner [Sat, 13 Oct 2001 06:54:54 +0000 (06:54 +0000)]
Fix broken #endif

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

23 years ago* Add #include
Chris Lattner [Sat, 13 Oct 2001 06:54:30 +0000 (06:54 +0000)]
* Add #include
* Fix #endif problems
* Change to getCalledValue instead of getCalledMethod

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

23 years agoAdd StringList support
Chris Lattner [Sat, 13 Oct 2001 06:53:19 +0000 (06:53 +0000)]
Add StringList support

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

23 years agoSupport the invoke instruction
Chris Lattner [Sat, 13 Oct 2001 06:52:41 +0000 (06:52 +0000)]
Support the invoke instruction

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

23 years agoSupport indirect calls
Chris Lattner [Sat, 13 Oct 2001 06:52:31 +0000 (06:52 +0000)]
Support indirect calls

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

23 years agonot is a keyword in ansi C++, avoid it
Chris Lattner [Sat, 13 Oct 2001 06:51:26 +0000 (06:51 +0000)]
not is a keyword in ansi C++, avoid it

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

23 years ago* Fix privacy issues on RegToRefVecMap
Chris Lattner [Sat, 13 Oct 2001 06:51:01 +0000 (06:51 +0000)]
* Fix privacy issues on RegToRefVecMap
* Fix initialization order problems...

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

23 years ago* Use new style casts more
Chris Lattner [Sat, 13 Oct 2001 06:48:38 +0000 (06:48 +0000)]
* Use new style casts more
* Add real support for global variable addresses initializing constants
* Fix encoding/decoding of VarArgs calls
* Support the Invoke instruction

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

23 years ago* Add real support for global variable addresses initializing constants
Chris Lattner [Sat, 13 Oct 2001 06:47:01 +0000 (06:47 +0000)]
* Add real support for global variable addresses initializing constants
* Add minor optimization to BytecodeParser::refineAbstractType
* MethodType::get now take an explicit isVarArg parameter
* Fix encoding/decoding of VarArgs calls
* Support the Invoke instruction

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

23 years ago* Support writing GlobalVariables with info comments by them
Chris Lattner [Sat, 13 Oct 2001 06:42:36 +0000 (06:42 +0000)]
* Support writing GlobalVariables with info comments by them
* Print out prototypes correctly in cases that we weren't before
* Use new style casts more
* Support printing new invoke instruction

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

23 years ago* Add support for forward references of global variable addresses
Chris Lattner [Sat, 13 Oct 2001 06:41:08 +0000 (06:41 +0000)]
* Add support for forward references of global variable addresses
* Add support for numeric global variable addresses
* Clean up getVal function by refactoring it into several smaller functions
* MethodTypes are now specified with an explicit isVarArg parameter
* Break ValueRef into ConstValueRef & SymbolicValueRef components
* Add support for the new Invoke instruction
* Fix a few broken calls to Type::getName instead of Type::getDescription

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

23 years agoAdd operator< to ValID's so that they can be put in map's
Chris Lattner [Sat, 13 Oct 2001 06:37:47 +0000 (06:37 +0000)]
Add operator< to ValID's so that they can be put in map's

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

23 years agoRemove exception specification
Chris Lattner [Sat, 13 Oct 2001 06:37:27 +0000 (06:37 +0000)]
Remove exception specification

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

23 years agoSupport the new Invoke instruction
Chris Lattner [Sat, 13 Oct 2001 06:37:14 +0000 (06:37 +0000)]
Support the new Invoke instruction

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

23 years agoSupport pointers to globals happily
Chris Lattner [Sat, 13 Oct 2001 06:35:09 +0000 (06:35 +0000)]
Support pointers to globals happily

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

23 years agoFix code to make GCC 2.96 happy
Chris Lattner [Sat, 13 Oct 2001 06:34:47 +0000 (06:34 +0000)]
Fix code to make GCC 2.96 happy

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

23 years ago* Add support for Invoke instructions
Chris Lattner [Sat, 13 Oct 2001 06:33:19 +0000 (06:33 +0000)]
* Add support for Invoke instructions
* Add support for indirect calls

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

23 years agoFix filename in comment
Chris Lattner [Sat, 13 Oct 2001 06:32:42 +0000 (06:32 +0000)]
Fix filename in comment

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

23 years agoBetter linux support. This file still sucks
Chris Lattner [Sat, 13 Oct 2001 06:31:55 +0000 (06:31 +0000)]
Better linux support.  This file still sucks

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

23 years agoFix broken #endif
Chris Lattner [Sat, 13 Oct 2001 06:31:00 +0000 (06:31 +0000)]
Fix broken #endif

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

23 years agonot is a keyword in Ansi C++. Avoid it
Chris Lattner [Sat, 13 Oct 2001 06:30:39 +0000 (06:30 +0000)]
not is a keyword in Ansi C++.  Avoid it

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

23 years agoClean up initializers for GCC 2.96
Chris Lattner [Sat, 13 Oct 2001 06:30:10 +0000 (06:30 +0000)]
Clean up initializers for GCC 2.96

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

23 years agoRemove exception specification. Only slows code down.
Chris Lattner [Sat, 13 Oct 2001 06:25:30 +0000 (06:25 +0000)]
Remove exception specification.  Only slows code down.

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

23 years agoChanges to compile with GCC 2.96
Chris Lattner [Sat, 13 Oct 2001 06:25:03 +0000 (06:25 +0000)]
Changes to compile with GCC 2.96

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

23 years agoAdd comment indicating semantics of indirect calls
Chris Lattner [Sat, 13 Oct 2001 06:24:35 +0000 (06:24 +0000)]
Add comment indicating semantics of indirect calls

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

23 years agoNew ctor for invoke inst
Chris Lattner [Sat, 13 Oct 2001 06:24:10 +0000 (06:24 +0000)]
New ctor for invoke inst

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

23 years agoAdd support for indirect calls
Chris Lattner [Sat, 13 Oct 2001 06:23:14 +0000 (06:23 +0000)]
Add support for indirect calls

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

23 years agoAdd some casts to make GCC 2.96 happy.
Chris Lattner [Sat, 13 Oct 2001 06:20:07 +0000 (06:20 +0000)]
Add some casts to make GCC 2.96 happy.

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

23 years agoAdd use_back() methods
Chris Lattner [Sat, 13 Oct 2001 06:18:19 +0000 (06:18 +0000)]
Add use_back() methods

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

23 years agoAdd classof implementations for User
Chris Lattner [Sat, 13 Oct 2001 06:18:05 +0000 (06:18 +0000)]
Add classof implementations for User

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

23 years agoExpose typedefs
Chris Lattner [Sat, 13 Oct 2001 06:17:50 +0000 (06:17 +0000)]
Expose typedefs

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

23 years agoAdd support for module local constants
Chris Lattner [Sat, 13 Oct 2001 06:17:32 +0000 (06:17 +0000)]
Add support for module local constants

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

23 years agoAdd new opcode for Invoke instruction
Chris Lattner [Sat, 13 Oct 2001 06:15:20 +0000 (06:15 +0000)]
Add new opcode for Invoke instruction

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

23 years agoMinor changes, add new ctor for invoke instruction
Chris Lattner [Sat, 13 Oct 2001 06:14:53 +0000 (06:14 +0000)]
Minor changes, add new ctor for invoke instruction

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

23 years agoAdd assertions
Chris Lattner [Sat, 13 Oct 2001 06:12:38 +0000 (06:12 +0000)]
Add assertions

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

23 years ago* Minor Formatting changes.
Chris Lattner [Sat, 13 Oct 2001 06:12:30 +0000 (06:12 +0000)]
* Minor Formatting changes.
* MethodType now takes an explicit isVarArg arg instead of an implicit
  voidTy on the argument list

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

23 years ago* Add destroyConstant stuff to handle module local constants
Chris Lattner [Sat, 13 Oct 2001 06:11:10 +0000 (06:11 +0000)]
* Add destroyConstant stuff to handle module local constants
* Add classof implementations for more ConstPoolVal subclasses
* Pull null pointer implementation stuff out of ConstPoolPointer into
  a subclass ConstPoolPointerNull
* Implement ConstPoolPointerReference correctly and completely

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

23 years agoUpdate todo's
Chris Lattner [Sat, 13 Oct 2001 06:09:34 +0000 (06:09 +0000)]
Update todo's

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

23 years agoEach tools should not make tags
Chris Lattner [Sat, 13 Oct 2001 05:10:29 +0000 (05:10 +0000)]
Each tools should not make tags

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

23 years ago--corrected coalescing test: coalsed only if two are of the same reg class
Ruchira Sasanka [Fri, 12 Oct 2001 17:48:18 +0000 (17:48 +0000)]
--corrected coalescing test: coalsed only if two are of the same reg class

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

23 years agoadded support for implict operands in machine instruction
Ruchira Sasanka [Fri, 12 Oct 2001 17:47:23 +0000 (17:47 +0000)]
added support for implict operands in machine instruction

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

23 years ago--added support for implicit operands in machine instructions
Ruchira Sasanka [Fri, 12 Oct 2001 17:46:27 +0000 (17:46 +0000)]
--added support for implicit operands in machine instructions

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

23 years agoDelete *.s on clean.
Vikram S. Adve [Thu, 11 Oct 2001 04:24:10 +0000 (04:24 +0000)]
Delete *.s on clean.

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

23 years agoRecord implicitRefs for each machine instruction instead of
Vikram S. Adve [Thu, 11 Oct 2001 04:23:19 +0000 (04:23 +0000)]
Record implicitRefs for each machine instruction instead of
each VM instruction.

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

23 years agoAdd graph edges due to implicit refs in each machine instruction.
Vikram S. Adve [Thu, 11 Oct 2001 04:22:45 +0000 (04:22 +0000)]
Add graph edges due to implicit refs in each machine instruction.

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

23 years agoAdded a rule for building TAGS.
Vikram S. Adve [Wed, 10 Oct 2001 22:35:00 +0000 (22:35 +0000)]
Added a rule for building TAGS.

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

23 years agoRepeat some libs due to circular dependences between Sparc and other
Vikram S. Adve [Wed, 10 Oct 2001 20:58:57 +0000 (20:58 +0000)]
Repeat some libs due to circular dependences between Sparc and other
code gen libraries.

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

23 years agoDon't insert useful instructions in delay slot of a RETURN.
Vikram S. Adve [Wed, 10 Oct 2001 20:58:11 +0000 (20:58 +0000)]
Don't insert useful instructions in delay slot of a RETURN.

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

23 years agoInsert code to load constants used as Call or Return arguments.
Vikram S. Adve [Wed, 10 Oct 2001 20:56:33 +0000 (20:56 +0000)]
Insert code to load constants used as Call or Return arguments.
Also, note return value of a Call as an "implicitUse".

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

23 years agoMachine-independent code generation routines used in instruction
Vikram S. Adve [Wed, 10 Oct 2001 20:50:43 +0000 (20:50 +0000)]
Machine-independent code generation routines used in instruction
selection.  These used to live in several different places before.

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

23 years agoMoved code generation support routines to InstrSelectionSupport.{h,cpp}.
Vikram S. Adve [Wed, 10 Oct 2001 20:50:20 +0000 (20:50 +0000)]
Moved code generation support routines to InstrSelectionSupport.{h,cpp}.

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

23 years agoMoved code generation support routines to InstrSelectionSupport.cpp.
Vikram S. Adve [Wed, 10 Oct 2001 20:49:07 +0000 (20:49 +0000)]
Moved code generation support routines to InstrSelectionSupport.cpp.

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

23 years agoMoved first function to "simpleadd.ll".
Vikram S. Adve [Wed, 10 Oct 2001 20:12:15 +0000 (20:12 +0000)]
Moved first function to "simpleadd.ll".

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

23 years agotestmemory and sumarray now work with instruction selection.
Vikram S. Adve [Wed, 10 Oct 2001 20:10:48 +0000 (20:10 +0000)]
testmemory and sumarray now work with instruction selection.

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

23 years ago--removed %g regs being allocated - fix later
Ruchira Sasanka [Tue, 9 Oct 2001 23:36:13 +0000 (23:36 +0000)]
--removed %g regs being allocated - fix later

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

23 years agoAdd hack to get rid of malloc & free instructions for code generation
Chris Lattner [Thu, 4 Oct 2001 01:40:53 +0000 (01:40 +0000)]
Add hack to get rid of malloc & free instructions for code generation

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

23 years agoAdd comment
Chris Lattner [Wed, 3 Oct 2001 19:35:57 +0000 (19:35 +0000)]
Add comment

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

23 years agoSupport multiple global's definitions
Chris Lattner [Wed, 3 Oct 2001 19:35:04 +0000 (19:35 +0000)]
Support multiple global's definitions

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

23 years agoFactor parentness out of Module & GlobalVariable into GlobalValue
Chris Lattner [Wed, 3 Oct 2001 19:28:15 +0000 (19:28 +0000)]
Factor parentness out of Module & GlobalVariable into GlobalValue
Implement SymbolTable debug/dump utility

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

23 years agoRename getNullPointer to getNull
Chris Lattner [Wed, 3 Oct 2001 15:39:36 +0000 (15:39 +0000)]
Rename getNullPointer to getNull
Allow sharing of null pointer constants

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

23 years agoRename getNullPointer to getNull
Chris Lattner [Wed, 3 Oct 2001 15:39:24 +0000 (15:39 +0000)]
Rename getNullPointer to getNull

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

23 years agoAllow duplicate constant values as long as they are compatible.
Chris Lattner [Wed, 3 Oct 2001 15:39:04 +0000 (15:39 +0000)]
Allow duplicate constant values as long as they are compatible.
Clean up stuff a little bit with inMethod/ModuleContext functions

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

23 years agoShare ConstPoolPointer elements correctly
Chris Lattner [Wed, 3 Oct 2001 15:38:36 +0000 (15:38 +0000)]
Share ConstPoolPointer elements correctly

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

23 years agoFix broken testcase
Chris Lattner [Wed, 3 Oct 2001 14:59:11 +0000 (14:59 +0000)]
Fix broken testcase

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

23 years agoAdd check to make sure that we dont reference MEthodType's directly
Chris Lattner [Wed, 3 Oct 2001 14:59:05 +0000 (14:59 +0000)]
Add check to make sure that we dont reference MEthodType's directly

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

23 years ago* Both Method & GlobalVariable now subclass GlobalValue
Chris Lattner [Wed, 3 Oct 2001 14:53:21 +0000 (14:53 +0000)]
* Both Method & GlobalVariable now subclass GlobalValue
* ConstPoolPointerReference now represents a pointer to a GlobalValue
* Methods name references are now explicit pointers to methods
* Rename Value::GlobalVal to Value::GlobalVariableVal to avoid confusion

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

23 years agoAdjust test cases to match the fact that methods are now explicit pointer values...
Chris Lattner [Wed, 3 Oct 2001 14:50:12 +0000 (14:50 +0000)]
Adjust test cases to match the fact that methods are now explicit pointer values, not explicit

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

23 years agoFirst try at a horrible global value reference wrapper
Chris Lattner [Wed, 3 Oct 2001 06:12:09 +0000 (06:12 +0000)]
First try at a horrible global value reference wrapper

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

23 years agoClean up parser, fix a bug that prevented this from working:
Chris Lattner [Wed, 3 Oct 2001 03:19:33 +0000 (03:19 +0000)]
Clean up parser, fix a bug that prevented this from working:

%ListNode3 = global %list { %list* null, int 4 }

because %list is name and the parser expected a literal {..} type there.

In addition, simplified rules that the fix (Allow any Types there, not just a StructType)
made obsolete.  Simplified type propogation a bit.

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

23 years ago* Add support for null as a constant
Chris Lattner [Wed, 3 Oct 2001 01:49:25 +0000 (01:49 +0000)]
* Add support for null as a constant
* Allow multiple definitions of a type with the same name as long as they are the same type
* Eagerly resolve types to allow #2 to work instead of after the whole const pool has been processed
* Change grammar to require a const before a local constant definition

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

23 years agoModify testcases for new LLVM const syntax
Chris Lattner [Wed, 3 Oct 2001 01:48:04 +0000 (01:48 +0000)]
Modify testcases for new LLVM const syntax

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

23 years agoCommit more code over to new cast style
Chris Lattner [Tue, 2 Oct 2001 03:41:24 +0000 (03:41 +0000)]
Commit more code over to new cast style

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

23 years agoConvert more code to use new style casts
Chris Lattner [Mon, 1 Oct 2001 20:11:19 +0000 (20:11 +0000)]
Convert more code to use new style casts
Eliminate old style casts from value.h

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

23 years agoAdd more support for new style casts
Chris Lattner [Mon, 1 Oct 2001 18:26:53 +0000 (18:26 +0000)]
Add more support for new style casts
Convert more code to use them

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

23 years agoAdd support for new style casts
Chris Lattner [Mon, 1 Oct 2001 16:18:37 +0000 (16:18 +0000)]
Add support for new style casts

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

23 years agoAdd support for newer cleaner isa, cast, dyn_cast
Chris Lattner [Mon, 1 Oct 2001 13:58:13 +0000 (13:58 +0000)]
Add support for newer cleaner isa, cast, dyn_cast

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

23 years agoUpdate comments
Chris Lattner [Mon, 1 Oct 2001 13:34:22 +0000 (13:34 +0000)]
Update comments

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

23 years agoPull predecessor and successor iterators out of the CFG*.h files, and plop them into
Chris Lattner [Mon, 1 Oct 2001 13:19:53 +0000 (13:19 +0000)]
Pull predecessor and successor iterators out of the CFG*.h files, and plop them into
the BasicBlock class where they should be.  pred_begin/pred_end become methods on BasicBlock,
and the cfg namespace isn't used anymore.

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

23 years agoPull predecessor and successor iterators out of the CFG*.h files, and plop them into
Chris Lattner [Mon, 1 Oct 2001 13:19:41 +0000 (13:19 +0000)]
Pull predecessor and successor iterators out of the CFG*.h files, and plop them into
the BasicBlock class where they should be.  pred_begin/pred_end become methods on BasicBlock,
and the cfg namespace isn't used anymore.

Also pull Interval stuff into the Interval class out of the global namespace

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

23 years agoComment out a paragraph that refers to a file that no longer exists
Chris Lattner [Mon, 1 Oct 2001 13:18:35 +0000 (13:18 +0000)]
Comment out a paragraph that refers to a file that no longer exists

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

23 years agoFix emission of return instructions
Chris Lattner [Mon, 1 Oct 2001 02:32:34 +0000 (02:32 +0000)]
Fix emission of return instructions

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

23 years agoAdd path to as so it doesn't find llvm as if that path is set.
Chris Lattner [Mon, 1 Oct 2001 00:50:36 +0000 (00:50 +0000)]
Add path to as so it doesn't find llvm as if that path is set.

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

23 years agoExclude a couple of tests that the regalloc stuff doesn't handle yet
Chris Lattner [Mon, 1 Oct 2001 00:40:49 +0000 (00:40 +0000)]
Exclude a couple of tests that the regalloc stuff doesn't handle yet

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

23 years agoAdd different "cast constant value" for several possible types.
Vikram S. Adve [Mon, 1 Oct 2001 00:23:12 +0000 (00:23 +0000)]
Add different "cast constant value" for several possible types.
Note these are actually generated by Phis with constant operands.

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

23 years agoAdd vector `implicitUses' to class MachineCodeForVMInstr to hold values
Vikram S. Adve [Mon, 1 Oct 2001 00:18:12 +0000 (00:18 +0000)]
Add vector `implicitUses' to class MachineCodeForVMInstr to hold values
that are used by the VM instruction but not explicit operands of the
m/c instruction.

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

23 years agoSeveral fixes:
Vikram S. Adve [Mon, 1 Oct 2001 00:12:53 +0000 (00:12 +0000)]
Several fixes:
(1) Avoid hard-coding some register numbers.
(2) Fix some incorrect branch opcodes.
(3) Don't try to move int register to float register!
(4) If an operand being forwarded is a constant and it doesn't fit
    into the immed field of the copy machine instruction, then
    generate a load-constant instead of a copy.
(5) Use (unsigned long) 0 for copying a pointer via "add 0, ptr -> ptr2".

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

23 years agoremoving phy regaloc - incorrect file
Ruchira Sasanka [Sun, 30 Sep 2001 23:52:14 +0000 (23:52 +0000)]
removing phy regaloc - incorrect file

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

23 years agoChange latency of setuw and setsw to 2 cycles.
Vikram S. Adve [Sun, 30 Sep 2001 23:46:57 +0000 (23:46 +0000)]
Change latency of setuw and setsw to 2 cycles.

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

23 years agoChange ! ( ...== ...) to !=.
Vikram S. Adve [Sun, 30 Sep 2001 23:45:08 +0000 (23:45 +0000)]
Change ! ( ...== ...)  to !=.

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

23 years agoImproved dump for disp type operand.
Vikram S. Adve [Sun, 30 Sep 2001 23:44:19 +0000 (23:44 +0000)]
Improved dump for disp type operand.

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

23 years agoBug fixes:
Vikram S. Adve [Sun, 30 Sep 2001 23:43:34 +0000 (23:43 +0000)]
Bug fixes:
(1) Ensure that delay slot instructions are not moved out of place (this
    was happening for some CALL instructions).  Basically, we need to
    move all delay slot instructions out of the graph and handle them
    along with the delayed control transfer instruction.
(2) Mark scheduled instructions correctly when instructions are scheduled
    in more than one cycle in a single step (due to delay slots).

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