oota-llvm.git
22 years agoAdd printing support for /0 /1 type instructions
Chris Lattner [Thu, 21 Nov 2002 17:09:01 +0000 (17:09 +0000)]
Add printing support for /0 /1 type instructions

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

22 years agoAdd support for /0 /1, etc type instructions
Chris Lattner [Thu, 21 Nov 2002 17:08:49 +0000 (17:08 +0000)]
Add support for /0 /1, etc type instructions

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

22 years agoUser defined operators are not supposed to live beyond the lifetime of the
Chris Lattner [Thu, 21 Nov 2002 16:54:22 +0000 (16:54 +0000)]
User defined operators are not supposed to live beyond the lifetime of the
pass.  Detect and flag them.

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

22 years agoRename the SetCC X86 instructions to reflect the fact that they are the
Chris Lattner [Thu, 21 Nov 2002 16:19:42 +0000 (16:19 +0000)]
Rename the SetCC X86 instructions to reflect the fact that they are the
register versions

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

22 years agoSimplify setcc code a bit
Chris Lattner [Thu, 21 Nov 2002 15:52:38 +0000 (15:52 +0000)]
Simplify setcc code a bit

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

22 years agoSupport Registers of the form (B8+ rd) for example
Chris Lattner [Thu, 21 Nov 2002 02:00:20 +0000 (02:00 +0000)]
Support Registers of the form (B8+ rd) for example

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

22 years agoDont' set flags
Chris Lattner [Thu, 21 Nov 2002 01:59:50 +0000 (01:59 +0000)]
Dont' set flags

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

22 years agoImplement printing more, implement opcode output more
Chris Lattner [Thu, 21 Nov 2002 01:33:44 +0000 (01:33 +0000)]
Implement printing more, implement opcode output more

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

22 years agoHuge diff do to reindeinting comments.
Chris Lattner [Thu, 21 Nov 2002 01:33:28 +0000 (01:33 +0000)]
Huge diff do to reindeinting comments.
Basically just adds OpSize flags for instructions that need them.

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

22 years agoAdd new prefix flag
Chris Lattner [Thu, 21 Nov 2002 01:32:55 +0000 (01:32 +0000)]
Add new prefix flag

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

22 years agoPrint another class of instructions correctly, giving us: xorl EDX, EDX
Chris Lattner [Thu, 21 Nov 2002 00:30:01 +0000 (00:30 +0000)]
Print another class of instructions correctly, giving us: xorl EDX, EDX
for example.

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

22 years agoBooleans are types too. And they get stored in bytes. And InstructionSelection
Misha Brukman [Thu, 21 Nov 2002 00:25:56 +0000 (00:25 +0000)]
Booleans are types too. And they get stored in bytes. And InstructionSelection
doesn't assert fail. And everyone's happy. Yay!

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

22 years agoCheckin testcases for bugpoint
Chris Lattner [Wed, 20 Nov 2002 22:30:02 +0000 (22:30 +0000)]
Checkin testcases for bugpoint

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

22 years agoBuild bugpoint
Chris Lattner [Wed, 20 Nov 2002 22:28:18 +0000 (22:28 +0000)]
Build bugpoint

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

22 years agoInitial checkin of bugpoint
Chris Lattner [Wed, 20 Nov 2002 22:28:10 +0000 (22:28 +0000)]
Initial checkin of bugpoint

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

22 years agoInitial checkin of Module cloning support stuff
Chris Lattner [Wed, 20 Nov 2002 20:47:41 +0000 (20:47 +0000)]
Initial checkin of Module cloning support stuff

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

22 years agoCloning stuff doesn't modify the source module
Chris Lattner [Wed, 20 Nov 2002 20:22:58 +0000 (20:22 +0000)]
Cloning stuff doesn't modify the source module

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

22 years agoX86 target builds fine now
Chris Lattner [Wed, 20 Nov 2002 20:17:03 +0000 (20:17 +0000)]
X86 target builds fine now

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

22 years agoFix symbol table problem
Chris Lattner [Wed, 20 Nov 2002 19:32:43 +0000 (19:32 +0000)]
Fix symbol table problem

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

22 years agoAdd definitions for function headers from MRegisterInfo.h:
Misha Brukman [Wed, 20 Nov 2002 18:59:43 +0000 (18:59 +0000)]
Add definitions for function headers from MRegisterInfo.h:
Some functions are in X86RegisterInfo.cpp, others, because of the data they
need, are in X86RegisterClasses.cpp, which also defines some register classes:
byte, short, and int.

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

