summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Encode pc-relative conditional branch offset as pc+(num of bytes / 4). TheEvan Cheng2006-08-251-1/+1
| | | | | | | | | asm printer will print it as offset*4. e.g. bne cr0, $+8. The PPC code emitter was expecting the offset to be number of instructions, not number of bytes. This fixes a whole bunch of JIT failures. llvm-svn: 29885
* Emit .set directives for jump table entries when possible, which reducesNate Begeman2006-08-121-0/+1
| | | | | | the number of relocations in object files, shrinkifying them. llvm-svn: 29650
* Support jump tables when in PIC relocation modelNate Begeman2006-07-271-2/+2
| | | | llvm-svn: 29318
* Rename RelocModel::PIC to PIC_, to avoid conflicts with -DPIC.Chris Lattner2006-07-261-3/+3
| | | | llvm-svn: 29307
* Remove what little AIX support we have. It has never been tested and isn'tChris Lattner2006-07-151-154/+0
| | | | | | complete. llvm-svn: 29156
* Print negative immediates as negative values instead of large constantsChris Lattner2006-07-121-1/+1
| | | | | | when using the immshifted addressing mode. llvm-svn: 29130
* Use hidden visibility to make symbols in an anonymous namespace getChris Lattner2006-06-281-3/+3
| | | | | | dropped. This shrinks libllvmgcc.dylib another 67K llvm-svn: 28975
* shrink libllvmgcc.dylib another 25KChris Lattner2006-06-281-1/+2
| | | | llvm-svn: 28971
* Print stubs for external globals right.Chris Lattner2006-06-271-1/+5
| | | | llvm-svn: 28936
* Add a pattern for i64 sra. Print 8-byte units with a space between the .quadChris Lattner2006-06-271-1/+1
| | | | | | and the data llvm-svn: 28934
* Print darwin stub stuff correctly in 64-bit mode. With this, treeadd works inChris Lattner2006-06-271-7/+25
| | | | | | ppc64 mode! llvm-svn: 28923
* Add and sort "sections" in debug lines. This always stepping throughJim Laskey2006-06-231-4/+1
| | | | | | | code in sections other than ".text", including weak sections like ctors and dtors. llvm-svn: 28909
* Rename OR4 -> OR. Move some PPC64-specific stuff to the 64-bit fileChris Lattner2006-06-201-1/+1
| | | | llvm-svn: 28889
* 1. Support standard dwarf format (was bootstrapping in Apple format.)Jim Laskey2006-06-151-11/+11
| | | | | | 2. Add vector support. llvm-svn: 28807
* Place dwarf headers at earliest possible point. Well behaved when skippingJim Laskey2006-06-141-2/+4
| | | | | | functions. llvm-svn: 28781
* Remove some dead code, identified by coverity.Chris Lattner2006-05-151-6/+0
| | | | llvm-svn: 28303
* remove dead variable.Chris Lattner2006-05-121-1/+0
| | | | llvm-svn: 28248
* Indent .data/.text in the .s fileChris Lattner2006-05-091-5/+5
| | | | llvm-svn: 28204
* Split SwitchSection into SwitchTo{Text|Data}Section methods.Chris Lattner2006-05-091-16/+16
| | | | llvm-svn: 28184
* Print a grouping around inline asm blocks so that we can tell when we areChris Lattner2006-05-051-1/+2
| | | | | | using them. llvm-svn: 28134
* Rename MO_VirtualRegister -> MO_Register. Clean up immediate handling.Chris Lattner2006-05-041-1/+1
| | | | llvm-svn: 28104
* There shalt be only one "immediate" operand type!Chris Lattner2006-05-041-2/+1
| | | | llvm-svn: 28099
* Remove a bunch more SparcV9 specific stuffChris Lattner2006-05-041-8/+1
| | | | llvm-svn: 28093
* Remove some more unused stuff from MachineInstr that was leftover from V9.Chris Lattner2006-05-041-6/+0
| | | | llvm-svn: 28091
* Refactor TargetMachine, pushing handling of TargetData into the ↵Owen Anderson2006-05-031-6/+6
| | | | | | | | target-specific subclasses. This has one caller-visible change: getTargetData() now returns a pointer instead of a reference. This fixes PR 759. llvm-svn: 28074
* Hooray, everyone now uses the same printBasicBlockLabel implementationNate Begeman2006-05-021-20/+3
| | | | llvm-svn: 28056
* Extend printBasicBlockLabel a bit so that it can be used to print allNate Begeman2006-05-021-9/+13
| | | | | | | basic block labels, consolidating the code to do so in one place for each target. llvm-svn: 28050
* JumpTable support! What this represents is working asm and jit support forNate Begeman2006-04-221-6/+19
| | | | | | | | x86 and ppc for 100% dense switch statements when relocations are non-PIC. This support will be extended and enhanced in the coming days to support PIC, and less dense forms of jump tables. llvm-svn: 27947
* Make sure that debug labels are defined within the same section and after theJim Laskey2006-04-071-3/+3
| | | | | | entry point of a function. llvm-svn: 27494
* Codegen things like:Chris Lattner2006-03-251-0/+5
| | | | | | | | | | | | | | | | | <int -1, int -1, int -1, int -1> and <int 65537, int 65537, int 65537, int 65537> Using things like: vspltisb v0, -1 and: vspltish v0, 1 instead of using constant pool loads. This implements CodeGen/PowerPC/vec_splat.ll:splat_imm_i{32|16}. llvm-svn: 27106
* Change interface to DwarfWriter.Jim Laskey2006-03-231-4/+4
| | | | llvm-svn: 26991
* Add support for "ri" addressing modes where the immediate is a 14-bit fieldChris Lattner2006-03-221-0/+14
| | | | | | | which is shifted left two bits before use. Instructions like STD use this addressing mode. llvm-svn: 26942
* Print absolute memory references like this:Chris Lattner2006-03-211-1/+5
| | | | | | | | | | lwz r2, 8(0) instead of this: lwz r2, 8(r0) This fixes the llc/llc-beta failures on PPC last night. llvm-svn: 26922
* Added getTargetLowering() to TargetMachine. Refactored targets to support this.Evan Cheng2006-03-131-2/+3
| | | | llvm-svn: 26742
* Use "llvm.metadata" section for debug globals. Filter out these globals in theJim Laskey2006-03-071-1/+1
| | | | | | asm printer. llvm-svn: 26599
* Add memory printing support for PPC. Input memory operands now work withChris Lattner2006-02-241-1/+12
| | | | | | inline asms! :) llvm-svn: 26365
* Implement the PPC inline asm "L" modifier. This allows us to compile:Chris Lattner2006-02-231-4/+28
| | | | | | | | | | | | long long test(long long X) { __asm__("foo %0 %L0 %1 %L1" : "=r"(X): "r"(X)); return X; } to: foo r2 r3 r2 r3 llvm-svn: 26333
* - Added option -relocation-model to set relocation model. Valid values ↵Evan Cheng2006-02-221-6/+6
| | | | | | | | | | include static, pic, dynamic-no-pic, and default. PPC and x86 default is dynamic-no-pic for Darwin, pic for others. - Removed options -enable-pic and -ppc-static. llvm-svn: 26315
* Coordinate activities with llvm-gcc4 and dwarf.Jim Laskey2006-02-221-12/+11
| | | | llvm-svn: 26314
* Moved PICEnabled to include/llvm/Target/TargetOptions.hEvan Cheng2006-02-181-0/+1
| | | | llvm-svn: 26272
* If we have zero initialized data with external linkage, use .zerofill toChris Lattner2006-02-141-4/+11
| | | | | | | | | | | | | emit it (instead of .space), saving a bit of space in the .o file. For example: int foo[100]; int bar[100] = {}; when compiled with C++ or -fno-common results in shrinkage from 1160 to 360 bytes of space. The X86 backend can also do this on darwin. llvm-svn: 26185
* Make sure that weak functions are aligned properlyChris Lattner2006-02-141-2/+1
| | | | llvm-svn: 26181
* Darwin doesn't support #APP/#NO_APPChris Lattner2006-02-081-2/+2
| | | | llvm-svn: 26066
* Emit the 'mr' pseudoop for easier reading.Chris Lattner2006-02-081-0/+9
| | | | llvm-svn: 26053
* Change prototypeChris Lattner2006-02-061-1/+1
| | | | llvm-svn: 26022
* We seem to have settled to __DWARF for section name.Jim Laskey2006-02-061-11/+11
| | | | llvm-svn: 26015
* Use the asmprinter to find out what the preferred alignment of a global is.Chris Lattner2006-02-051-1/+1
| | | | | | | This patch speeds up 172.mgrid from 31.81s to 11.39s on darwin/ppc. Many many thanks to Nate for tracking down the root cause of the issue. llvm-svn: 25979
* add a methodChris Lattner2006-02-011-2/+8
| | | | llvm-svn: 25884
* Set up MachineDebugInfo to scan for debug information form "llvm.db"g globals.Jim Laskey2006-01-261-1/+1
| | | | | | Global Variable information is now pulled from "llvm.dbg.globals" llvm-svn: 25655
* Crude Dwarf global variable debugging.Jim Laskey2006-01-241-4/+4
| | | | llvm-svn: 25569
OpenPOWER on IntegriCloud