summaryrefslogtreecommitdiff
path: root/lib/CodeGen
Commit message (Collapse)AuthorAge
...
* For PR411:Reid Spencer2006-01-16
| | | | | | | | | | | | | | | | | This patch is an incremental step towards supporting a flat symbol table. It de-overloads the intrinsic functions by providing type-specific intrinsics and arranging for automatically upgrading from the old overloaded name to the new non-overloaded name. Specifically: llvm.isunordered -> llvm.isunordered.f32, llvm.isunordered.f64 llvm.sqrt -> llvm.sqrt.f32, llvm.sqrt.f64 llvm.ctpop -> llvm.ctpop.i8, llvm.ctpop.i16, llvm.ctpop.i32, llvm.ctpop.i64 llvm.ctlz -> llvm.ctlz.i8, llvm.ctlz.i16, llvm.ctlz.i32, llvm.ctlz.i64 llvm.cttz -> llvm.cttz.i8, llvm.cttz.i16, llvm.cttz.i32, llvm.cttz.i64 New code should not use the overloaded intrinsic names. Warnings will be emitted if they are used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25366 91177308-0d34-0410-b5e6-96231b3b80d8
* Constant fold ctpop/ctlz/cttz, and a couple other small cleanupsNate Begeman2006-01-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25357 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand case for 64b Legalize, even though no one should end up using thisNate Begeman2006-01-16
| | | | | | | | (itanium supports bswap natively, alpha should custom lower it using the VAX floating point swapload, ha ha). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25356 91177308-0d34-0410-b5e6-96231b3b80d8
* Add BSWAP stuff to intrinsic lowering for CBE & friends.Nate Begeman2006-01-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25355 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable two transformations that contribute to bus errors on SparcV8.Chris Lattner2006-01-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25339 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow the target to specify 'expand' if they just require the amount toChris Lattner2006-01-15
| | | | | | | be subtracted from the stack pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25331 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix custom lowering of dynamic_stackallocChris Lattner2006-01-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25329 91177308-0d34-0410-b5e6-96231b3b80d8
* add a missing node nameChris Lattner2006-01-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25327 91177308-0d34-0410-b5e6-96231b3b80d8
* Token chain results are not always the first or last result. Consider ↵Chris Lattner2006-01-14
| | | | | | copyfromreg nodes, where they are the middle result (the flag result is last) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25325 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove some duplicated codeNate Begeman2006-01-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25313 91177308-0d34-0410-b5e6-96231b3b80d8
* bswap implementationNate Begeman2006-01-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25312 91177308-0d34-0410-b5e6-96231b3b80d8
* If a target specified a stack pointer with setStackPointerRegisterToSaveRestore,Chris Lattner2006-01-13
| | | | | | | lower STACKSAVE/STACKRESTORE into a copy from/to that register. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25276 91177308-0d34-0410-b5e6-96231b3b80d8
* Compile llvm.stacksave/restore into STACKSAVE/STACKRESTORE nodes, and allowChris Lattner2006-01-13
| | | | | | | targets to custom expand them as they desire. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25273 91177308-0d34-0410-b5e6-96231b3b80d8
* add stacksave/stackrestore nodesChris Lattner2006-01-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25270 91177308-0d34-0410-b5e6-96231b3b80d8
* Add "support" for stacksave/stackrestore to the dag iselChris Lattner2006-01-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25268 91177308-0d34-0410-b5e6-96231b3b80d8
* Add "support" for the llvm.stacksave/stackrestore intrinsics, this isChris Lattner2006-01-13
| | | | | | | used by the C backend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25267 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a simple missing fold to produce this:Chris Lattner2006-01-12
| | | | | | | | | | | | subfic r3, r2, 33 instead of this: subfic r2, r2, 32 addi r3, r2, 1 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25255 91177308-0d34-0410-b5e6-96231b3b80d8
* If using __main, emit global ctor/dtor list like any other globalChris Lattner2006-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25251 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't create rotate instructions in unsupported types, because we don't haveChris Lattner2006-01-12
| | | | | | | promote/expand code yet. This fixes the 177.mesa failure on PPC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25250 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow custom lowering of DYNAMIC_STACKALLOC.Evan Cheng2006-01-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25224 91177308-0d34-0410-b5e6-96231b3b80d8
* ignore register #0Evan Cheng2006-01-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25223 91177308-0d34-0410-b5e6-96231b3b80d8
* Add bswap, rotl, and rotr nodesNate Begeman2006-01-11
| | | | | | | | | | Add dag combiner code to recognize rotl, rotr Add ppc code to match rotl Targets should add rotl/rotr patterns if they have them git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25222 91177308-0d34-0410-b5e6-96231b3b80d8
* silence a warningChris Lattner2006-01-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25184 91177308-0d34-0410-b5e6-96231b3b80d8
* Added selection DAG support for the extractelement operation.Robert Bocchino2006-01-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25179 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor cleanup, no functionality change for current targetsChris Lattner2006-01-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25173 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix an exponential function in libcall insertion to not be exponential. :)Chris Lattner2006-01-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25165 91177308-0d34-0410-b5e6-96231b3b80d8
* * Allow custom lowering of ADD_PARTS, SUB_PARTS, SHL_PARTS, SRA_PARTS,Evan Cheng2006-01-09
| | | | | | | | and SRL_PARTS. * Fix a bug that caused *_PARTS to be custom lowered twice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25157 91177308-0d34-0410-b5e6-96231b3b80d8
* New getNode() variants.Evan Cheng2006-01-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25156 91177308-0d34-0410-b5e6-96231b3b80d8
* Unbreak the build :(Chris Lattner2006-01-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25124 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert the previous check-in. Leave shl x, 1 along for target to deal with.Evan Cheng2006-01-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25121 91177308-0d34-0410-b5e6-96231b3b80d8
* fold (shl x, 1) -> (add x, x)Evan Cheng2006-01-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25120 91177308-0d34-0410-b5e6-96231b3b80d8
* Support for custom lowering of ISD::RET.Evan Cheng2006-01-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25116 91177308-0d34-0410-b5e6-96231b3b80d8
* Added initial support for DEBUG_LABEL allowing debug specific labels to beJim Laskey2006-01-05
| | | | | | | inserted in the code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25104 91177308-0d34-0410-b5e6-96231b3b80d8
* Applied some recommend changes from sabre. The dominate one beginning "let theJim Laskey2006-01-04
| | | | | | | | pass manager do it's thing." Fixes crash when compiling -g files and suppresses dwarf statements if no debug info is present. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25100 91177308-0d34-0410-b5e6-96231b3b80d8
* Add unique id to debug location for debug label use (work in progress.)Jim Laskey2006-01-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25096 91177308-0d34-0410-b5e6-96231b3b80d8
* Add check for debug presence.Jim Laskey2006-01-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25095 91177308-0d34-0410-b5e6-96231b3b80d8
* Tie dwarf generation to darwin assembler.Jim Laskey2006-01-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25093 91177308-0d34-0410-b5e6-96231b3b80d8
* Moving MachineDebugInfo to module level location.Jim Laskey2006-01-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25090 91177308-0d34-0410-b5e6-96231b3b80d8
* Change how MachineDebugInfo is fetched.Jim Laskey2006-01-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25089 91177308-0d34-0410-b5e6-96231b3b80d8
* Extending MachineDebugInfo.Jim Laskey2006-01-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25086 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for targets (like Alpha) that have terminator instructions whichChris Lattner2006-01-04
| | | | | | | | | | use virtual registers. We now allow the first instruction in a block of terminators to use virtual registers, and update phi elimination to correctly update livevar when eliminating phi's. This fixes a problem on a testcase Andrew sent me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25083 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an assertion, update DefInst even though no one uses it (dangling pointersChris Lattner2006-01-04
| | | | | | | don't help anyone) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25081 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a LiveVariables::VarInfo::dump methodChris Lattner2006-01-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25080 91177308-0d34-0410-b5e6-96231b3b80d8
* Change a variable from being an iterator to a raw MachineInstr*, to makeChris Lattner2006-01-03
| | | | | | | GDB use tolerable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25064 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure to pass the offset into the new node, so that we don't silentlyNate Begeman2005-12-30
| | | | | | | drop it on the floor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25044 91177308-0d34-0410-b5e6-96231b3b80d8
* purity++Duraid Madina2005-12-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25041 91177308-0d34-0410-b5e6-96231b3b80d8
* add these so I can be less naughtyDuraid Madina2005-12-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25034 91177308-0d34-0410-b5e6-96231b3b80d8
* HB is *the* code janitor.Duraid Madina2005-12-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25031 91177308-0d34-0410-b5e6-96231b3b80d8
* mixed-STL programs are big and nasty :(Duraid Madina2005-12-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25030 91177308-0d34-0410-b5e6-96231b3b80d8
* allow custom lowering to return null for legal resultsAndrew Lenharth2005-12-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25007 91177308-0d34-0410-b5e6-96231b3b80d8