summaryrefslogtreecommitdiff
path: root/lib/CodeGen
Commit message (Collapse)AuthorAge
...
* * Straighten out #includesChris Lattner2002-02-03
| | | | | | | * Switch from MachineCodeForVMInstr to MachineCodeForInstruction model git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1644 91177308-0d34-0410-b5e6-96231b3b80d8
* * Get machine instrs from Instructin's by using MachineCodeForInstruction::getChris Lattner2002-02-03
| | | | | | | * Convert a few (*X). to X-> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1643 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a class forward declChris Lattner2002-02-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1637 91177308-0d34-0410-b5e6-96231b3b80d8
* LoopDepth calculation is now in CFG namespaceChris Lattner2002-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1601 91177308-0d34-0410-b5e6-96231b3b80d8
* Make it build with 2.95.3Chris Lattner2002-01-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1554 91177308-0d34-0410-b5e6-96231b3b80d8
* Oops lost a parenthesis somehow :(Chris Lattner2002-01-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1504 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed a bug in spill cost estimationRuchira Sasanka2002-01-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1500 91177308-0d34-0410-b5e6-96231b3b80d8
* PhyRegAlloc.cpp: Added temp area resetting before every callRuchira Sasanka2002-01-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1499 91177308-0d34-0410-b5e6-96231b3b80d8
* Added destructors and comments.Ruchira Sasanka2002-01-07
| | | | | | | Added correct spill candidate selection logic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1493 91177308-0d34-0410-b5e6-96231b3b80d8
* Added comments, destructors where necessary.Ruchira Sasanka2002-01-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1491 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate all uses of memInst->getIndicesBROKEN().Vikram S. Adve2001-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1485 91177308-0d34-0410-b5e6-96231b3b80d8
* Renamed inst_const_iterator -> const_inst_iteratorChris Lattner2001-12-04
| | | | | | | | Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1408 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename ConstPoolVal -> ConstantChris Lattner2001-12-03
| | | | | | | | Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1407 91177308-0d34-0410-b5e6-96231b3b80d8
* Split the PHINode class out from the iOther.h file into the iPHINode.h fileChris Lattner2001-12-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1405 91177308-0d34-0410-b5e6-96231b3b80d8
* Create a new #include "Support/..." directory structure to move thingsChris Lattner2001-11-27
| | | | | | | | | from "llvm/Support/..." that are not llvm dependant. Move files and fix #includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1400 91177308-0d34-0410-b5e6-96231b3b80d8
* Stuff after a #endif is not valid CPP input and breaks some compilersChris Lattner2001-11-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1375 91177308-0d34-0410-b5e6-96231b3b80d8
* The old getIndices has been deprecated, because it no longer works. It nowChris Lattner2001-11-26
| | | | | | | | is named getIndicesBROKEN() and shall be removed when the codebase is updated to not call it git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1338 91177308-0d34-0410-b5e6-96231b3b80d8
* Commented some popTempArg.. since it leads to a bugRuchira Sasanka2001-11-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1326 91177308-0d34-0410-b5e6-96231b3b80d8
* Added naming to inserted phi copy values - for easy debuggingRuchira Sasanka2001-11-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1325 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed a bug in setReLRegsUsedByMIRuchira Sasanka2001-11-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1323 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed some names of methods, added const etc.Ruchira Sasanka2001-11-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1322 91177308-0d34-0410-b5e6-96231b3b80d8
* Modify AllocateLocalVar method to take a size argument.Vikram S. Adve2001-11-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1318 91177308-0d34-0410-b5e6-96231b3b80d8
* fixed setUsedRegAtMIRuchira Sasanka2001-11-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1317 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed phi elimination codeRuchira Sasanka2001-11-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1311 91177308-0d34-0410-b5e6-96231b3b80d8
* Small changed to printing a machine operand - It the operand is a def, it printsRuchira Sasanka2001-11-14
| | | | | | | a star after it - only for debugging git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1309 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't assume constant operand can only be in position 1!Vikram S. Adve2001-11-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1308 91177308-0d34-0410-b5e6-96231b3b80d8
* Idiotic error in last fix.Vikram S. Adve2001-11-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1306 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't need to load a NULL pointer constant from memory!Vikram S. Adve2001-11-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1305 91177308-0d34-0410-b5e6-96231b3b80d8
* Added support method for setting interference for pseudo instructionsRuchira Sasanka2001-11-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1303 91177308-0d34-0410-b5e6-96231b3b80d8
* Added interference for args in pseudo instructionsRuchira Sasanka2001-11-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1300 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove much cruft from the MemAccessInst instructionChris Lattner2001-11-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1298 91177308-0d34-0410-b5e6-96231b3b80d8
* commented out lines printing code after schedulingRuchira Sasanka2001-11-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1295 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed a bug concering LR spilling. Earlier, added spilled code was not insertedRuchira Sasanka2001-11-13
| | | | | | | into the instruction stream correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1294 91177308-0d34-0410-b5e6-96231b3b80d8
* Do the same for allocating spills to get their alignment right too.Vikram S. Adve2001-11-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1285 91177308-0d34-0410-b5e6-96231b3b80d8
* When allocating space on stack for writing a register,Vikram S. Adve2001-11-12
| | | | | | | | use the size of the register, not the size of the Value type, to get the right alignment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1284 91177308-0d34-0410-b5e6-96231b3b80d8
* Bug fix in offset alignment computations: don't subtract the paddingVikram S. Adve2001-11-12
| | | | | | | value from size *before* subtracting size from offset! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1283 91177308-0d34-0410-b5e6-96231b3b80d8
* For phi elimination, now we are generating only one instructionRuchira Sasanka2001-11-12
| | | | | | | | using cpValue2Value instead of passing vector to createCopyInstructionByType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1272 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate most uses of the machine instruction vector for each LLVM instr,Vikram S. Adve2001-11-12
| | | | | | | | | since some m. instr. may be generated by LLVM instrs. in other blocks. Handle non-SSA (anti and output) edges and true edges uniformly by working with machine instructions alone. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1269 91177308-0d34-0410-b5e6-96231b3b80d8
* Added phi elimination code - not finalRuchira Sasanka2001-11-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1264 91177308-0d34-0410-b5e6-96231b3b80d8
* Improved printing routines.Vikram S. Adve2001-11-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1263 91177308-0d34-0410-b5e6-96231b3b80d8
* Major improvement to how nodes are built for a BB.Vikram S. Adve2001-11-12
| | | | | | | LLVM instruction is no longer recorded in each node, but BB is. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1262 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust all stack variable offsets to be aligned by size.Vikram S. Adve2001-11-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1261 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix errors in computing downgrowing offsets, and inVikram S. Adve2001-11-11
| | | | | | | computing size of extra outgoing args. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1256 91177308-0d34-0410-b5e6-96231b3b80d8
* Only add true dep. edges from an earlier to a later instruction.Vikram S. Adve2001-11-11
| | | | | | | | This wasn't a problem until we started putting copies for Phi values that produced cycles in the SchedGraph! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1254 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed code to ignore Phi Nodes in PhyRegAllocRuchira Sasanka2001-11-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1253 91177308-0d34-0410-b5e6-96231b3b80d8
* Coalesing bug fix - now checks for the same regType instead of the sameRuchira Sasanka2001-11-10
| | | | | | | regClass since FP class has two reg Types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1236 91177308-0d34-0410-b5e6-96231b3b80d8
* No major changeRuchira Sasanka2001-11-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1235 91177308-0d34-0410-b5e6-96231b3b80d8
* Use node->getOpCode() instead of node->getMachineInstr()->getOpCode().Vikram S. Adve2001-11-09
| | | | | | | Much nicer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1223 91177308-0d34-0410-b5e6-96231b3b80d8
* Add method declChris Lattner2001-11-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1217 91177308-0d34-0410-b5e6-96231b3b80d8