22 years agoCheck not only for MO_VirtualRegister, but MO_MachineRegister as well when
Misha Brukman [Wed, 20 Nov 2002 18:56:41 +0000 (18:56 +0000)]
Check not only for MO_VirtualRegister, but MO_MachineRegister as well when
printing out assembly. After all, we want the real thing too.

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

22 years agoInitialize the SSARegMap.
Misha Brukman [Wed, 20 Nov 2002 18:55:27 +0000 (18:55 +0000)]
Initialize the SSARegMap.

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

22 years agoMRegisterInfo.h - Added prototypes for functions we need to map a register to
Misha Brukman [Wed, 20 Nov 2002 18:54:53 +0000 (18:54 +0000)]
MRegisterInfo.h - Added prototypes for functions we need to map a register to
an appropriate TargetRegisterClass, also adds TargetRegisterClass definition.
TargetMachine.h - speling.

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

22 years agoDon't build X86 target yet
Chris Lattner [Wed, 20 Nov 2002 18:37:37 +0000 (18:37 +0000)]
Don't build X86 target yet

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

22 years ago - Eliminated the deferred symbol table stuff in Module & Function, it really
Chris Lattner [Wed, 20 Nov 2002 18:36:02 +0000 (18:36 +0000)]
  - Eliminated the deferred symbol table stuff in Module & Function, it really
    wasn't an optimization and it was causing lots of bugs.

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

22 years agoFix minor bugs
Chris Lattner [Wed, 20 Nov 2002 18:32:31 +0000 (18:32 +0000)]
Fix minor bugs

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

22 years agoEliminate the concept of a deferred symbol table. The optimization really isn't,
Chris Lattner [Wed, 20 Nov 2002 18:07:48 +0000 (18:07 +0000)]
Eliminate the concept of a deferred symbol table.  The optimization really isn't,
and it causes obscure bugs to show up in passes.

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

22 years agoAdd mapping in MachineFunction from SSA regs to Register Classes. Also,
Misha Brukman [Wed, 20 Nov 2002 00:58:23 +0000 (00:58 +0000)]
Add mapping in MachineFunction from SSA regs to Register Classes. Also,
uncovered a bug where registers were not being put in a map if they were not
found...

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

22 years agoSigh. Fixed some speling.
Misha Brukman [Wed, 20 Nov 2002 00:56:42 +0000 (00:56 +0000)]
Sigh. Fixed some speling.

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

22 years agoSSARegMap -- the mapping between SSARegisters and their RegisterClasses, which
Misha Brukman [Wed, 20 Nov 2002 00:53:10 +0000 (00:53 +0000)]
SSARegMap -- the mapping between SSARegisters and their RegisterClasses, which
imply types of SSA Registers. This is on a per-function basis, so the
MachineFunction contains the SSARegMap, and has accessor functions to it.

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

22 years agoThanks to the R8, R16, and R32 macros, I can now deal with registers that
Misha Brukman [Wed, 20 Nov 2002 00:47:40 +0000 (00:47 +0000)]
Thanks to the R8, R16, and R32 macros, I can now deal with registers that
belong to different register classes easier.

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

22 years agoRemove unneccesary #include
Chris Lattner [Tue, 19 Nov 2002 23:12:53 +0000 (23:12 +0000)]
Remove unneccesary #include

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

22 years agoImplement the CloneFunction function
Chris Lattner [Tue, 19 Nov 2002 23:12:22 +0000 (23:12 +0000)]
Implement the CloneFunction function

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

22 years agoMinor changes to cloning interface
Chris Lattner [Tue, 19 Nov 2002 22:54:01 +0000 (22:54 +0000)]
Minor changes to cloning interface

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

22 years agoFix two fixmes: integrate with inlining, and document
Chris Lattner [Tue, 19 Nov 2002 22:04:49 +0000 (22:04 +0000)]
Fix two fixmes: integrate with inlining, and document

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

22 years agoAdd support for bugpoint
Chris Lattner [Tue, 19 Nov 2002 21:57:18 +0000 (21:57 +0000)]
Add support for bugpoint

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

22 years agoExtend function cloning interface to support inlining
Chris Lattner [Tue, 19 Nov 2002 21:54:38 +0000 (21:54 +0000)]
Extend function cloning interface to support inlining

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

22 years agoRework inline pass to use cloning infrastructure to do the dirty work
Chris Lattner [Tue, 19 Nov 2002 21:54:07 +0000 (21:54 +0000)]
Rework inline pass to use cloning infrastructure to do the dirty work

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

22 years agoThis file is supersumed by Utils/Cloning.h
Chris Lattner [Tue, 19 Nov 2002 21:00:33 +0000 (21:00 +0000)]
This file is supersumed by Utils/Cloning.h

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

