summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
Commit message (Collapse)AuthorAgeFilesLines
* Match tblegen changes.Evan Cheng2006-11-081-9/+12
| | | | llvm-svn: 31571
* Refactor all the addressing mode selection stuff into the isel loweringChris Lattner2006-11-083-229/+325
| | | | | | class, where it can be used for preinc formation. llvm-svn: 31536
* correct the (currently unused) pattern for lwzu.Chris Lattner2006-11-081-2/+8
| | | | llvm-svn: 31535
* add a note from viterbiChris Lattner2006-11-071-0/+29
| | | | llvm-svn: 31506
* fix encoding of BLRChris Lattner2006-11-071-2/+2
| | | | llvm-svn: 31485
* encode BLR predicate info for the JITChris Lattner2006-11-043-15/+29
| | | | llvm-svn: 31450
* Go through all kinds of trouble to mark 'blr' as having a predicate operandChris Lattner2006-11-043-12/+62
| | | | | | | | | | that takes a register and condition code. Print these pieces of BLR the right way, even though it is currently set to 'always'. Next up: get the JIT encoding right, then enhance branch folding to produce predicated blr for simple examples. llvm-svn: 31449
* Describe PPC predicates, which are a pair of CR# and condition.Chris Lattner2006-11-031-0/+4
| | | | llvm-svn: 31438
* remove dead varsChris Lattner2006-11-031-3/+0
| | | | llvm-svn: 31433
* fix a bug reid noticedChris Lattner2006-11-021-1/+1
| | | | llvm-svn: 31385
* For PR786:Reid Spencer2006-11-026-9/+1
| | | | | | | | | | Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting fall out by removing unused variables. Remaining warnings have to do with unused functions (I didn't want to delete code without review) and unused variables in generated code. Maintainers should clean up the remaining issues when they see them. All changes pass DejaGnu tests and Olden. llvm-svn: 31380
* Implement the getRegForInlineAsmConstraint method for PPC. With recentChris Lattner2006-11-022-56/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sdisel changes, this eliminates a ton of copies around common inline asms. For example: int test2(int Y, int X) { asm("foo %0, %1" : "=r"(X): "r"(X)); return X; } now compiles to: _test2: foo r3, r4 blr instead of: _test2: mr r2, r4 foo r2, r2 mr r3, r2 blr GCC produces: _test2: foo r4, r4 mr r3,r4 blr llvm-svn: 31367
* Change the prototype for TargetLowering::isOperandValidForConstraintChris Lattner2006-10-312-12/+20
| | | | llvm-svn: 31318
* 1. Clean up code due to changes in SwitchTo*Section(2)Anton Korobeynikov2006-10-311-5/+5
| | | | | | | | | | 2. Added partial debug support for mingw\cygwin targets (the same as Linux\ELF). Please note, that currently mingw\cygwin uses 'stabs' format for storing debug info by default, thus many (runtime) libraries has this information included. These formats shouldn't be mixed in one binary ('stabs' & 'DWARF'), otherwise binutils tools will be confused. llvm-svn: 31311
* fix miscompilation of llvm.isunordered, where we branched on the oppositeChris Lattner2006-10-301-2/+2
| | | | | | condition. This fixes miscompilation of Olden/bh and many others. llvm-svn: 31301
* All targets expand BR_JT for now.Evan Cheng2006-10-301-0/+2
| | | | llvm-svn: 31294
* implement the BlockHasNoFallThrough hookChris Lattner2006-10-282-0/+12
| | | | llvm-svn: 31264
* Doh. Must check if GV is constant first before putting it in .cstring.Evan Cheng2006-10-281-2/+2
| | | | llvm-svn: 31253
* don't dist internal readme'sChris Lattner2006-10-281-1/+0
| | | | llvm-svn: 31246
* this doesn't occur any more in masonChris Lattner2006-10-271-19/+0
| | | | llvm-svn: 31236
* the code in question is now:Chris Lattner2006-10-271-30/+0
| | | | | | | | | | | | cmpw cr0, r7, r3 ble cr0, LBB1_5 ;bb25 LBB1_8: ;bb17 cmpw cr0, r8, r5 bgt cr0, LBB1_2 ;bb which is just as good as crnand. llvm-svn: 31235
* Place cstrings in .cstring section.Evan Cheng2006-10-262-0/+9
| | | | llvm-svn: 31207
* Move getPreferredAlignmentLog from AsmPrinter to TargetDataDevang Patel2006-10-241-1/+1
| | | | llvm-svn: 31171
* Add intrinsics for the rest of the DCB* instructions.Chris Lattner2006-10-241-6/+24
| | | | llvm-svn: 31148
* Implement support for branch reversal, fix a bug in branch analysis.Chris Lattner2006-10-211-2/+5
| | | | | | | | | | | | | | | | This provides stuff like: cmpw cr0, r15, r29 mr r14, r15 - bge cr0, LBB3_111 ;bb656 - b LBB3_90 ;bb501 + blt cr0, LBB3_90 ;bb501 LBB3_111: ;bb656 lwz r18, 68(r1) which is particularly good for dispatch group formation. llvm-svn: 31101
* Simplify code, no functionality changeChris Lattner2006-10-211-4/+2
| | | | llvm-svn: 31097
* implement support for inserting a cond branchChris Lattner2006-10-211-4/+8
| | | | llvm-svn: 31096
* 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
* expose DWARF_LABEL opcode# so the branch folder can update debug info properly.Chris Lattner2006-10-171-0/+7
| | | | llvm-svn: 31024
* add support for inserting an uncond branchChris Lattner2006-10-171-2/+8
| | | | llvm-svn: 31003
* Use S_debug for dwarf info.Jim Laskey2006-10-171-11/+11
| | | | llvm-svn: 30994
* implement branch inspection/modification methods.Chris Lattner2006-10-132-0/+106
| | | | llvm-svn: 30946
* Merge ISD::TRUNCSTORE to ISD::STORE. Switch to using StoreSDNode.Evan Cheng2006-10-133-23/+21
| | | | llvm-svn: 30945
* add noteChris Lattner2006-10-131-0/+19
| | | | llvm-svn: 30937
* set isBarrier correctlyChris Lattner2006-10-131-1/+4
| | | | llvm-svn: 30936
* Correctly handle instruction separators.Chris Lattner2006-10-131-14/+11
| | | | llvm-svn: 30935
* mark adjcallstack up/down as clobbering and using the SPChris Lattner2006-10-121-2/+2
| | | | llvm-svn: 30908
* Add properties to ComplexPattern.Evan Cheng2006-10-111-4/+4
| | | | llvm-svn: 30891
* Reflects ISD::LOAD / ISD::LOADX / LoadSDNode changes.Evan Cheng2006-10-093-50/+49
| | | | llvm-svn: 30844
* Make use of getStore().Evan Cheng2006-10-051-13/+11
| | | | llvm-svn: 30759
* Don't bother setting JumpTableTextSection, it is about to disappearChris Lattner2006-10-051-1/+0
| | | | llvm-svn: 30745
* Pass the MachineFunction into EmitJumpTableInfo.Chris Lattner2006-10-051-1/+1
| | | | llvm-svn: 30742
* Move getSectionForFunction to AsmPrinter, change it to return a string.Chris Lattner2006-10-053-19/+17
| | | | llvm-svn: 30735
* implement DarwinTargetAsmInfo::getSectionForFunction, use it when outputtingChris Lattner2006-10-053-6/+21
| | | | | | function bodies llvm-svn: 30733
* emit jump table before debug infoChris Lattner2006-10-051-3/+3
| | | | llvm-svn: 30731
* Always emit the jump table after the function so it's part of the same 'atom'Chris Lattner2006-10-051-3/+3
| | | | | | as the function body. llvm-svn: 30730
* Combine ISD::EXTLOAD, ISD::SEXTLOAD, ISD::ZEXTLOAD into ISD::LOADX. Add anEvan Cheng2006-10-041-5/+5
| | | | | | extra operand to LOADX to specify the exact value extension type. llvm-svn: 30714
* wrap long linesChris Lattner2006-09-281-2/+4
| | | | llvm-svn: 30662
* Shift amounts are always 32-bits, even in 64-bit mode. This fixesChris Lattner2006-09-281-6/+6
| | | | | | CodeGen/PowerPC/2006-09-28-shift_64.ll llvm-svn: 30652
OpenPOWER on IntegriCloud