aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCAsmPrinter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Use empty() member functions when that's what's being tested for insteadDan Gohman2007-10-031-1/+1
| | | | | | | of comparing begin() and end(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42585 91177308-0d34-0410-b5e6-96231b3b80d8
* Honor user-defined section specification of a global, ignores whether its ↵Evan Cheng2007-09-211-2/+2
| | | | | | initializer is null. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42182 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not override user specified section.Devang Patel2007-09-201-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42179 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove isReg, isImm, and isMBB, and change all their users to use Dan Gohman2007-09-141-1/+1
| | | | | | | | isRegister, isImmediate, and isMachineBasicBlock, which are equivalent, and more popular. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41958 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't ignore the return value of AsmPrinter::doInitialization andDan Gohman2007-07-251-8/+6
| | | | | | | AsmPrinter::doFinalization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40487 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix debug info and globals filled with zeros.Nick Lewycky2007-07-251-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40483 91177308-0d34-0410-b5e6-96231b3b80d8
* add support for printing offset of globalChris Lattner2007-05-031-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36667 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1351 and CodeGen/PowerPC/2007-04-24-InlineAsm-I-Modifier.llChris Lattner2007-04-241-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36410 91177308-0d34-0410-b5e6-96231b3b80d8
* Putting more constants which do not contain relocations into .literal{4|8|16}Evan Cheng2007-03-081-6/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35026 91177308-0d34-0410-b5e6-96231b3b80d8
* For Darwin, put constant data into .const, .const_data, .literal{4|8|16}Evan Cheng2007-03-081-2/+24
| | | | | | | sections. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35017 91177308-0d34-0410-b5e6-96231b3b80d8
* Emit low/high immediate loads properly for Linux/PPC.Nick Lewycky2007-03-031-6/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34871 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for changes in DwarfWriter.Jim Laskey2007-02-211-0/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34478 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix CodeGen/PowerPC/2007-01-31-InlineAsmAddrMode.llChris Lattner2007-02-011-1/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33732 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoidReid Spencer2007-01-301-2/+2
| | | | | | | confusion with external linkage types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33663 91177308-0d34-0410-b5e6-96231b3b80d8
* Darwin -static should codegen static ctors / dtors to .constructor / ↵Evan Cheng2007-01-301-1/+8
| | | | | | .destructor sections. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33657 91177308-0d34-0410-b5e6-96231b3b80d8
* Change the MachineDebugInfo to MachineModuleInfo to better reflect usageJim Laskey2007-01-261-5/+5
| | | | | | | for debugging and exception handling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33550 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix test/CFrontend/2007-01-24-InlineAsmCModifier.c on PPCChris Lattner2007-01-251-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33494 91177308-0d34-0410-b5e6-96231b3b80d8
* add support for hidden visibility to darwin/ppc and linux/ppc targetsChris Lattner2007-01-141-1/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33200 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes from Nick Lewycky with a simplified PPCTargetAsmInfo.Jim Laskey2006-12-211-1/+223
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32735 91177308-0d34-0410-b5e6-96231b3b80d8
* Oops.Jim Laskey2006-12-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32724 91177308-0d34-0410-b5e6-96231b3b80d8
* Original patch was overly complicated.Jim Laskey2006-12-201-34/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32723 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes to target powerpc for non-Darwin assemblers.Jim Laskey2006-12-201-10/+62
| | | | | | | | | 1. Patches from Nick Lewycky. 2. Code to filter register names and print them as numeric values on non-Darwin systems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32721 91177308-0d34-0410-b5e6-96231b3b80d8
* eliminate static ctors for Statistic objects.Chris Lattner2006-12-191-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32703 91177308-0d34-0410-b5e6-96231b3b80d8
* move ExtWeakSymbols to AsmPrinterRafael Espindola2006-12-181-15/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32648 91177308-0d34-0410-b5e6-96231b3b80d8
* Honor cpu directive, take two.Jim Laskey2006-12-121-17/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32492 91177308-0d34-0410-b5e6-96231b3b80d8
* Rollback changes to take a different tack.Jim Laskey2006-12-121-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32488 91177308-0d34-0410-b5e6-96231b3b80d8
* Honor the command line specification for machine type.Jim Laskey2006-12-121-1/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32483 91177308-0d34-0410-b5e6-96231b3b80d8
* What should be the last unnecessary <iostream>s in the library.Bill Wendling2006-12-071-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32333 91177308-0d34-0410-b5e6-96231b3b80d8
* Detemplatize the Statistic class. The only type it is instantiated withChris Lattner2006-12-061-1/+1
| | | | | | | is 'unsigned'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32279 91177308-0d34-0410-b5e6-96231b3b80d8
* Add weak reference directive.Evan Cheng2006-12-011-5/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32091 91177308-0d34-0410-b5e6-96231b3b80d8
* Copy and paste error. An initialized global cannot be a weak reference.Evan Cheng2006-12-011-3/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32075 91177308-0d34-0410-b5e6-96231b3b80d8
* ExternalWeak case in wrong location.Jim Laskey2006-12-011-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32073 91177308-0d34-0410-b5e6-96231b3b80d8
* A initialized global variable cannot be extern weak. However, if a global ↵Evan Cheng2006-12-011-0/+10
| | | | | | value's initializer is itself a external weak symbol, emit the weak reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32069 91177308-0d34-0410-b5e6-96231b3b80d8
* Darwin PPC external weak linkage support.Evan Cheng2006-12-011-1/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32068 91177308-0d34-0410-b5e6-96231b3b80d8
* Prime text sections to improve branch locality in large object files.Jim Laskey2006-11-281-0/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31969 91177308-0d34-0410-b5e6-96231b3b80d8
* Pretty print 'rldicr r2, r2, 2, 61' as 'sldi r2, r2, 2'.Chris Lattner2006-11-181-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31838 91177308-0d34-0410-b5e6-96231b3b80d8
* start using PPC predicates more consistently.Chris Lattner2006-11-171-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31833 91177308-0d34-0410-b5e6-96231b3b80d8
* fix a regression that I introduced. stdu should scale the offset by 4Chris Lattner2006-11-161-1/+10
| | | | | | | before printing it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31791 91177308-0d34-0410-b5e6-96231b3b80d8
* Go through all kinds of trouble to mark 'blr' as having a predicate operandChris Lattner2006-11-041-0/+30
| | | | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31449 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR786:Reid Spencer2006-11-021-2/+0
| | | | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31380 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31311 91177308-0d34-0410-b5e6-96231b3b80d8
* Doh. Must check if GV is constant first before putting it in .cstring.Evan Cheng2006-10-281-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31253 91177308-0d34-0410-b5e6-96231b3b80d8
* Place cstrings in .cstring section.Evan Cheng2006-10-261-0/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31207 91177308-0d34-0410-b5e6-96231b3b80d8
* Move getPreferredAlignmentLog from AsmPrinter to TargetDataDevang Patel2006-10-241-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31171 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass the MachineFunction into EmitJumpTableInfo.Chris Lattner2006-10-051-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30742 91177308-0d34-0410-b5e6-96231b3b80d8
* Move getSectionForFunction to AsmPrinter, change it to return a string.Chris Lattner2006-10-051-2/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30735 91177308-0d34-0410-b5e6-96231b3b80d8
* implement DarwinTargetAsmInfo::getSectionForFunction, use it when outputtingChris Lattner2006-10-051-4/+2
| | | | | | | function bodies git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30733 91177308-0d34-0410-b5e6-96231b3b80d8
* emit jump table before debug infoChris Lattner2006-10-051-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30731 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30730 91177308-0d34-0410-b5e6-96231b3b80d8
* The DarwinAsmPrinter need not check for isDarwin. createPPCAsmPrinterPassChris Lattner2006-09-201-11/+12
| | | | | | | should create the right asmprinter subclass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30542 91177308-0d34-0410-b5e6-96231b3b80d8