22 years agoStart using the new function cloning header
Chris Lattner [Tue, 19 Nov 2002 20:59:41 +0000 (20:59 +0000)]
Start using the new function cloning header

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

22 years agoMerge cloning and inlining utilities
Chris Lattner [Tue, 19 Nov 2002 20:58:38 +0000 (20:58 +0000)]
Merge cloning and inlining utilities

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

22 years agoMove MutatStructTypes.h out of IPO
Chris Lattner [Tue, 19 Nov 2002 20:49:40 +0000 (20:49 +0000)]
Move MutatStructTypes.h out of IPO

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

22 years agoMove inlining pass to IPO.h
Chris Lattner [Tue, 19 Nov 2002 20:43:24 +0000 (20:43 +0000)]
Move inlining pass to IPO.h

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

22 years agoRename CloneFunction.h to Cloning.h
Chris Lattner [Tue, 19 Nov 2002 20:08:24 +0000 (20:08 +0000)]
Rename CloneFunction.h to Cloning.h

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

22 years agoMove the function extractor pass from tools/extract into lib/Xform/IPO
Chris Lattner [Tue, 19 Nov 2002 18:42:59 +0000 (18:42 +0000)]
Move the function extractor pass from tools/extract into lib/Xform/IPO

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

22 years agoAdd a new Module::getNamedFunction method
Chris Lattner [Tue, 19 Nov 2002 18:41:44 +0000 (18:41 +0000)]
Add a new Module::getNamedFunction method

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

22 years agoIgnore options that are ""
Chris Lattner [Tue, 19 Nov 2002 17:10:14 +0000 (17:10 +0000)]
Ignore options that are ""

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

22 years agoRemove extra target.a entry
Chris Lattner [Tue, 19 Nov 2002 16:59:41 +0000 (16:59 +0000)]
Remove extra target.a entry

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

22 years agoBrian Gaeke says:
Brian Gaeke [Tue, 19 Nov 2002 09:08:47 +0000 (09:08 +0000)]
Brian Gaeke says:

lib/Target/X86/InstSelectSimple.cpp: Add a little something to
 visitBranchInst which supports conditional branches.
lib/Target/X86/X86InstrInfo.def: Add defs of JNE, JE, CMPri8

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

22 years ago*** empty log message ***
Nick Hildenbrandt [Mon, 18 Nov 2002 22:21:52 +0000 (22:21 +0000)]
*** empty log message ***

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

22 years agoAdd peak memory usage measurement capability
Chris Lattner [Mon, 18 Nov 2002 21:47:09 +0000 (21:47 +0000)]
Add peak memory usage measurement capability
Add (currently disabled) faciility to try to filter out pool allocation overhead from memory usage stats

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

22 years agoAdd facility to compute peak memory usage
Chris Lattner [Mon, 18 Nov 2002 21:45:55 +0000 (21:45 +0000)]
Add facility to compute peak memory usage

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

22 years agoInline DSTypeRec stuff into DSNode
Chris Lattner [Mon, 18 Nov 2002 21:45:30 +0000 (21:45 +0000)]
Inline DSTypeRec stuff into DSNode

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

22 years agoInline DSTypeRec into DSNode
Chris Lattner [Mon, 18 Nov 2002 21:45:07 +0000 (21:45 +0000)]
Inline DSTypeRec into DSNode

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

22 years agoAdd peak memory usage measurement stuff
Chris Lattner [Mon, 18 Nov 2002 21:44:46 +0000 (21:44 +0000)]
Add peak memory usage measurement stuff
Add structure padding optimizations

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

22 years agoAdd peak memory usage support
Chris Lattner [Mon, 18 Nov 2002 21:44:19 +0000 (21:44 +0000)]
Add peak memory usage support

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

22 years agoAdd stats
Chris Lattner [Mon, 18 Nov 2002 21:42:45 +0000 (21:42 +0000)]
Add stats

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

22 years agoTemplatize graph traits and iterator to work with const and non-const clients
Chris Lattner [Mon, 18 Nov 2002 21:42:19 +0000 (21:42 +0000)]
Templatize graph traits and iterator to work with const and non-const clients

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

22 years ago*** empty log message ***
Nick Hildenbrandt [Mon, 18 Nov 2002 20:55:50 +0000 (20:55 +0000)]
*** empty log message ***

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

22 years agoAdd helper method
Chris Lattner [Mon, 18 Nov 2002 06:57:05 +0000 (06:57 +0000)]
Add helper method

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

