summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* For PR950:Reid Spencer2006-10-2056-3913/+4943
| | | | | | | | This patch implements the first increment for the Signless Types feature. All changes pertain to removing the ConstantSInt and ConstantUInt classes in favor of just using ConstantInt. llvm-svn: 31063
* While creating mask, use 1ULL instead of 1.Devang Patel2006-10-201-1/+1
| | | | llvm-svn: 31062
* Fix SimplifyCFG/2006-10-19-UncondDiv.ll by disabling a bad xform.Chris Lattner2006-10-201-23/+40
| | | | llvm-svn: 31061
* add a method to determine whether evaluation of a constant can trap.Chris Lattner2006-10-201-0/+27
| | | | llvm-svn: 31059
* Partially in response to PR926: insert the newly created machine basicBill Wendling2006-10-191-8/+17
| | | | | | | | blocks into the basic block list when lowering the switch inst. into a binary tree of if-then statements. This allows the "visitSwitchCase" func to allow for fall-through behavior. llvm-svn: 31057
* It is OK to remove extra cast if operation is EQ/NE even though sourceDevang Patel2006-10-191-2/+3
| | | | | | and destination sign may not match but other conditions are met. llvm-svn: 31056
* Typo Typo.Devang Patel2006-10-191-1/+1
| | | | llvm-svn: 31055
* Typo.Devang Patel2006-10-191-1/+1
| | | | llvm-svn: 31054
* Fix bug in PR454 resolution. Added new test case.Devang Patel2006-10-191-1/+15
| | | | | | This fixes llvmAsmParser.cpp miscompile by llvm on PowerPC Darwin. llvm-svn: 31053
* use Pat to implement extloadi8 and extloadi16Rafael Espindola2006-10-191-8/+5
| | | | llvm-svn: 31052
* implement undefRafael Espindola2006-10-191-0/+8
| | | | llvm-svn: 31049
* print common symbolsRafael Espindola2006-10-191-17/+33
| | | | llvm-svn: 31048
* implement extloadi8 and extloadi16Rafael Espindola2006-10-191-0/+8
| | | | llvm-svn: 31047
* expand SIGN_EXTEND_INREGRafael Espindola2006-10-191-0/+4
| | | | llvm-svn: 31046
* expand brind so that we don't have to implement jump tables right nowRafael Espindola2006-10-191-0/+1
| | | | llvm-svn: 31045
* Beef up the output from DiffFilesWithTolerance by setting the error codeReid Spencer2006-10-181-3/+16
| | | | | | | to describe the difference being reported. This assists with understanding differences an llvm-test and should help with bugpoint too. llvm-svn: 31044
* Add option for controlling inclusion of global AA.Jim Laskey2006-10-181-6/+12
| | | | llvm-svn: 31040
* fit in 80 colsChris Lattner2006-10-181-12/+12
| | | | llvm-svn: 31039
* add a noteChris Lattner2006-10-181-0/+5
| | | | llvm-svn: 31038
* add blxRafael Espindola2006-10-181-0/+1
| | | | llvm-svn: 31037
* add isTerminatortto b and bcondRafael Espindola2006-10-181-7/+9
| | | | llvm-svn: 31036
* Use global info for alias analysis.Jim Laskey2006-10-181-9/+38
| | | | llvm-svn: 31035
* implement CallingConv::Fast as CallingConv::CRafael Espindola2006-10-181-1/+3
| | | | llvm-svn: 31034
* Fixed mingw\cygwin linkonce linkage once again.Anton Korobeynikov2006-10-182-27/+9
| | | | | | | | | | Added workaround for linker bug with linkonce sections. Changed sections prefix to allow linker merge them (PE loader doesn't like too much long-named sections :) ) All of this unbreaks libstdc++ on mingw32 allowing (small) programs to be compiled, linked and run. llvm-svn: 31033
* Add support for the new "target data" information in .ll files. This providesOwen Anderson2006-10-185-2372/+2224
| | | | | | | | | a better encoding of the targets data layout, rather than trying to guess it from the endianness and pointersize like before. Update the generated files. llvm-svn: 31031
* Add support for the new "target data" information in .ll files. This providesOwen Anderson2006-10-183-0/+10
| | | | | | | a better encoding of the targets data layout, rather than trying to guess it from the endianness and pointersize like before. llvm-svn: 31030
* set the ppc64 stack pointer right, dynamic alloca now works for ppc64Chris Lattner2006-10-181-1/+5
| | | | llvm-svn: 31028
* Expand alloca for ppc64Chris Lattner2006-10-181-1/+2
| | | | llvm-svn: 31027
* Teach the branch folder to update debug info if it removes blocks with lineChris Lattner2006-10-171-2/+23
| | | | | | # notes in it. llvm-svn: 31026
* add a method to remove a line # record.Chris Lattner2006-10-171-0/+14
| | | | llvm-svn: 31025
* expose DWARF_LABEL opcode# so the branch folder can update debug info properly.Chris Lattner2006-10-173-0/+19
| | | | llvm-svn: 31024
* Do not leak all of the SourceLineInfo objects. Do not bother mallocing eachChris Lattner2006-10-172-14/+15
| | | | | | one separately. llvm-svn: 31022
* Trivial patch to speed up legalizing common i64 constants.Chris Lattner2006-10-171-0/+7
| | | | llvm-svn: 31020
* Fix CodeGen/PowerPC/2006-10-17-brcc-miscompile.llChris Lattner2006-10-171-1/+1
| | | | llvm-svn: 31019
* Fix printer for StoreSDNode.Evan Cheng2006-10-171-4/+5
| | | | llvm-svn: 31017
* Reflect MemOpAddrMode change; added a helper to create pre-indexed load.Evan Cheng2006-10-171-4/+68
| | | | llvm-svn: 31016
* expand ISD::SDIV, ISD::UDIV, ISD::SREM and ISD::UREMRafael Espindola2006-10-171-0/+4
| | | | llvm-svn: 31014
* add the FPUnaryOp and DFPUnaryOp classesRafael Espindola2006-10-171-15/+14
| | | | llvm-svn: 31013
* add FABSS and FABSDRafael Espindola2006-10-171-0/+8
| | | | llvm-svn: 31012
* Adding linkonce linkage codegeneration support for mingw32\cygwinAnton Korobeynikov2006-10-172-1/+26
| | | | | | targets. llvm-svn: 31011
* Make it simplier to dump DAGs while in DAGCombiner. Remove a nasty ↵Jim Laskey2006-10-173-10/+7
| | | | | | optimization. llvm-svn: 31009
* remove extra [] in storesRafael Espindola2006-10-171-2/+2
| | | | llvm-svn: 31008
* Enable deleting branches to successor blocks. With the previous patches,Chris Lattner2006-10-171-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | branch folding can now compile stuff like this: void foo(int W, int X, int Y, int Z) { if (W & 1) { for (; X;--X) bar(); } else if (W & 2) { for (; Y;--Y) bar(); } else if (W & 4) { for (; Z;--Z) bar(); } else if (W & 8) { for (; W;--W) bar(); } if (W) { bar(); } } contrived testcase where loops exits all end up merging together. To have the loop merges be: ... cmplw cr0, r30, r27 bne cr0, LBB1_14 ;bb38 LBB1_16: ;cond_next48.loopexit mr r27, r29 LBB1_20: ;cond_next48 cmplwi cr0, r27, 0 beq cr0, LBB1_22 ;UnifiedReturnBlock ... instead of: ... cmplw cr0, r30, r27 bne cr0, LBB1_14 ;bb38 LBB1_16: ;cond_next48.loopexit mr r27, r29 b LBB1_20 ;cond_next48 LBB1_17: ;cond_next48.loopexit1 b LBB1_20 ;cond_next48 LBB1_18: ;cond_next48.loopexit2 b LBB1_20 ;cond_next48 LBB1_19: ;cond_next48.loopexit3 LBB1_20: ;cond_next48 cmplwi cr0, r27, 0 beq cr0, LBB1_22 ;UnifiedReturnBlock ... This is CodeGen/PowerPC/branch-opt.ll llvm-svn: 31006
* add support for inserting an uncond branchChris Lattner2006-10-171-2/+8
| | | | llvm-svn: 31003
* initial implementation of addressing mode 5Rafael Espindola2006-10-173-10/+47
| | | | llvm-svn: 31002
* Clean up interface to getGlobalLinkName.Jim Laskey2006-10-172-4/+4
| | | | llvm-svn: 31001
* Reenable this pass, fixing the bugs in it.Chris Lattner2006-10-171-23/+32
| | | | | | It now correctly deletes unreachable blocks and blocks that are empty. llvm-svn: 31000
* Make sure operand does have size and element type operands.Evan Cheng2006-10-171-1/+2
| | | | llvm-svn: 30999
* add the immediate to the Offset in eliminateFrameIndexRafael Espindola2006-10-171-2/+2
| | | | llvm-svn: 30998
* Basic support for getGlobalLinkName.Jim Laskey2006-10-172-2/+12
| | | | llvm-svn: 30997
OpenPOWER on IntegriCloud