summaryrefslogtreecommitdiff
path: root/lib/CodeGen
Commit message (Collapse)AuthorAge
...
* remove special case hacks for readport/readio from the binary operatorChris Lattner2005-05-14
| | | | | | | codepath git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22019 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement fixme's by memoizing nodes.Chris Lattner2005-05-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22018 91177308-0d34-0410-b5e6-96231b3b80d8
* Turn this into a wrapper for a simpler version of getNode.Chris Lattner2005-05-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22016 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate special purpose hacks for dynamic_stack_alloc.Chris Lattner2005-05-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22015 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the general mechanism for creating multi-value nodes instead of usingChris Lattner2005-05-14
| | | | | | | special case hacks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22014 91177308-0d34-0410-b5e6-96231b3b80d8
* Wrap long line, actually add node to the graph.Chris Lattner2005-05-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22011 91177308-0d34-0410-b5e6-96231b3b80d8
* legalize target-specific operationsChris Lattner2005-05-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22010 91177308-0d34-0410-b5e6-96231b3b80d8
* add a getNode() version that allows construction of any node type.Chris Lattner2005-05-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22009 91177308-0d34-0410-b5e6-96231b3b80d8
* LowerOperation takes a dagChris Lattner2005-05-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22004 91177308-0d34-0410-b5e6-96231b3b80d8
* Print the symbolic register name in a register allocator debug dump.Chris Lattner2005-05-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22002 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow targets to have a custom int64->fp expander if desiredChris Lattner2005-05-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22001 91177308-0d34-0410-b5e6-96231b3b80d8
* Align doubles on 8-byte boundaries if possible.Chris Lattner2005-05-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21993 91177308-0d34-0410-b5e6-96231b3b80d8
* print stack object alignment in -print-machineinstr dumpsChris Lattner2005-05-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21992 91177308-0d34-0410-b5e6-96231b3b80d8
* Tolerate instrs with extra argsChris Lattner2005-05-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21982 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an isTailCall flag to LowerCallToChris Lattner2005-05-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21958 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle TAILCALL nodeChris Lattner2005-05-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21957 91177308-0d34-0410-b5e6-96231b3b80d8
* Emit function entry code after lowering hte arguments.Chris Lattner2005-05-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21931 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow targets to emit code into the entry block of each functionChris Lattner2005-05-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21930 91177308-0d34-0410-b5e6-96231b3b80d8
* allow a virtual register to be associated with live-in values.Chris Lattner2005-05-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21927 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a problem that nate reduced for me.Chris Lattner2005-05-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21923 91177308-0d34-0410-b5e6-96231b3b80d8
* rename variables and functions to match renamed DAG nodes. Bonus feature:Chris Lattner2005-05-13
| | | | | | | I can actually remember which one is which now! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21922 91177308-0d34-0410-b5e6-96231b3b80d8
* do not call expandop on the same value more than once. This fixesChris Lattner2005-05-13
| | | | | | | X86/2004-02-22-Casts.llx git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21919 91177308-0d34-0410-b5e6-96231b3b80d8
* fix a bad typeoChris Lattner2005-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21917 91177308-0d34-0410-b5e6-96231b3b80d8
* update commentChris Lattner2005-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21916 91177308-0d34-0410-b5e6-96231b3b80d8
* rename the ADJCALLSTACKDOWN/ADJCALLSTACKUP nodes to be CALLSEQ_START/BEGIN.Chris Lattner2005-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21915 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass calling convention to use into lower call toChris Lattner2005-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21900 91177308-0d34-0410-b5e6-96231b3b80d8
* fix expansion of ct[lt]z nodesChris Lattner2005-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21896 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand 64-bit ctlz/cttz nodes for 32-bit targetsChris Lattner2005-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21895 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix uint->fp casts on PPC, allowing UnitTests/2005-05-12-Int64ToFP toChris Lattner2005-05-12
| | | | | | | work on it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21894 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow something to be legalized multiple times. This can be used to reduceChris Lattner2005-05-12
| | | | | | | legalization iteration git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21892 91177308-0d34-0410-b5e6-96231b3b80d8
* Oops, don't do this after we figure out where to insert the call chains.Chris Lattner2005-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21890 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure to expand all nodes, avoiding unintentional node duplication.Chris Lattner2005-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21889 91177308-0d34-0410-b5e6-96231b3b80d8
* handle a common case generated by the uint64 -> FP code path betterChris Lattner2005-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21888 91177308-0d34-0410-b5e6-96231b3b80d8
* add fixmeChris Lattner2005-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21887 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a problem where early legalization can cause token chain problems.Chris Lattner2005-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21885 91177308-0d34-0410-b5e6-96231b3b80d8
* Make legalize a bit more efficient, and canonicalize sub X, C -> add X, -CChris Lattner2005-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21882 91177308-0d34-0410-b5e6-96231b3b80d8
* Necessary changes to codegen cttz efficiently on PowerPCNate Begeman2005-05-11
| | | | | | | | | | | 1. Teach LegalizeDAG how to better legalize CTTZ if the target doesn't have CTPOP, but does have CTLZ 2. Teach PPC32 how to do sub x, const -> add x, -const for valid consts 3. Teach PPC32 how to do and (xor a, -1) b -> andc b, a 4. Teach PPC32 that ISD::CTLZ -> PPC::CNTLZW git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21880 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix lowering of ctlz, so now UnitTests/2005-05-11-Popcount-ffs-fls passesChris Lattner2005-05-11
| | | | | | | with the CBE git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21875 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix lowering of cttz to work with signed valuesChris Lattner2005-05-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21874 91177308-0d34-0410-b5e6-96231b3b80d8
* fix and concisify intinsic lowering for ctpop. Unfortunately, this codeChris Lattner2005-05-11
| | | | | | | looks completely untested. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21873 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the last remaining bug preventing us from switching the X86 BE overChris Lattner2005-05-11
| | | | | | | | | | from the simple isel to the pattern isel. This forces inserted libcalls to serialize against other function calls, which was breaking UnitTests/2005-05-12-Int64ToFP. Hopefully this will fix issues on other targets as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21872 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not memoize ADJCALLSTACKDOWN nodes, provide a method to hack on them.Chris Lattner2005-05-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21871 91177308-0d34-0410-b5e6-96231b3b80d8
* wrap long lineChris Lattner2005-05-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21870 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure to legalize generated ctpop nodes, convert tabs to spacesChris Lattner2005-05-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21868 91177308-0d34-0410-b5e6-96231b3b80d8
* expand count-leading/trailing-zeros; the test 2005-05-11-Popcount-ffs-fls.cDuraid Madina2005-05-11
| | | | | | | should now pass (the "LLVM" and "REF" results should be identical) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21866 91177308-0d34-0410-b5e6-96231b3b80d8
* Add some notes for expanding clz/ctzChris Lattner2005-05-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21862 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify this code, use the proper shift amountChris Lattner2005-05-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21861 91177308-0d34-0410-b5e6-96231b3b80d8
* Legalize this correctlyChris Lattner2005-05-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21859 91177308-0d34-0410-b5e6-96231b3b80d8
* implement expansion of ctpop nodes, implementing ↵Chris Lattner2005-05-11
| | | | | | CodeGen/Generic/llvm-ct-intrinsics.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21856 91177308-0d34-0410-b5e6-96231b3b80d8
* Print bit count nodes correctlyChris Lattner2005-05-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21855 91177308-0d34-0410-b5e6-96231b3b80d8