summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
* remove the read/write port/io intrinsics.Chris Lattner2006-03-033-91/+0
| | | | llvm-svn: 26479
* Split memcpy/memset/memmove intrinsics into i32/i64 versions, resolvingChris Lattner2006-03-032-9/+24
| | | | | | PR709, and paving the way for future progress. llvm-svn: 26476
* - Fixed some priority calculation bugs that were causing bug 478. Among them:Evan Cheng2006-03-021-64/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | a predecessor appearing more than once in the operand list was counted as multiple predecessor; priority1 should be updated during scheduling; CycleBound was updated after the node is inserted into priority queue; one of the tie breaking condition was flipped. - Take into consideration of two address opcodes. If a predecessor is a def&use operand, it should have a higher priority. - Scheduler should also favor floaters, i.e. nodes that do not have real predecessors such as MOV32ri. - The scheduling fixes / tweaks fixed bug 478: .text .align 4 .globl _f _f: movl 4(%esp), %eax movl 8(%esp), %ecx movl %eax, %edx imull %ecx, %edx imull %eax, %eax imull %ecx, %ecx addl %eax, %ecx leal (%ecx,%edx,2), %eax ret It is also a slight performance win (1% - 3%) for most tests. llvm-svn: 26470
* Support for enumerations.Jim Laskey2006-03-012-2/+57
| | | | llvm-svn: 26466
* Don't print llvm constant in assmebly file. Assembler won't like comments thatEvan Cheng2006-03-011-1/+3
| | | | | | span multiple lines. llvm-svn: 26463
* Fix CodeGen/Generic/2006-03-01-dagcombineinfloop.ll, an infinite loopChris Lattner2006-03-011-4/+9
| | | | | | in the dag combiner on 176.gcc on x86. llvm-svn: 26459
* Switch back to using actual dwarf tags. Simplifies code without loss to otherJim Laskey2006-03-012-55/+103
| | | | | | debug forms. llvm-svn: 26455
* Fix a typo evan noticedChris Lattner2006-03-011-1/+1
| | | | llvm-svn: 26454
* Use context and not compile unit.Jim Laskey2006-03-011-11/+13
| | | | llvm-svn: 26453
* I guess I can handle large type sizes.Jim Laskey2006-03-011-2/+1
| | | | llvm-svn: 26452
* Basic array support.Jim Laskey2006-03-012-10/+197
| | | | llvm-svn: 26451
* Add support for target-specific dag combinesChris Lattner2006-03-011-13/+58
| | | | llvm-svn: 26443
* Add a new AddToWorkList method, start using itChris Lattner2006-03-011-57/+63
| | | | llvm-svn: 26441
* Pull shifts by a constant through multiplies (a form of reassociation),Chris Lattner2006-03-011-0/+27
| | | | | | implementing Regression/CodeGen/X86/mul-shift-reassoc.ll llvm-svn: 26440
* Vector ops lowering.Evan Cheng2006-03-013-50/+76
| | | | llvm-svn: 26436
* - Added VConstant as an abstract version of ConstantVec.Evan Cheng2006-03-011-12/+19
| | | | | | | - All abstrct vector nodes must have # of elements and element type as their first two operands. llvm-svn: 26432
* Add const, volatile, restrict support.Jim Laskey2006-02-282-5/+67
| | | | | | Add array of debug descriptor support. llvm-svn: 26428
* Compile:Chris Lattner2006-02-281-10/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | unsigned foo4(unsigned short *P) { return *P & 255; } unsigned foo5(short *P) { return *P & 255; } to: _foo4: lbz r3,1(r3) blr _foo5: lbz r3,1(r3) blr not: _foo4: lhz r2, 0(r3) rlwinm r3, r2, 0, 24, 31 blr _foo5: lhz r2, 0(r3) rlwinm r3, r2, 0, 24, 31 blr llvm-svn: 26419
* Fold "and (LOAD P), 255" -> zextload. This allows us to compile:Chris Lattner2006-02-281-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unsigned foo3(unsigned *P) { return *P & 255; } as: _foo3: lbz r3, 3(r3) blr instead of: _foo3: lwz r2, 0(r3) rlwinm r3, r2, 0, 24, 31 blr and: unsigned short foo2(float a) { return a; } as: _foo2: fctiwz f0, f1 stfd f0, -8(r1) lhz r3, -2(r1) blr instead of: _foo2: fctiwz f0, f1 stfd f0, -8(r1) lwz r2, -4(r1) rlwinm r3, r2, 0, 16, 31 blr llvm-svn: 26417
* fold (sra (sra x, c1), c2) -> (sra x, c1+c2)Chris Lattner2006-02-281-3/+11
| | | | llvm-svn: 26416
* Add support for output memory constraints.Chris Lattner2006-02-271-7/+38
| | | | llvm-svn: 26410
* Qualify dwarf namespace inside llvm namespace.Jim Laskey2006-02-271-1/+1
| | | | llvm-svn: 26409
* Partial enabling of functions.Jim Laskey2006-02-271-1/+1
| | | | llvm-svn: 26404
* Supporting multiple compile units.Jim Laskey2006-02-271-136/+185
| | | | llvm-svn: 26402
* Re-orging file.Jim Laskey2006-02-271-556/+357
| | | | llvm-svn: 26401
* remove some completed notesChris Lattner2006-02-271-4/+0
| | | | llvm-svn: 26390
* Print ConstantPoolSDNode offset field.Evan Cheng2006-02-261-0/+5
| | | | llvm-svn: 26381
* Added an offset field to ConstantPoolSDNode.Evan Cheng2006-02-252-9/+14
| | | | llvm-svn: 26371
* Fix a bug that Evan exposed with some changes he's making, and that wasChris Lattner2006-02-251-9/+23
| | | | | | | | | exposed with a fastcc problem (breaking pcompress2 on x86 with -enable-x86-fastcc). When reloading a reused reg, make sure to invalidate the reloaded reg, and check to see if there are any other pending uses of the same register. llvm-svn: 26369
* Remove debugging printout :)Chris Lattner2006-02-251-5/+6
| | | | | | Add a minor compile time win, no codegen change. llvm-svn: 26368
* Refactor some code from being inline to being out in a new class with methods.Chris Lattner2006-02-251-42/+97
| | | | | | | | This gets rid of two gotos, which is always nice, and also adds some comments. No functionality change, this is just a refactor. llvm-svn: 26367
* Use the PrintAsmMemoryOperand to print addressing modes.Chris Lattner2006-02-241-4/+19
| | | | llvm-svn: 26364
* Pass all the flags to the asm printer, not just the # operands.Chris Lattner2006-02-242-3/+5
| | | | llvm-svn: 26362
* rename NumOps -> NumVals to avoid shadowing a NumOps var in an outer scope.Chris Lattner2006-02-241-5/+11
| | | | | | Add support for addressing modes. llvm-svn: 26361
* Refactor operand adding out to a new AddOperand methodChris Lattner2006-02-241-66/+81
| | | | llvm-svn: 26358
* Add pointer and reference types. Added short-term code to ignore NULL typesJim Laskey2006-02-242-28/+51
| | | | | | (to allow llvm-gcc4 to build.) llvm-svn: 26355
* Get VC++ building again.Jeff Cohen2006-02-241-0/+1
| | | | llvm-svn: 26351
* Implement (most of) selection of inline asm memory operands.Chris Lattner2006-02-241-0/+42
| | | | llvm-svn: 26350
* Lower C_Memory operands.Chris Lattner2006-02-241-25/+44
| | | | llvm-svn: 26346
* Added basic support for typedefs.Jim Laskey2006-02-232-14/+55
| | | | llvm-svn: 26339
* Fix an endianness problem on big-endian targets with expanded operandsChris Lattner2006-02-231-9/+16
| | | | | | to inline asms. Mark some methods const. llvm-svn: 26334
* Record all of the expanded registers in the DAG and machine instr, fixingChris Lattner2006-02-233-79/+137
| | | | | | several bugs in inline asm expanded operands. llvm-svn: 26332
* DwarfWriter reading basic type information from llvm-gcc4 code.Jim Laskey2006-02-232-7/+126
| | | | llvm-svn: 26331
* Code cleanups, no functionality changeChris Lattner2006-02-231-23/+10
| | | | llvm-svn: 26328
* This fixes a couple of problems with expansionChris Lattner2006-02-221-9/+23
| | | | llvm-svn: 26318
* Change a whole bunch of code to be built around RegsForValue instead ofChris Lattner2006-02-221-124/+248
| | | | | | | a single register number. This fully implements promotion for inline asms, expand is close but not quite right yet. llvm-svn: 26316
* Coordinate activities with llvm-gcc4 and dwarf.Jim Laskey2006-02-222-194/+256
| | | | llvm-svn: 26314
* split register class handling from explicit physreg handling.Chris Lattner2006-02-221-34/+77
| | | | llvm-svn: 26308
* Adjust to changes in getRegForInlineAsmConstraint prototypeChris Lattner2006-02-211-18/+18
| | | | llvm-svn: 26306
* Added x86 integer vector types: 64-bit packed byte integer (v16i8), 64-bitEvan Cheng2006-02-201-0/+3
| | | | | | packed word integer (v8i16), and 64-bit packed doubleword integer (v2i32). llvm-svn: 26294
OpenPOWER on IntegriCloud