22 years agoStart trying to print instructions more correctly. For now we also print out the...
Chris Lattner [Mon, 18 Nov 2002 06:56:51 +0000 (06:56 +0000)]
Start trying to print instructions more correctly.  For now we also print out the opcode for each instruction as well.

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

22 years agoExpose base opcode
Chris Lattner [Mon, 18 Nov 2002 06:56:24 +0000 (06:56 +0000)]
Expose base opcode

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

22 years agoStart to add more information to instr.def
Chris Lattner [Mon, 18 Nov 2002 05:37:11 +0000 (05:37 +0000)]
Start to add more information to instr.def

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

22 years agoAdd instruction annotation about whether it has a 0x0F opcode prefix
Chris Lattner [Mon, 18 Nov 2002 01:59:28 +0000 (01:59 +0000)]
Add instruction annotation about whether it has a 0x0F opcode prefix

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

22 years agoAdd more void flags
Chris Lattner [Mon, 18 Nov 2002 01:37:48 +0000 (01:37 +0000)]
Add more void flags

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

22 years agoSet the void flag on instructions that should get it
Chris Lattner [Mon, 18 Nov 2002 01:34:36 +0000 (01:34 +0000)]
Set the void flag on instructions that should get it

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

22 years agoPrint is const!
Chris Lattner [Sun, 17 Nov 2002 23:22:13 +0000 (23:22 +0000)]
Print is const!

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

22 years agoPass on a targetmachine
Chris Lattner [Sun, 17 Nov 2002 23:22:03 +0000 (23:22 +0000)]
Pass on a targetmachine

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

22 years agoMake sure that print gets a targetmachine
Chris Lattner [Sun, 17 Nov 2002 23:21:45 +0000 (23:21 +0000)]
Make sure that print gets a targetmachine
 CVS: ----------------------------------------------------------------------

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

22 years agoArrange to have a TargetMachine available in X86InstrInfo::print
Chris Lattner [Sun, 17 Nov 2002 23:20:37 +0000 (23:20 +0000)]
Arrange to have a TargetMachine available in X86InstrInfo::print

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

22 years agoOmit the indirect node when printing call graphs
Chris Lattner [Sun, 17 Nov 2002 23:10:27 +0000 (23:10 +0000)]
Omit the indirect node when printing call graphs

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

22 years agoWow, I'm incapable of the simplest things today...
Chris Lattner [Sun, 17 Nov 2002 23:05:21 +0000 (23:05 +0000)]
Wow, I'm incapable of the simplest things today...

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

22 years agoRename registers to follow the intel style of all caps
Chris Lattner [Sun, 17 Nov 2002 23:03:46 +0000 (23:03 +0000)]
Rename registers to follow the intel style of all caps

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

22 years agoFix misleading indentation
Chris Lattner [Sun, 17 Nov 2002 22:57:23 +0000 (22:57 +0000)]
Fix misleading indentation

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

22 years agoAdd machine independant printer interface
Chris Lattner [Sun, 17 Nov 2002 22:54:55 +0000 (22:54 +0000)]
Add machine independant printer interface

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

22 years agoReorganize printing interface a bit
Chris Lattner [Sun, 17 Nov 2002 22:53:13 +0000 (22:53 +0000)]
Reorganize printing interface a bit

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

22 years agoAdd default implementation of printing interface
Chris Lattner [Sun, 17 Nov 2002 22:53:03 +0000 (22:53 +0000)]
Add default implementation of printing interface

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

22 years agoFinish enumating code
Chris Lattner [Sun, 17 Nov 2002 22:33:54 +0000 (22:33 +0000)]
Finish enumating code

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

22 years agoFix minor detail
Chris Lattner [Sun, 17 Nov 2002 22:33:26 +0000 (22:33 +0000)]
Fix minor detail

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

22 years agoAdd more numbers
Chris Lattner [Sun, 17 Nov 2002 22:19:10 +0000 (22:19 +0000)]
Add more numbers

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

22 years agoAdd hack to only consider indirect calls indirect if they do more than cast
Chris Lattner [Sun, 17 Nov 2002 22:17:12 +0000 (22:17 +0000)]
Add hack to only consider indirect calls indirect if they do more than cast
their source function

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

22 years agoAdd MaxSCC statistics
Chris Lattner [Sun, 17 Nov 2002 22:16:28 +0000 (22:16 +0000)]
Add MaxSCC statistics

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

22 years agoCount CallInsts correctly, remove unneccesary initializers
Chris Lattner [Sun, 17 Nov 2002 22:15:40 +0000 (22:15 +0000)]
Count CallInsts correctly, remove unneccesary initializers
S: ----------------------------------------------------------------------

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

