summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Propagate changes from my local tree. This patch includes:Anton Korobeynikov2007-01-2818-817/+470
| | | | | | | | | | | | | | | | | | | | | | 1. New parameter attribute called 'inreg'. It has meaning "place this parameter in registers, if possible". This is some generalization of gcc's regparm(n) attribute. It's currently used only in X86-32 backend. 2. Completely rewritten CC handling/lowering code inside X86 backend. Merged stdcall + c CCs and fastcall + fast CC. 3. Dropped CSRET CC. We cannot add struct return variant for each target-specific CC (e.g. stdcall + csretcc and so on). 4. Instead of CSRET CC introduced 'sret' parameter attribute. Setting in on first attribute has meaning 'This is hidden pointer to structure return. Handle it gently'. 5. Fixed small bug in llvm-extract + add new feature to FunctionExtraction pass, which relinks all internal-linkaged callees from deleted function to external linkage. This will allow further linking everything together. NOTEs: 1. Documentation will be updated soon. 2. llvm-upgrade should be improved to translate csret => sret. Before this, there will be some unexpected test fails. llvm-svn: 33597
* This file has been dead for a long time. Remove it.Reid Spencer2007-01-281-191/+0
| | | | llvm-svn: 33596
* Fix test/Transforms/InstCombine/2007-01-27-AndICmp.ll, a miscompilation ofChris Lattner2007-01-271-1/+2
| | | | | | Mozilla that Anton tracked down. llvm-svn: 33591
* Make d'tor out-of-line.Bill Wendling2007-01-272-1/+2
| | | | llvm-svn: 33585
* implement SmallPtrSet::eraseChris Lattner2007-01-271-0/+27
| | | | llvm-svn: 33581
* add a noteChris Lattner2007-01-271-1/+2
| | | | llvm-svn: 33578
* Add a new SmallSet ADT specialized for pointers.Chris Lattner2007-01-271-0/+113
| | | | llvm-svn: 33577
* Return an X86ELFWriterInfo object.Bill Wendling2007-01-271-1/+6
| | | | llvm-svn: 33574
* Use TargetELFWriterInfo class.Bill Wendling2007-01-271-2/+2
| | | | llvm-svn: 33573
* X86 implementation of the TargetELFWriterInfo class.Bill Wendling2007-01-272-0/+46
| | | | llvm-svn: 33571
* New entry.Evan Cheng2007-01-271-0/+4
| | | | llvm-svn: 33569
* Thumb jumptable support.Evan Cheng2007-01-273-3/+32
| | | | llvm-svn: 33568
* Thumb add / sub with carry.Evan Cheng2007-01-271-1/+17
| | | | llvm-svn: 33562
* Some asm directives fixes for ELF.Lauro Ramos Venancio2007-01-261-8/+7
| | | | | | Now we can compile llvm-gcc on arm-linux-gnueabi! llvm-svn: 33558
* Fix a spelling errorNate Begeman2007-01-261-1/+1
| | | | llvm-svn: 33556
* Handle multiple functions, properly mangle symbols, and fix support forNate Begeman2007-01-262-28/+64
| | | | | | scattered relocations. llvm-svn: 33555
* rename filesJim Laskey2007-01-261-37/+37
| | | | llvm-svn: 33552
* Represent tADDspi and tSUBspi as two-address instructions.Evan Cheng2007-01-262-5/+5
| | | | llvm-svn: 33551
* Change the MachineDebugInfo to MachineModuleInfo to better reflect usageJim Laskey2007-01-2614-95/+95
| | | | | | for debugging and exception handling. llvm-svn: 33550
* Fix Data16bitsDirective for ELF.Lauro Ramos Venancio2007-01-261-1/+0
| | | | llvm-svn: 33549
* Conditional branch being fixed up is not the last MI in the BB, there is aEvan Cheng2007-01-261-13/+51
| | | | | | | | | | | | | unconditional branch following it. Simply invert the condition and swap destinations if the conditional branch can reach the destination of the unconditional branch: beq L1 b L2 => bne L2 b L1 llvm-svn: 33548
* If the constant pool value is a extern weak symbol, emit the weak reference.Lauro Ramos Venancio2007-01-261-1/+7
| | | | llvm-svn: 33543
* extload -> zextloadEvan Cheng2007-01-261-0/+5
| | | | llvm-svn: 33542
* Make LABEL a builtin opcode.Jim Laskey2007-01-2628-75/+47
| | | | llvm-svn: 33537
* Clarify some constants.Jim Laskey2007-01-261-4/+5
| | | | llvm-svn: 33536
* For PR761:Reid Spencer2007-01-264-43/+29
| | | | | | | The Module::setEndianness and Module::setPointerSize methods have been removed. Instead you can get/set the DataLayout. Adjust thise accordingly. llvm-svn: 33530
* For PR761:Reid Spencer2007-01-263-36/+16
| | | | | | | Remove the Endianness and PointerSize fields from the ModuleHeader and replace it with the DataLayout field. llvm-svn: 33529
* For PR761:Reid Spencer2007-01-261-20/+0
| | | | | | | Remove the setEndianess and setPointerSize methods. These are now handled via the setDataLayout method. llvm-svn: 33527
* Regenerate for PR645 and PR761Reid Spencer2007-01-265-3581/+3787
| | | | llvm-svn: 33525
* For PR645:Reid Spencer2007-01-263-157/+173
| | | | | | | | | | | | | | Implement separation of local and global symbols. Local symbols and types now use % prefix. Global variables and functions now use @ prefix. For PR761: Replace: target endian = target pointersize = With: target datalayout = llvm-svn: 33524
* For PR645:Reid Spencer2007-01-261-93/+53
| | | | | | | Implement new syntax for local and global symbols. Types and local symbols use the % prefix. Global variables and functions use the @ prefix. llvm-svn: 33523
* For PR645:Reid Spencer2007-01-262-42/+0
| | | | | | | Remove the Function::renameLocalSymbols function as it is no longer needed. llvm-svn: 33522
* IntegerType is a sized DerivedType too.Reid Spencer2007-01-261-0/+3
| | | | llvm-svn: 33521
* Clean up comments and assert messages that still refer to the old type names.Reid Spencer2007-01-261-12/+12
| | | | llvm-svn: 33520
* Fix an assertion message.Reid Spencer2007-01-261-1/+1
| | | | llvm-svn: 33519
* SplitBlockBeforeInstr() insert a unconditional branch to the next BB. ThisEvan Cheng2007-01-261-2/+6
| | | | | | | is unnecessary when we are fixing up a conditional branch since we will be adding a unconditional branch to the destination of the original branch. llvm-svn: 33517
* Remove dead code.Devang Patel2007-01-261-9/+0
| | | | | | | CallGraphSCCPass does not need to implement runOnModule(). It supports runOnSCC(). llvm-svn: 33516
* Need to scan the function for branches even if there aren't any constants.Evan Cheng2007-01-261-3/+2
| | | | llvm-svn: 33515
* Inherit CallGraphSCCPass directly from Pass.Devang Patel2007-01-263-3/+3
| | | | llvm-svn: 33514
* Forgot to update this.Evan Cheng2007-01-251-1/+1
| | | | llvm-svn: 33512
* Inherit BasicBlockPass directly from Pass.Devang Patel2007-01-252-2/+2
| | | | llvm-svn: 33511
* Add comment, fix typo, reduce memory usage, etc.Evan Cheng2007-01-251-9/+14
| | | | llvm-svn: 33510
* I am an idiot.Evan Cheng2007-01-251-1/+1
| | | | llvm-svn: 33509
* Fix comment.Evan Cheng2007-01-251-2/+1
| | | | llvm-svn: 33508
* - Tell PEI that PPC will handle stack frame rounding itself.Evan Cheng2007-01-252-7/+7
| | | | | | | - Do not round up to max. alignment of stack object if it is > stack alignment. It will have to be handled with dynamic aligning code. llvm-svn: 33505
* Added a MRegisterInfo hook that tells PEI the target is responsible forEvan Cheng2007-01-251-2/+3
| | | | | | rounding the stack frame to a multiple of stack alignment. llvm-svn: 33504
* Fix elf object definition.Lauro Ramos Venancio2007-01-251-1/+1
| | | | llvm-svn: 33502
* Doh. Skip JT branches.Evan Cheng2007-01-251-1/+2
| | | | llvm-svn: 33501
* Make llvm-extract preserve the callingconv of prototypes in the extractedChris Lattner2007-01-251-0/+1
| | | | | | code. llvm-svn: 33500
* 1. Remove dwarf-verbose option (now asm-verbose.)Jim Laskey2007-01-251-36/+24
| | | | | | 2. Clean up end of lines. llvm-svn: 33499
OpenPOWER on IntegriCloud