oota-llvm.git
20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:41:27 +0000 (00:41 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Correct isa<Constant> for GlobalValue subclass

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:38:32 +0000 (00:38 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:37:35 +0000 (00:37 +0000)]
bug 122:
- Correct isa<Constant> for GlobalValue subclass

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:32:14 +0000 (00:32 +0000)]
bug 122:
- Minimize redundant isa<GlobalValue> usage

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:31:05 +0000 (00:31 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Correct isa<Constant> for GlobalValue subclass

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:29:57 +0000 (00:29 +0000)]
bug 122:
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:25:04 +0000 (00:25 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Rename methods to get ride of ConstantPointerRef usage

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:23:51 +0000 (00:23 +0000)]
bug 122:
- Excise dead CPR procesing.

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:19:45 +0000 (00:19 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Correct test ordering for GlobalValue subclass

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:18:30 +0000 (00:18 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:16:21 +0000 (00:16 +0000)]
bug 122:
- Correct ordering of tests because for GlobalValue isa Constant

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

20 years agoUser ValueListTy as the type of the ValueList. This avoides the ValueList
Reid Spencer [Sun, 18 Jul 2004 00:13:12 +0000 (00:13 +0000)]
User ValueListTy as the type of the ValueList. This avoides the ValueList
from being treated like a Function which can cause the contents of the list
to be come invalidated.

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:12:03 +0000 (00:12 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Correct isa<Constant> for GlobalValue subclass

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:10:36 +0000 (00:10 +0000)]
bug 122:
- Update for BytecodeHandler interface change resuing from CPRs going away

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:08:11 +0000 (00:08 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass
- Remove tabs
- Fix coments refering to ConstantPointerRef

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:06:26 +0000 (00:06 +0000)]
bug 122:
- Move these functions from other places
- Provide implementations of Constant class overrides in GlobalValue

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:03:48 +0000 (00:03 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Replace tabs.

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:02:41 +0000 (00:02 +0000)]
bug 122:
- Correct an assert to not have redundant isa<GlobalValue>

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

20 years agobug 122:
Reid Spencer [Sun, 18 Jul 2004 00:01:50 +0000 (00:01 +0000)]
bug 122:
- Correct isa<Constant> for GlobalValue subclass

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

20 years agobug 122:
Reid Spencer [Sat, 17 Jul 2004 23:57:36 +0000 (23:57 +0000)]
bug 122:
- Correct isa<Constant> for GlobalValue subclass
- Fix some tabs and indentation.

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

20 years agobug 122:
Reid Spencer [Sat, 17 Jul 2004 23:53:23 +0000 (23:53 +0000)]
bug 122:
- Module doesn't need to manage ConstantPointerRefs any more.

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

20 years agobug 122:
Reid Spencer [Sat, 17 Jul 2004 23:50:57 +0000 (23:50 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Correct isa<Constant> for GlobalValue subclass

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

20 years agobug 122:
Reid Spencer [Sat, 17 Jul 2004 23:50:19 +0000 (23:50 +0000)]
bug 122:
- Move GlobalValue and GlobalVariable implementations to Globals.cpp

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

20 years agobug 122:
Reid Spencer [Sat, 17 Jul 2004 23:48:33 +0000 (23:48 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass
- Delete ConstantPointerRef member function implementations

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

20 years agobug 122:
Reid Spencer [Sat, 17 Jul 2004 23:47:01 +0000 (23:47 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass

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

20 years agobug 122:
Reid Spencer [Sat, 17 Jul 2004 23:36:58 +0000 (23:36 +0000)]
bug 122:
remove redundant isa<GlobalValue>
ensure isa<GlobalValue> case is processed before is<Constant>

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

20 years agobug 122:
Reid Spencer [Sat, 17 Jul 2004 23:34:47 +0000 (23:34 +0000)]
bug 122:
- Add ValueListTy to TypeTy so that the bcreader can have its own User
  category that won't get factored into any optimizations or cleanup.
- Correct an isa_impl to correctly include GlobalValue now that it isa
  Constant.

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

20 years agobug 122:
Reid Spencer [Sat, 17 Jul 2004 23:32:11 +0000 (23:32 +0000)]
bug 122:
Remove redundancy in User::classof(Value*); GlobalValue isa Constant now.

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

20 years agoFix a comment.
Reid Spencer [Sat, 17 Jul 2004 23:30:45 +0000 (23:30 +0000)]
Fix a comment.

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

20 years agobug 122:
Reid Spencer [Sat, 17 Jul 2004 23:30:11 +0000 (23:30 +0000)]
bug 122:
We don't need to keep track of CPRs any more.

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

20 years agobug 122:
Reid Spencer [Sat, 17 Jul 2004 23:29:46 +0000 (23:29 +0000)]
bug 122:
Now that GlobalVariable is a constant (via derivation from GlobalValue),
override the replaceUsesOfWithOnConstant method.

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

20 years agobug 122:
Reid Spencer [Sat, 17 Jul 2004 23:28:28 +0000 (23:28 +0000)]
bug 122:
- derive from Constant
- declare needed overrides from Constant class

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

20 years ago****** ABOLISH ConstantPointerRef *****
Reid Spencer [Sat, 17 Jul 2004 23:26:57 +0000 (23:26 +0000)]
****** ABOLISH ConstantPointerRef *****

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

20 years agoExtend constructor so that it can support GlobalValue's (with names).
Reid Spencer [Sat, 17 Jul 2004 23:26:12 +0000 (23:26 +0000)]
Extend constructor so that it can support GlobalValue's (with names).
Make GlobalValue a "classof" Constant
Fix the classof(Value*) to include GlobalValue's

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

20 years agoConstant value not needed after CPR's disappear.
Reid Spencer [Sat, 17 Jul 2004 23:23:30 +0000 (23:23 +0000)]
Constant value not needed after CPR's disappear.

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

20 years agoIt looks like physref->virtreg joining is working fine. Enable it by default
Chris Lattner [Sat, 17 Jul 2004 21:51:25 +0000 (21:51 +0000)]
It looks like physref->virtreg joining is working fine.  Enable it by default
but make virtreg->virtreg joining stay off by default

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

20 years agoMake sure to emit the immediate byte for instructions like:
Chris Lattner [Sat, 17 Jul 2004 20:26:14 +0000 (20:26 +0000)]
Make sure to emit the immediate byte for instructions like:
shrd [mem], reg, imm

This fixes the jit-ls failure on 186.crafty.

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

20 years agoReserve the correct amt of space.
Chris Lattner [Sat, 17 Jul 2004 20:24:05 +0000 (20:24 +0000)]
Reserve the correct amt of space.

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

20 years agoHrm, I think we need a "Reid is buggy" bug ;-)
Chris Lattner [Sat, 17 Jul 2004 18:50:19 +0000 (18:50 +0000)]
Hrm, I think we need a "Reid is buggy" bug  ;-)

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

20 years agoWe don't really need to #include IPO.h into this file.
Misha Brukman [Sat, 17 Jul 2004 18:37:46 +0000 (18:37 +0000)]
We don't really need to #include IPO.h into this file.

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

20 years agoInitial (outline only) draft of the System Library requirements, design
Reid Spencer [Sat, 17 Jul 2004 10:04:49 +0000 (10:04 +0000)]
Initial (outline only) draft of the System Library requirements, design
and details documentation.

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

20 years agoAdded a README to point users to the documentation on the design of this
Reid Spencer [Sat, 17 Jul 2004 08:39:53 +0000 (08:39 +0000)]
Added a README to point users to the documentation on the design of this
library which is a prerequisite for maintaining the library.

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

20 years agoFix incorrect computation of mod/ref sets. Do not ask for mod/ref information
Chris Lattner [Sat, 17 Jul 2004 07:40:34 +0000 (07:40 +0000)]
Fix incorrect computation of mod/ref sets.  Do not ask for mod/ref information
for objects of size 0.

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

20 years agoPrint modref information in a useful way.
Chris Lattner [Sat, 17 Jul 2004 06:43:20 +0000 (06:43 +0000)]
Print modref information in a useful way.

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

20 years agoCleanups: fold two loops into one
Chris Lattner [Sat, 17 Jul 2004 06:28:49 +0000 (06:28 +0000)]
Cleanups: fold two loops into one
New features: -print-all-alias-modref-info option, print more info

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

20 years agolink.h causes problems on some platforms and is not needed on solaris, where
Chris Lattner [Sat, 17 Jul 2004 03:09:12 +0000 (03:09 +0000)]
link.h causes problems on some platforms and is not needed on solaris, where
the comment came from.

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

20 years agoRemove dead file
Chris Lattner [Sat, 17 Jul 2004 02:56:48 +0000 (02:56 +0000)]
Remove dead file

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

20 years agoAdd note about IA64 C++
Chris Lattner [Sat, 17 Jul 2004 02:04:41 +0000 (02:04 +0000)]
Add note about IA64 C++

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

20 years agoFix warning on 64-bit machines
Brian Gaeke [Fri, 16 Jul 2004 21:40:32 +0000 (21:40 +0000)]
Fix warning on 64-bit machines

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

20 years ago* Use LI(S) to copy constants into registers intead of ADDI(S) as the latter is
Misha Brukman [Fri, 16 Jul 2004 21:06:24 +0000 (21:06 +0000)]
* Use LI(S) to copy constants into registers intead of ADDI(S) as the latter is
  a funky way to "use" R0 for a 0-valued operand
* Add IMPLICIT_DEFs for incoming function arguments via registers to help the
  register allocator not clobber those registers
* Implement comparisons with longs
* Teach emitSelectOperation() to fold the SetCC operation

Patch contributed by Nate Begeman

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

20 years ago* Store all non-volatile int registers R13-31 on the stack, restore on exit
Misha Brukman [Fri, 16 Jul 2004 20:55:20 +0000 (20:55 +0000)]
* Store all non-volatile int registers R13-31 on the stack, restore on exit
* Fix comment formatting

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

20 years agoFix code formatting
Misha Brukman [Fri, 16 Jul 2004 20:54:25 +0000 (20:54 +0000)]
Fix code formatting

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

20 years agoImplement PowerPCInstrInfo::isMoveInstr(), patch by Nate Begeman
Misha Brukman [Fri, 16 Jul 2004 20:51:55 +0000 (20:51 +0000)]
Implement PowerPCInstrInfo::isMoveInstr(), patch by Nate Begeman

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

20 years agoAdd prototype for TargetInstrInfo::isMoveInstr()
Misha Brukman [Fri, 16 Jul 2004 20:50:55 +0000 (20:50 +0000)]
Add prototype for TargetInstrInfo::isMoveInstr()

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

20 years ago* Enable allocation of registers r2-r10
Misha Brukman [Fri, 16 Jul 2004 20:35:20 +0000 (20:35 +0000)]
* Enable allocation of registers r2-r10
* Allocate registers 13-31 backwards (to be able to store them all at once)

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

20 years agoAdd IMPLICIT_DEFS pseudo-instruction; patch by: Nate Begeman
Misha Brukman [Fri, 16 Jul 2004 20:33:41 +0000 (20:33 +0000)]
Add IMPLICIT_DEFS pseudo-instruction; patch by: Nate Begeman

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

20 years agoThe generated instruction selector isn't (yet) functional
Misha Brukman [Fri, 16 Jul 2004 20:31:13 +0000 (20:31 +0000)]
The generated instruction selector isn't (yet) functional

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

20 years ago* Output non-lazy linking stubs for external global variables
Misha Brukman [Fri, 16 Jul 2004 20:29:04 +0000 (20:29 +0000)]
* Output non-lazy linking stubs for external global variables
* Get rid of dead and #if 0'd code
* Minor for loop speed-up: save end iterator instead of querying every time

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

20 years agoCorrectly build shared objects on MacOS X for debugging code generators
Misha Brukman [Fri, 16 Jul 2004 19:45:45 +0000 (19:45 +0000)]
Correctly build shared objects on MacOS X for debugging code generators

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

20 years agoDefine double alignment as 8 bytes now that assert(DoubleAlignment == PointerSize)
Misha Brukman [Fri, 16 Jul 2004 19:32:12 +0000 (19:32 +0000)]
Define double alignment as 8 bytes now that assert(DoubleAlignment == PointerSize)
has been eliminated

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

20 years ago* Add spaces between words and numbers in comments printed out for longs/floats
Misha Brukman [Fri, 16 Jul 2004 19:01:13 +0000 (19:01 +0000)]
* Add spaces between words and numbers in comments printed out for longs/floats
* Print out IMPLICIT_DEFS as comments in the assembly, patch by Nate Begeman

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

20 years agoFix grammar.
Misha Brukman [Fri, 16 Jul 2004 17:40:28 +0000 (17:40 +0000)]
Fix grammar.

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

20 years agoAdd convinience constructor for function calls with two args.
Alkis Evlogimenos [Fri, 16 Jul 2004 12:04:28 +0000 (12:04 +0000)]
Add convinience constructor for function calls with two args.

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

20 years agoAdd a class for pseudo-instructions. Use it.
Brian Gaeke [Fri, 16 Jul 2004 10:32:10 +0000 (10:32 +0000)]
Add a class for pseudo-instructions. Use it.
Add IMPLICIT_USE and IMPLICIT_DEF, a la X86.

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

20 years agoAdd what will eventually be the TSFlags. Big switch(opcode) statements are bad.
Brian Gaeke [Fri, 16 Jul 2004 10:31:59 +0000 (10:31 +0000)]
Add what will eventually be the TSFlags. Big switch(opcode) statements are bad.

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

20 years agoAdd special handling for pseudo-instructions (print them as comments).
Brian Gaeke [Fri, 16 Jul 2004 10:31:47 +0000 (10:31 +0000)]
Add special handling for pseudo-instructions (print them as comments).

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

20 years agoAdd to-do list.
Brian Gaeke [Fri, 16 Jul 2004 10:31:36 +0000 (10:31 +0000)]
Add to-do list.

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

20 years agoDo IMPLICIT_DEFs on incoming args' hard regs, to avoid confusing the regalloc.
Brian Gaeke [Fri, 16 Jul 2004 10:31:25 +0000 (10:31 +0000)]
Do IMPLICIT_DEFs on incoming args' hard regs, to avoid confusing the regalloc.
Support single-fp incoming args.
Support single-fp outgoing args ('call' operands).
Support double-fp return values.

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

20 years agoThe powerpc is now gone. However it is now just known as the Skeleton target.
Chris Lattner [Fri, 16 Jul 2004 07:14:34 +0000 (07:14 +0000)]
The powerpc is now gone.  However it is now just known as the Skeleton target.

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

20 years agoBuild skeleton target
Chris Lattner [Fri, 16 Jul 2004 07:12:46 +0000 (07:12 +0000)]
Build skeleton target

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

20 years agoBuild the skeleton target
Chris Lattner [Fri, 16 Jul 2004 07:11:53 +0000 (07:11 +0000)]
Build the skeleton target

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

20 years agoInitial checkin of the rest of the skeleton target
Chris Lattner [Fri, 16 Jul 2004 07:11:15 +0000 (07:11 +0000)]
Initial checkin of the rest of the skeleton target

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

20 years agoInitial skeleton tablegen files
Chris Lattner [Fri, 16 Jul 2004 06:29:19 +0000 (06:29 +0000)]
Initial skeleton tablegen files

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

20 years agoAdd skeleton makefile
Chris Lattner [Fri, 16 Jul 2004 06:20:55 +0000 (06:20 +0000)]
Add skeleton makefile

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

20 years agoInitial readme
Chris Lattner [Fri, 16 Jul 2004 06:12:28 +0000 (06:12 +0000)]
Initial readme

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

20 years agoFix the regressions handling unnamed global variables
Chris Lattner [Fri, 16 Jul 2004 01:18:09 +0000 (01:18 +0000)]
Fix the regressions handling unnamed global variables

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

20 years agoFor 64-bit platform support, we now use the clEnumValEnd macro to terminate
Chris Lattner [Fri, 16 Jul 2004 00:10:54 +0000 (00:10 +0000)]
For 64-bit platform support, we now use the clEnumValEnd macro to terminate
cl::values lists

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

20 years agoIA64 compat
Chris Lattner [Fri, 16 Jul 2004 00:08:28 +0000 (00:08 +0000)]
IA64 compat

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

20 years agoFix IA64 compatibility
Chris Lattner [Fri, 16 Jul 2004 00:06:01 +0000 (00:06 +0000)]
Fix IA64 compatibility

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

20 years agoUse new macro
Chris Lattner [Fri, 16 Jul 2004 00:04:54 +0000 (00:04 +0000)]
Use new macro

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

20 years agoBe compatible with IA64
Chris Lattner [Fri, 16 Jul 2004 00:04:13 +0000 (00:04 +0000)]
Be compatible with IA64

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

20 years agoPassing integer 0 in for a pointer value doesn't work on IA64. Fix this
Chris Lattner [Fri, 16 Jul 2004 00:02:21 +0000 (00:02 +0000)]
Passing integer 0 in for a pointer value doesn't work on IA64.  Fix this
by using a new macro.

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

20 years agoAdd a new macro to be used for the end of enum lists.
Chris Lattner [Fri, 16 Jul 2004 00:01:05 +0000 (00:01 +0000)]
Add a new macro to be used for the end of enum lists.

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

20 years agoThis patch was contributed by Daniel Berlin!
Chris Lattner [Thu, 15 Jul 2004 23:36:43 +0000 (23:36 +0000)]
This patch was contributed by Daniel Berlin!

Speed up SCCP substantially by processing overdefined values quickly.  This
patch speeds up SCCP by about 30-40% on large testcases.

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

20 years agoFix PR404 try #2
Chris Lattner [Thu, 15 Jul 2004 08:20:22 +0000 (08:20 +0000)]
Fix PR404 try #2

This version takes about 1s longer than the previous one (down to 2.35s),
but on the positive side, it actually works :)

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

20 years agoGive SetVector range support
Chris Lattner [Thu, 15 Jul 2004 08:18:31 +0000 (08:18 +0000)]
Give SetVector range support

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

20 years agoNuke a clearly bogus assertion
Chris Lattner [Thu, 15 Jul 2004 07:44:34 +0000 (07:44 +0000)]
Nuke a clearly bogus assertion

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

20 years agoRevert previous patch until I get a bug fixed
Chris Lattner [Thu, 15 Jul 2004 05:36:31 +0000 (05:36 +0000)]
Revert previous patch until I get a bug fixed

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

20 years agoQOI issue fixed
Chris Lattner [Thu, 15 Jul 2004 04:30:35 +0000 (04:30 +0000)]
QOI issue fixed

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

20 years agoFix PR404: Loop simplify is really slow on 252.eon
Chris Lattner [Thu, 15 Jul 2004 04:27:04 +0000 (04:27 +0000)]
Fix PR404: Loop simplify is really slow on 252.eon

This eliminates an N*N*logN algorithm from the loop simplify pass, replacing
it with a much simpler and faster alternative.  In a debug build, this reduces
gccas time on eon from 85s to 42s.

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

20 years agoBug fixed
Chris Lattner [Thu, 15 Jul 2004 02:59:24 +0000 (02:59 +0000)]
Bug fixed

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

20 years agoFinal fix for PR341: eliminate operator<<(ostream, Value*). Clients should
Chris Lattner [Thu, 15 Jul 2004 02:54:36 +0000 (02:54 +0000)]
Final fix for PR341: eliminate operator<<(ostream, Value*).  Clients should
now send references to ostreams instead of pointers.  Sending pointers to
ostreams will print their addresses.

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

20 years agoFixes for PR341
Chris Lattner [Thu, 15 Jul 2004 02:51:32 +0000 (02:51 +0000)]
Fixes for PR341

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

20 years agoFixes for PR341
Chris Lattner [Thu, 15 Jul 2004 02:51:31 +0000 (02:51 +0000)]
Fixes for PR341

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

20 years agoFix for PR341
Chris Lattner [Thu, 15 Jul 2004 02:50:38 +0000 (02:50 +0000)]
Fix for PR341

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

20 years agoFix for PR341
Chris Lattner [Thu, 15 Jul 2004 02:40:04 +0000 (02:40 +0000)]
Fix for PR341

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

20 years agoRevert stuff that I didn't mean to checkin
Chris Lattner [Thu, 15 Jul 2004 02:33:38 +0000 (02:33 +0000)]
Revert stuff that I didn't mean to checkin

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

20 years agoFixes for PR341
Chris Lattner [Thu, 15 Jul 2004 02:31:46 +0000 (02:31 +0000)]
Fixes for PR341

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

20 years agoFix for PR341
Chris Lattner [Thu, 15 Jul 2004 02:26:49 +0000 (02:26 +0000)]
Fix for PR341

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

20 years agoPatches towards fixing PR341
Chris Lattner [Thu, 15 Jul 2004 02:14:30 +0000 (02:14 +0000)]
Patches towards fixing PR341

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