22 years agoRemove unused methods
Chris Lattner [Sun, 17 Nov 2002 22:14:22 +0000 (22:14 +0000)]
Remove unused methods

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

22 years agoRemove only uses of markDef/markDefAndUse methods
Chris Lattner [Sun, 17 Nov 2002 22:14:08 +0000 (22:14 +0000)]
Remove only uses of markDef/markDefAndUse methods

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

22 years agoFix Mul/Div clobbers
Chris Lattner [Sun, 17 Nov 2002 21:56:38 +0000 (21:56 +0000)]
Fix Mul/Div clobbers

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

22 years agoConvert to use an enum to access def/use/use&def information. These make
Chris Lattner [Sun, 17 Nov 2002 21:56:10 +0000 (21:56 +0000)]
Convert to use an enum to access def/use/use&def information.  These make
reading code much easier than just seeing "true, false" especially when
default parameters default one but not both arguments.

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

22 years agoFix a few typos, implement load/store
Chris Lattner [Sun, 17 Nov 2002 21:11:55 +0000 (21:11 +0000)]
Fix a few typos, implement load/store

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

22 years agoNew testcase for loads and stores
Chris Lattner [Sun, 17 Nov 2002 21:06:13 +0000 (21:06 +0000)]
New testcase for loads and stores

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

22 years agoAdd functions to buld X86 specific constructs
Chris Lattner [Sun, 17 Nov 2002 21:03:35 +0000 (21:03 +0000)]
Add functions to buld X86 specific constructs

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

22 years agoReturn const refefrences to enable default construction
Chris Lattner [Sun, 17 Nov 2002 21:02:42 +0000 (21:02 +0000)]
Return const refefrences to enable default construction

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

22 years agoAdd information about memory index representation
Chris Lattner [Sun, 17 Nov 2002 20:33:26 +0000 (20:33 +0000)]
Add information about memory index representation

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

22 years agoAdd load/store instructions
Chris Lattner [Sun, 17 Nov 2002 20:33:12 +0000 (20:33 +0000)]
Add load/store instructions

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

22 years agoSwitch visitRet to use getClass()
Chris Lattner [Sun, 17 Nov 2002 20:07:45 +0000 (20:07 +0000)]
Switch visitRet to use getClass()

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

22 years agoUpdates
Nick Hildenbrandt [Fri, 15 Nov 2002 21:18:22 +0000 (21:18 +0000)]
Updates

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

22 years agoFix warning
Chris Lattner [Fri, 15 Nov 2002 18:04:16 +0000 (18:04 +0000)]
Fix warning

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

22 years agoinclude/llvm/CodeGen/MachineInstrBuilder.h: Add addClobber() inline
Brian Gaeke [Thu, 14 Nov 2002 22:32:30 +0000 (22:32 +0000)]
include/llvm/CodeGen/MachineInstrBuilder.h: Add addClobber() inline
 convenience method.  Fix typo in comment.
lib/Target/X86/InstSelectSimple.cpp: Explicitly specify some implicit uses.
 Use MOVZX/MOVSX instead of MOV instructions with sign extend instructions.
 Take out LEAVE instructions.
 32-bit IDIV and DIV use CDQ, not CWQ (CWQ is a typo).
 Fix typo in comment and remove some FIXME comments.
lib/Target/X86/Printer.cpp: Include X86InstrInfo.h and llvm/Function.h.
 Add some simple code to Printer::runOnFunction to iterate over
  MachineBasicBlocks and call X86InstrInfo::print().
lib/Target/X86/X86InstrInfo.def: Make some more instructions with
 implicit defs "Void".  Add more sign/zero extending "move" insns
 (movsx, movzx).
lib/Target/X86/X86RegisterInfo.def: Add EFLAGS as a register.

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

22 years agoGives the count for various instructions.
Dinakar Dhurjati [Wed, 13 Nov 2002 18:22:13 +0000 (18:22 +0000)]
Gives the count for various instructions.

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

22 years agoPass to compute various statisics related to DSGraphs.
Vikram S. Adve [Wed, 13 Nov 2002 15:41:00 +0000 (15:41 +0000)]
Pass to compute various statisics related to DSGraphs.
For now, this just computes the #indirect call sites and
the avg. #callees per indirect call site (actually it prints
both totals and the average is their ratio).

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

22 years agoFix bug: 2002-11-13-PointerFunction.ll
Chris Lattner [Wed, 13 Nov 2002 06:54:20 +0000 (06:54 +0000)]
Fix bug: 2002-11-13-PointerFunction.ll
This should fix codegen on vortex to work much better

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