aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Make sure that print gets a targetmachineChris Lattner2002-11-172-2/+4
| | | | | | | CVS: ---------------------------------------------------------------------- git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4735 91177308-0d34-0410-b5e6-96231b3b80d8
* Arrange to have a TargetMachine available in X86InstrInfo::printChris Lattner2002-11-173-7/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4734 91177308-0d34-0410-b5e6-96231b3b80d8
* Omit the indirect node when printing call graphsChris Lattner2002-11-171-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4733 91177308-0d34-0410-b5e6-96231b3b80d8
* Wow, I'm incapable of the simplest things today...Chris Lattner2002-11-171-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4732 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename registers to follow the intel style of all capsChris Lattner2002-11-171-27/+29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4731 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix misleading indentationChris Lattner2002-11-171-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4730 91177308-0d34-0410-b5e6-96231b3b80d8
* Add machine independant printer interfaceChris Lattner2002-11-172-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4729 91177308-0d34-0410-b5e6-96231b3b80d8
* Reorganize printing interface a bitChris Lattner2002-11-174-27/+35
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4728 91177308-0d34-0410-b5e6-96231b3b80d8
* Add default implementation of printing interfaceChris Lattner2002-11-171-3/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4727 91177308-0d34-0410-b5e6-96231b3b80d8
* Finish enumating codeChris Lattner2002-11-171-3/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4726 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix minor detailChris Lattner2002-11-172-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4725 91177308-0d34-0410-b5e6-96231b3b80d8
* Add more numbersChris Lattner2002-11-171-1/+170
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4724 91177308-0d34-0410-b5e6-96231b3b80d8
* Add hack to only consider indirect calls indirect if they do more than castChris Lattner2002-11-171-6/+14
| | | | | | | their source function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4723 91177308-0d34-0410-b5e6-96231b3b80d8
* Add MaxSCC statisticsChris Lattner2002-11-171-6/+25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4722 91177308-0d34-0410-b5e6-96231b3b80d8
* Count CallInsts correctly, remove unneccesary initializersChris Lattner2002-11-171-37/+3
| | | | | | | S: ---------------------------------------------------------------------- git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4721 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unused methodsChris Lattner2002-11-171-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4720 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove only uses of markDef/markDefAndUse methodsChris Lattner2002-11-171-6/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4719 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Mul/Div clobbersChris Lattner2002-11-172-24/+46
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4718 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert to use an enum to access def/use/use&def information. These makeChris Lattner2002-11-172-22/+54
| | | | | | | | 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
* Fix a few typos, implement load/storeChris Lattner2002-11-172-24/+90
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4716 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase for loads and storesChris Lattner2002-11-171-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4715 91177308-0d34-0410-b5e6-96231b3b80d8
* Add functions to buld X86 specific constructsChris Lattner2002-11-171-0/+28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4714 91177308-0d34-0410-b5e6-96231b3b80d8
* Return const refefrences to enable default constructionChris Lattner2002-11-171-7/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4713 91177308-0d34-0410-b5e6-96231b3b80d8
* Add information about memory index representationChris Lattner2002-11-171-1/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4712 91177308-0d34-0410-b5e6-96231b3b80d8
* Add load/store instructionsChris Lattner2002-11-171-1/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4711 91177308-0d34-0410-b5e6-96231b3b80d8
* Switch visitRet to use getClass()Chris Lattner2002-11-172-146/+132
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4710 91177308-0d34-0410-b5e6-96231b3b80d8
* UpdatesNick Hildenbrandt2002-11-151-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4709 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix warningChris Lattner2002-11-152-6/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4708 91177308-0d34-0410-b5e6-96231b3b80d8
* include/llvm/CodeGen/MachineInstrBuilder.h: Add addClobber() inlineBrian Gaeke2002-11-147-78/+137
| | | | | | | | | | | | | | | | | | | 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
* Gives the count for various instructions.Dinakar Dhurjati2002-11-131-0/+189
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4706 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass to compute various statisics related to DSGraphs.Vikram S. Adve2002-11-131-0/+86
| | | | | | | | | 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
* Fix bug: 2002-11-13-PointerFunction.llChris Lattner2002-11-131-1/+40
| | | | | | | 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
* New testcaseChris Lattner2002-11-131-0/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4703 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new numbersChris Lattner2002-11-121-7/+69
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4702 91177308-0d34-0410-b5e6-96231b3b80d8
* Inline graphs from outside the SCC into the SCC before SCC resolution startsChris Lattner2002-11-121-4/+104
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4701 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove dead method, add new methodChris Lattner2002-11-122-14/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4700 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix two bugs:Chris Lattner2002-11-121-27/+27
| | | | | | | | | | | * The globals vector was getting broken and unsorted, this caused vortex to get badly pessimized * Node offset handling was being handled really poorly, and in particular we were not merging types with offsets right. This causes several graphs to be non-merged. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4699 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new numbersChris Lattner2002-11-121-1/+58
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4698 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bugChris Lattner2002-11-112-6/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4697 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle a mismatch between # function args and call site argsChris Lattner2002-11-111-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4696 91177308-0d34-0410-b5e6-96231b3b80d8
* Elimiante calls to a node with nothing in it.Chris Lattner2002-11-111-36/+45
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4695 91177308-0d34-0410-b5e6-96231b3b80d8
* Complete rewrite of BU code to use Tarjan's SCC finding algorithm to driveChris Lattner2002-11-111-265/+351
| | | | | | | the algorithm instead of hand coded depth first iteration git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4694 91177308-0d34-0410-b5e6-96231b3b80d8
* Almost complete rewrite of BU closure codeChris Lattner2002-11-112-2/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4693 91177308-0d34-0410-b5e6-96231b3b80d8
* More numbersChris Lattner2002-11-111-1/+120
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4692 91177308-0d34-0410-b5e6-96231b3b80d8
* InstSelectSimple.cpp: (visitReturnInst) Add return instructions with returnBrian Gaeke2002-11-113-18/+129
| | | | | | | | values. X86InstrInfo.def: add LEAVE instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4691 91177308-0d34-0410-b5e6-96231b3b80d8
* Mark stuff reachable by _AUX_ calls as incomplete in the BU graphChris Lattner2002-11-111-9/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4690 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix infinite loop in the BU algorithm. Unfortunately this dies a seriousChris Lattner2002-11-111-30/+177
| | | | | | | death when handling moderately sized SCC's, but what can you do git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4689 91177308-0d34-0410-b5e6-96231b3b80d8
* Print the right call set sizeChris Lattner2002-11-111-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4688 91177308-0d34-0410-b5e6-96231b3b80d8
* Use call site mergeWith method to simplify codeChris Lattner2002-11-111-5/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4687 91177308-0d34-0410-b5e6-96231b3b80d8
* add methodChris Lattner2002-11-102-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4686 91177308-0d34-0410-b5e6-96231b3b80d8