summaryrefslogtreecommitdiff
path: root/lib/CodeGen
Commit message (Collapse)AuthorAge
...
* Fun arithmetic with iterators aimed at fixing a bug: inserting instructionsMisha Brukman2002-12-04
| | | | | | | | after the *current* instruction while keeping the iterator in the same 'logical' place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4923 91177308-0d34-0410-b5e6-96231b3b80d8
* Print out direct global referencesChris Lattner2002-12-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4906 91177308-0d34-0410-b5e6-96231b3b80d8
* This should fix the bug seen with some registers not being allocatedMisha Brukman2002-12-03
| | | | | | | | | | | | correctly: skipping instructions by incorrectly incrementing the pointer. Also adds support for building a reg-to-regclass map, and splits the function for saving register to stack into two, one suitable for virtual registers (which also assigns it a physical register) and one for simply storing back physical registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4898 91177308-0d34-0410-b5e6-96231b3b80d8
* Checkin debug implementation of MCEChris Lattner2002-12-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4893 91177308-0d34-0410-b5e6-96231b3b80d8
* * Abstracted out stack space allocation into its own functionMisha Brukman2002-12-02
| | | | | | | * Added saving of register values to the stack git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4858 91177308-0d34-0410-b5e6-96231b3b80d8
* A simple (spilling) register allocator.Misha Brukman2002-11-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4828 91177308-0d34-0410-b5e6-96231b3b80d8
* Initialize the SSARegMap.Misha Brukman2002-11-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4782 91177308-0d34-0410-b5e6-96231b3b80d8
* Print is const!Chris Lattner2002-11-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4737 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove only uses of markDef/markDefAndUse methodsChris Lattner2002-11-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4719 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix warningChris Lattner2002-11-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4649 91177308-0d34-0410-b5e6-96231b3b80d8
* Move function to cpp file from headerChris Lattner2002-11-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4510 91177308-0d34-0410-b5e6-96231b3b80d8
* New iostream definitionsChris Lattner2002-11-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4482 91177308-0d34-0410-b5e6-96231b3b80d8
* Restore support for indirect function calls (which briefly wasn't workingVikram S. Adve2002-10-31
| | | | | | | after I removed annotations on MachineInstr for the CallDescriptor). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4469 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove fixmeChris Lattner2002-10-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4447 91177308-0d34-0410-b5e6-96231b3b80d8
* Add special code to make printing SSA form machine instructions nicerChris Lattner2002-10-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4446 91177308-0d34-0410-b5e6-96231b3b80d8
* Use MRegisterInfo, if available, to print symbolic register namesChris Lattner2002-10-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4438 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement structured machine code printingChris Lattner2002-10-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4435 91177308-0d34-0410-b5e6-96231b3b80d8
* Make argsize calculation stuff optional, so that Targets without FrameInfoChris Lattner2002-10-29
| | | | | | | objects yet don't die git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4427 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement autoinserting ctorChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4426 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename annotation idChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4425 91177308-0d34-0410-b5e6-96231b3b80d8
* Merge with sparc backendChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4403 91177308-0d34-0410-b5e6-96231b3b80d8
* X86 merge is complete, eliminate unused codeChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4400 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove separate vector of implicit refs from MachineInstr, andVikram S. Adve2002-10-29
| | | | | | | | | instead record them as extra operands in the operands[] vector. Also, move CallArgsDescriptor into this class instead of making it an annotation on the machine instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4399 91177308-0d34-0410-b5e6-96231b3b80d8
* Move CallArgsDescriptor into this class instead of making it anVikram S. Adve2002-10-29
| | | | | | | annotation on the machine instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4398 91177308-0d34-0410-b5e6-96231b3b80d8
* Move TargetInstrDescriptors extern to the one .cpp file that refers to it:Chris Lattner2002-10-29
| | | | | | | MachineInstr.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4392 91177308-0d34-0410-b5e6-96231b3b80d8
* Use higher level methods, don't use TargetInstrDescriptors directly!Chris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4389 91177308-0d34-0410-b5e6-96231b3b80d8
* Use higher level methodChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4386 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove #include, misleading comment, and a typedef used only onceChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4383 91177308-0d34-0410-b5e6-96231b3b80d8
* Inline typedef, eliminate unused methodChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4382 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove long dead #if 0Chris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4381 91177308-0d34-0410-b5e6-96231b3b80d8
* Add #includes that were eliminated from headersChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4380 91177308-0d34-0410-b5e6-96231b3b80d8
* De-inline methodsChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4379 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove #includeChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4378 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unneeded #includeChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4377 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove forward declChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4376 91177308-0d34-0410-b5e6-96231b3b80d8
* Make assertIGNode be private to the InterferenceGraph.cpp fileChris Lattner2002-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4375 91177308-0d34-0410-b5e6-96231b3b80d8
* MachineInstrInfo no longer #includes this header, so we mustChris Lattner2002-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4366 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove all traces of the "Opcode Mask" field in the MachineInstr classChris Lattner2002-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4359 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove more default arguments that are never usedChris Lattner2002-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4358 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove default operands that are never usedChris Lattner2002-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4357 91177308-0d34-0410-b5e6-96231b3b80d8
* * Make MachineOperand ctors private, so MachineOperand can only be createdChris Lattner2002-10-28
| | | | | | | | | by MachineInstr. * Add a bunch of new methods to allow incremental addition of operands to the machine instr instance. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4356 91177308-0d34-0410-b5e6-96231b3b80d8
* Replaced uses of deprecated `MachineFunction::get(BasicBlock *BB)'.Misha Brukman2002-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4351 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove two arguments that are never specifiedChris Lattner2002-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4348 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename some regalloc fieldsChris Lattner2002-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4346 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate usage of MachineBasicBlock::getChris Lattner2002-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4344 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove usage of MachineBasicBlock::getChris Lattner2002-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4342 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove usage of MachineBasicBlock::getChris Lattner2002-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4341 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate unneccesary use of MachineBasicBlock::getChris Lattner2002-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4339 91177308-0d34-0410-b5e6-96231b3b80d8
* s/method/functionChris Lattner2002-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4338 91177308-0d34-0410-b5e6-96231b3b80d8
* Change MachineBasicBlock's to not be Annotations, instead they are kept asChris Lattner2002-10-28
| | | | | | | | part of a linked list tracked by MachineFunction. MachineBasicBlock::get is now linear time instead of constant time, and thus is deprecated! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4337 91177308-0d34-0410-b5e6-96231b3b80d8