summaryrefslogtreecommitdiff
path: root/lib/CodeGen
Commit message (Collapse)AuthorAge
...
* Make sure types are allocated in the scope of their use.Jim Laskey2006-03-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27002 91177308-0d34-0410-b5e6-96231b3b80d8
* add support for splitting casts. This implementsChris Lattner2006-03-23
| | | | | | | CodeGen/Generic/vector.ll:test_cast_2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26999 91177308-0d34-0410-b5e6-96231b3b80d8
* Generate local variable and scope information and equivalent dwarf forms.Jim Laskey2006-03-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26989 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle new forms of llvm.dbg intrinsics.Jim Laskey2006-03-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26988 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify some codeChris Lattner2006-03-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26972 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a typoChris Lattner2006-03-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26965 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement simple support for vector casting. This can currently only handleChris Lattner2006-03-22
| | | | | | | casts between legal vector types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26961 91177308-0d34-0410-b5e6-96231b3b80d8
* Endianness does not affect the order of vector fields. This fixesChris Lattner2006-03-22
| | | | | | | SingleSource/UnitTests/Vector/build.c git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26936 91177308-0d34-0410-b5e6-96231b3b80d8
* Enclose some variables in a scope to avoid error with some gcc versionsChris Lattner2006-03-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26934 91177308-0d34-0410-b5e6-96231b3b80d8
* add expand support for extractelementChris Lattner2006-03-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26931 91177308-0d34-0410-b5e6-96231b3b80d8
* add some trivial support for extractelement.Chris Lattner2006-03-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26928 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a hacky workaround for crashes due to vectors live across blocks.Chris Lattner2006-03-21
| | | | | | | | Note that this code won't work for vectors that aren't legal on the target. Improvements coming. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26925 91177308-0d34-0410-b5e6-96231b3b80d8
* If a target supports splatting with SHUFFLE_VECTOR, lower to it from ↵Chris Lattner2006-03-20
| | | | | | BUILD_VECTOR(x,x,x,x) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26885 91177308-0d34-0410-b5e6-96231b3b80d8
* TargetData doesn't know the alignment of vectors :(Chris Lattner2006-03-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26884 91177308-0d34-0410-b5e6-96231b3b80d8
* Add very basic support for VECTOR_SHUFFLEChris Lattner2006-03-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26880 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow SCALAR_TO_VECTOR to be custom lowered.Chris Lattner2006-03-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26867 91177308-0d34-0410-b5e6-96231b3b80d8
* Add SCALAR_TO_VECTOR supportChris Lattner2006-03-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26866 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't bother storing undef elements of BUILD_VECTOR'sChris Lattner2006-03-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26858 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement expand of BUILD_VECTOR containing variable elements.Chris Lattner2006-03-19
| | | | | | | This implements CodeGen/Generic/vector.ll:test_variable_buildvector git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26852 91177308-0d34-0410-b5e6-96231b3b80d8
* fold insertelement(buildvector) -> buildvector if the inserted element # isChris Lattner2006-03-19
| | | | | | | a constant. This implements test_constant_insert in CodeGen/Generic/vector.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26851 91177308-0d34-0410-b5e6-96231b3b80d8
* implement basic support for INSERT_VECTOR_ELT.Chris Lattner2006-03-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26849 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename ConstantVec -> BUILD_VECTOR and VConstant -> VBUILD_VECTOR. ↵Chris Lattner2006-03-19
| | | | | | Allow*BUILD_VECTOR to take variable inputs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26847 91177308-0d34-0410-b5e6-96231b3b80d8
* implement vector.ll:test_undefChris Lattner2006-03-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26845 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the remaining bugs in the vector expansion rework I commited yesterday.Chris Lattner2006-03-19
| | | | | | | This fixes CodeGen/Generic/vector.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26843 91177308-0d34-0410-b5e6-96231b3b80d8
* Change the structure of lowering vector stuff. Note: This breaks someChris Lattner2006-03-18
| | | | | | | things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26840 91177308-0d34-0410-b5e6-96231b3b80d8
* add a couple enum valuesChris Lattner2006-03-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26830 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove BRTWOWAY*Nate Begeman2006-03-17
| | | | | | | | | Make the PPC backend not dependent on BRTWOWAY_CC and make the branch selector smarter about the code it generates, fixing a case in the readme. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26814 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a problem fully scalarizing values.Chris Lattner2006-03-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26811 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for CopyFromReg from vector values. Note: this doesn't supportChris Lattner2006-03-16
| | | | | | | illegal vector types yet! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26799 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach CreateRegForValue how to handle vector types.Chris Lattner2006-03-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26798 91177308-0d34-0410-b5e6-96231b3b80d8
* set TransformToType correctly for vector types.Chris Lattner2006-03-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26797 91177308-0d34-0410-b5e6-96231b3b80d8
* add support for vector->vector castsChris Lattner2006-03-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26788 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a note, this code should be moved to the dag combiner.Chris Lattner2006-03-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26787 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand subprogram and added block descriptor.Jim Laskey2006-03-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26782 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Use null for serialized empty strings.Jim Laskey2006-03-14
| | | | | | | | 2. Allow for user defined debug descriptors. 3. Allow for user augmented fields on debug descriptors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26760 91177308-0d34-0410-b5e6-96231b3b80d8
* Add LSR hooks.Evan Cheng2006-03-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26740 91177308-0d34-0410-b5e6-96231b3b80d8
* make sure dead token factor nodes are removed by the dag combiner.Chris Lattner2006-03-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26731 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle the removal of the debug chain.Jim Laskey2006-03-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26729 91177308-0d34-0410-b5e6-96231b3b80d8
* Fold X+Y -> X|Y when safe. This implements:Chris Lattner2006-03-13
| | | | | | | | | Regression/CodeGen/PowerPC/and_add.ll a case that occurs with dynamic allocas of constant size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26727 91177308-0d34-0410-b5e6-96231b3b80d8
* I can't convince myself that this is safe, remove the recursive call.Chris Lattner2006-03-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26725 91177308-0d34-0410-b5e6-96231b3b80d8
* add a couple of missing foldsChris Lattner2006-03-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26724 91177308-0d34-0410-b5e6-96231b3b80d8
* For targets with FABS/FNEG support, lower copysign to an integer load,Chris Lattner2006-03-13
| | | | | | | | | | a select and FABS/FNEG. This speeds up a trivial (aka stupid) copysign benchmark I wrote from 6.73s to 2.64s, woo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26723 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't advance the hazard recognizer when there are no hazards and no ↵Chris Lattner2006-03-12
| | | | | | | | | | | | instructions to be emitted. Don't add one to the latency of a completed instruction if the latency of the op is 0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26718 91177308-0d34-0410-b5e6-96231b3b80d8
* Chain operands aren't real uses: they don't require the full latency of theChris Lattner2006-03-12
| | | | | | | predecessor to finish before they can start. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26717 91177308-0d34-0410-b5e6-96231b3b80d8
* As a pending queue data structure to keep track of instructions whoseChris Lattner2006-03-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | operands have all issued, but whose results are not yet available. This allows us to compile: int G; int test(int A, int B, int* P) { return (G+A)*(B+1); } to: _test: lis r2, ha16(L_G$non_lazy_ptr) addi r4, r4, 1 lwz r2, lo16(L_G$non_lazy_ptr)(r2) lwz r2, 0(r2) add r2, r2, r3 mullw r3, r2, r4 blr instead of this, which has a stall between the lis/lwz: _test: lis r2, ha16(L_G$non_lazy_ptr) lwz r2, lo16(L_G$non_lazy_ptr)(r2) addi r4, r4, 1 lwz r2, 0(r2) add r2, r2, r3 mullw r3, r2, r4 blr git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26716 91177308-0d34-0410-b5e6-96231b3b80d8
* rename priorityqueue -> availablequeue. When a node is scheduled, rememberChris Lattner2006-03-11
| | | | | | | which cycle it lands on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26714 91177308-0d34-0410-b5e6-96231b3b80d8
* Make CurrCycle a local var instead of an instance varChris Lattner2006-03-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26713 91177308-0d34-0410-b5e6-96231b3b80d8
* Move some methods around so that BU specific code is together, TD specific codeChris Lattner2006-03-11
| | | | | | | is together, and direction independent code is together. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26712 91177308-0d34-0410-b5e6-96231b3b80d8
* merge preds/chainpreds -> preds setChris Lattner2006-03-11
| | | | | | | | | | merge succs/chainsuccs -> succs set This has no functionality change, simplifies the code, and reduces the size of sunits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26711 91177308-0d34-0410-b5e6-96231b3b80d8
* Added a parameter to control whether Constant::getStringValue() would chopEvan Cheng2006-03-10
| | | | | | | off the result string at the first null terminator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26704 91177308-0d34-0410-b5e6-96231b3b80d8