summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* add emitter support for integer constants and simple physreg references.Chris Lattner2010-02-193-5/+57
| | | | llvm-svn: 96663
* recommit 96626, evidence that it broke things appearsDale Johannesen2010-02-193-0/+41
| | | | | | to be spurious llvm-svn: 96662
* fix this to work more determinstically, patch by Thomas Veith!Chris Lattner2010-02-191-1/+1
| | | | llvm-svn: 96661
* Test case for r96656.Devang Patel2010-02-191-0/+9
| | | | llvm-svn: 96657
* Added entries for ASR, LSL, LSR, ROR, and RRX so that the disassembler printsJohnny Chen2010-02-191-0/+24
| | | | | | | | | | | | | | | | | out the canonical form (A8.6.98) instead of the pseudo-instruction as provided via MOVs. DBG_ARM_DISASM=YES llvm-mc -triple=arm-unknown-unknown --disassemble 0xc0 0x00 0xa0 0xe1 Opcode=29 Name=ASR Format=ARM_FORMAT_LDMISCFRM 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 ------------------------------------------------------------------------------------------------- | 1: 1: 1: 0| 0: 0: 0: 1| 1: 0: 1: 0| 0: 0: 0: 0| 0: 0: 0: 0| 0: 0: 0: 0| 1: 1: 0: 0| 0: 0: 0: 0| ------------------------------------------------------------------------------------------------- asr r0, r0, #1 llvm-svn: 96654
* Revert 96626, which causes build failure on ppc Darwin.Dale Johannesen2010-02-193-41/+0
| | | | llvm-svn: 96653
* Transform (xor (setcc), (setcc)) == / != 1 toEvan Cheng2010-02-192-3/+44
| | | | | | | | | | | | | | | | | | | (xor (setcc), (setcc)) != / == 1. e.g. On x86_64 %0 = icmp eq i32 %x, 0 %1 = icmp eq i32 %y, 0 %2 = xor i1 %1, %0 br i1 %2, label %bb, label %return => testl %edi, %edi sete %al testl %esi, %esi sete %cl cmpb %al, %cl je LBB1_2 llvm-svn: 96640
* I confused myself, temporaries will be recorded right along with other inputs.Chris Lattner2010-02-191-31/+7
| | | | llvm-svn: 96639
* Use the same encoding for EH stuff uniformly on all MachO targets.Anton Korobeynikov2010-02-194-40/+22
| | | | | | This hopefulyl should unbreak EH on PPC/Darwin. llvm-svn: 96637
* introduce a new ResultVal and start keeping track of temporary values.Chris Lattner2010-02-191-12/+60
| | | | llvm-svn: 96636
* Radar 7636153. In the presence of large call frames, it's not sufficientJim Grosbach2010-02-194-6/+28
| | | | | | | | | for ARM to just check if a function has a FP to determine if it's safe to simplify the stack adjustment pseudo ops prior to eliminating frame indices. Allow targets to override the default behavior and does so for ARM and Thumb2. llvm-svn: 96634
* When determining the set of interesting reuse factors, considerDan Gohman2010-02-192-10/+72
| | | | | | | | strides in foreign loops. This helps locate reuse opportunities with existing induction variables in foreign loops and reduces the need for inserting new ones. This fixes rdar://7657764. llvm-svn: 96629
* Indvars needs to explicitly notify ScalarEvolution when it is replacingDan Gohman2010-02-183-0/+41
| | | | | | | | a loop exit value, so that if a loop gets deleted, ScalarEvolution isn't stick holding on to dangling SCEVAddRecExprs for that loop. This fixes PR6339. llvm-svn: 96626
* getSplatIndex assumes that the first element of the mask contains the splat ↵Mon P Wang2010-02-182-6/+18
| | | | | | | | | index which is not always true if the mask contains undefs. Modified it to return the first non undef value. llvm-svn: 96621
* Added LDRD_PRE/POST & STRD_PRE/POST for disassembly only.Johnny Chen2010-02-182-0/+80
| | | | llvm-svn: 96619
* add support for referencing registers and immediates,Chris Lattner2010-02-185-36/+132
| | | | | | | building the tree to represent them but not emitting table entries for them yet. llvm-svn: 96617
* replaceUsesOfWithOnConstant implementation for unions.Talin2010-02-181-1/+46
| | | | llvm-svn: 96616
* Hoist this loop-invariant logic out of the loop.Dan Gohman2010-02-181-4/+6
| | | | llvm-svn: 96614
* Always normalize spill weights, also for intervals created by spilling.Jakob Stoklund Olesen2010-02-185-6/+27
| | | | | | | | | | | | | | Moderate the weight given to very small intervals. The spill weight given to new intervals created when spilling was not normalized in the same way as the original spill weights calculated by CalcSpillWeights. That meant that restored registers would tend to hang around because they had a much higher spill weight that unspilled registers. This improves the runtime of a few tests by up to 10%, and there are no significant regressions. llvm-svn: 96613
* Make CodePlacementOpt detect special EH control flow byDan Gohman2010-02-182-7/+53
| | | | | | | | | | checking whether AnalyzeBranch disagrees with the CFG directly, rather than looking for EH_LABEL instructions. EH_LABEL instructions aren't always at the end of the block, due to FP_REG_KILL and other things. This fixes an infinite loop compiling MultiSource/Benchmarks/Bullet. llvm-svn: 96611
* Fix comments.Devang Patel2010-02-181-3/+4
| | | | llvm-svn: 96610
* Destroy MDNodes gracefully while deleting llvm context.Devang Patel2010-02-183-1/+22
| | | | llvm-svn: 96609
* Ignore target dependent value in grep search.Devang Patel2010-02-181-1/+1
| | | | llvm-svn: 96604
* Generate DBG_VALUE from dbg.value intrinsics. These currentlyDale Johannesen2010-02-181-0/+31
| | | | | | comes out as comments but will eventually generate DWARF. llvm-svn: 96601
* Clarify that ptrtoint+inttoptr are an alternative to GEP which areDan Gohman2010-02-181-6/+14
| | | | | | not restricted by the GEP rules. llvm-svn: 96598
* Fix a typo.Dan Gohman2010-02-181-1/+1
| | | | llvm-svn: 96597
* Clarify that the rules about object hopping kick in when a pointer isDan Gohman2010-02-181-4/+4
| | | | | | deferenced, rather than when the pointer value is computed. llvm-svn: 96596
* Fix typos Duncan noticed.Dan Gohman2010-02-181-2/+2
| | | | llvm-svn: 96594
* Remap the call sites of a shared function in interrupt line functions.Sanjiv Gupta2010-02-182-0/+27
| | | | llvm-svn: 96591
* Re-factoring.Sanjiv Gupta2010-02-182-67/+90
| | | | llvm-svn: 96589
* Uniformize the way these options are printed. Requested byDuncan Sands2010-02-185-6/+6
| | | | | | Russell Wallace. llvm-svn: 96580
* Remove terminating dot in description. Inconsistency pointedDuncan Sands2010-02-181-1/+1
| | | | | | out by Russell Wallace. llvm-svn: 96579
* Refer to -help instead of --help since this is what tools themselves say.Duncan Sands2010-02-1823-83/+83
| | | | | | | | Also, have tools output -help-hidden rather than refer to --help-hidden, for consistency, and likewise adjust documentation. This doesn't change every mention of --help, only those which seemed clearly safe. llvm-svn: 96578
* Avoid a dangling pointer dereference, PassManager::add can delete the Pass.Benjamin Kramer2010-02-181-1/+2
| | | | llvm-svn: 96576
* start sketching out the structure of code for result emission generation.Chris Lattner2010-02-184-11/+120
| | | | | | Nothing real here yet. llvm-svn: 96575
* add a missing type cast.Chris Lattner2010-02-181-1/+1
| | | | llvm-svn: 96574
* remove empty fileChris Lattner2010-02-181-0/+0
| | | | llvm-svn: 96573
* Use NEON vmin/vmax instructions for floating-point selects.Bob Wilson2010-02-184-9/+174
| | | | | | Radar 7461718. llvm-svn: 96572
* Roll back the shared library, r96559. It broke two darwins and arm, ↵Jeffrey Yasskin2010-02-1810-150/+12
| | | | | | mysteriously. llvm-svn: 96569
* Added LDRSBT, LDRHT, LDRSHT for disassembly only. And fixed encoding errorsJohnny Chen2010-02-182-6/+24
| | | | | | of AI3ldsbpo, AI3ldhpo, and AI3ldshpo in ARMInstrFormats.td in the process. llvm-svn: 96565
* rename the child field to 'next'. This is not a parent/child Chris Lattner2010-02-184-44/+46
| | | | | | relationship, this is a linear list relationship. llvm-svn: 96561
* eliminate the MatcherNodeWithChild class, give the 'child'Chris Lattner2010-02-184-67/+53
| | | | | | field to MatcherNode. llvm-svn: 96560
* Add a shared library for LLVM, named libLLVM2.7svn.(so|dylib), and add anJeffrey Yasskin2010-02-1810-12/+150
| | | | | | | | | | | | | | | | | | | | --enable-shared configure flag to have the tools linked shared. (2.7svn is just $(LLVMVersion) so it'll change to "2.7" in the release.) Always link the example programs shared to test that the shared library keeps working. On my mac laptop, Debug libLLVM2.7svn.dylib is 39MB, and opt (for example) is 16M static vs 440K shared. Two things are less than ideal here: 1) The library doesn't include any version information. Since we expect to break the ABI with every release, this shouldn't be much of a problem. If we do release a compatible 2.7.1, we may be able to hack its library to work with binaries compiled against 2.7.0, or we can just ask them to recompile. I'm hoping to get a real packaging expert to look at this for the 2.8 release. 2) llvm-config doesn't yet have an option to print link options for the shared library. I'll add this as a subsequent patch. llvm-svn: 96559
* Some dag combiner goodness:Evan Cheng2010-02-187-89/+117
| | | | | | | | Transform br (xor (x, y)) -> br (x != y) Transform br (xor (xor (x,y), 1)) -> br (x == y) Also normalize (and (X, 1) == / != 1 -> (and (X, 1)) != / == 0 to match to "test on x86" and "tst on arm" llvm-svn: 96556
* New test case for r96543.Devang Patel2010-02-181-0/+14
| | | | llvm-svn: 96544
* fit in 80 colsChris Lattner2010-02-181-7/+11
| | | | llvm-svn: 96541
* Added for disassembly only the variants of DMB, DSB, and ISB.Johnny Chen2010-02-181-0/+60
| | | | llvm-svn: 96540
* Fix a few unused parameter warnings.Eric Christopher2010-02-173-3/+3
| | | | llvm-svn: 96533
* MC/Mach-O: Update fixup values for change to X86 offsets.Daniel Dunbar2010-02-171-6/+4
| | | | llvm-svn: 96532
* Make this an unnumbered list.Dan Gohman2010-02-171-2/+2
| | | | llvm-svn: 96528
OpenPOWER on IntegriCloud