summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix Regression/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll, and all programsChris Lattner2004-12-121-0/+1
| | | | | | when compiled with debug information. llvm-svn: 18835
* CSE calls to getTypeSize.Chris Lattner2004-12-121-3/+2
| | | | llvm-svn: 18833
* Remove the ISel->AsmPrinter link via the TargetMachine that was put inNate Begeman2004-11-271-3/+2
| | | | | | | | place to help bring up the PowerPC back end on Darwin. This code is no longer serves any purpose now that the AsmPrinter does the right thing all the time printing GlobalValues. --Cruft. llvm-svn: 18267
* Enable optimization suggested by Chris Lattner to not emit reloc stubs forNate Begeman2004-11-251-17/+14
| | | | | | | | | | | | | | | | | | | static global variables whose addresses are taken. This allows us to convert the following code for taking the address of a static function foo addis r2, r30, ha16(Ll1__2E_foo_2$non_lazy_ptr-"L00001$pb") lwz r3, lo16(Ll1__2E_foo_2$non_lazy_ptr-"L00001$pb")(r2) which also includes linker stub code emitted at the end of the .s file not shown here, and replace it with this: addis r2, r30, ha16(l1__2E_foo_2-"L00001$pb") la r3, lo16(l1__2E_foo_2-"L00001$pb")(r2) which in addition to not needing linker help, also has no load instruction. For those not up on PowerPC mnemonics, la is shorthand for add immediate. llvm-svn: 18239
* Handle GhostLinkage (should not ever reach the assembly printing stage!)Misha Brukman2004-11-141-0/+3
| | | | llvm-svn: 17749
* Allow hbd to be bugpointable on darwin by fixing common and linkonce codegenNate Begeman2004-11-091-3/+4
| | | | llvm-svn: 17637
* Remove file that is no longer used, and move include of MRegisterInfo.hNate Begeman2004-10-261-0/+1
| | | | | | | from PowerPCFrameInfo.h to PowerPCAsmPrinter.cpp where it is actually needed. llvm-svn: 17244
* Align function arguments in function headersMisha Brukman2004-10-231-5/+4
| | | | llvm-svn: 17178
* Generate correct stubs for weak-linked symbolsNate Begeman2004-10-171-2/+3
| | | | llvm-svn: 17101
* add optimized code sequences for setcc x, 0Nate Begeman2004-09-221-2/+2
| | | | llvm-svn: 16478
* * Change PPC32AsmPrinter => PowerPCAsmPrinter since it is now shared betweenMisha Brukman2004-09-051-12/+13
| | | | | | | | Darwin and AIX and is not 32- or 64-bit specific * Bring back PowerPC.td as a result, to make it use the `PowerPC' class name * Adjust Makefile accordingly llvm-svn: 16174
* Renamed PPC32AsmPrinter.cpp => PowerPCAsmPrinter.cpp as the Darwin and AIX asmMisha Brukman2004-09-051-0/+710
| | | | | | printers are now unified into one file. llvm-svn: 16173
* Breaking up the PowerPC target into 32- and 64-bit subparts, Part III: the rest.Misha Brukman2004-08-111-735/+0
| | | | llvm-svn: 15636
* Renamed PPC32 (namespace for regs, opcodes) to PPC to include 64-bit targetsMisha Brukman2004-08-101-23/+23
| | | | llvm-svn: 15631
* CodePrinter -> AsmPrinterMisha Brukman2004-08-091-3/+3
| | | | llvm-svn: 15599
* getValues does not existChris Lattner2004-08-041-7/+5
| | | | llvm-svn: 15495
* Minor correctionsChris Lattner2004-07-281-2/+2
| | | | llvm-svn: 15309
* Find longs by type, not by their primitive size being 64. Patch by Nate Begeman.Misha Brukman2004-07-281-1/+1
| | | | llvm-svn: 15304
* Fix printing of immediate operands by looking at their operand types inMisha Brukman2004-07-281-15/+26
| | | | | | | the TargetInstrInfo. This fixes UnitTests 2003-05-26-Shorts and 2003-07-09-LoadShorts. llvm-svn: 15296
* Correctly print out long branches, assert on finding pseudo instr COND_BRANCHMisha Brukman2004-07-271-1/+12
| | | | | | Patch by Nate Begeman. llvm-svn: 15286
* Increment the label number in runOnFunction() rather than while printing outMisha Brukman2004-07-261-11/+10
| | | | | | some instruction. Patch by Nate Begeman. llvm-svn: 15236
* Simplify boolean test.Misha Brukman2004-07-231-1/+1
| | | | llvm-svn: 15145
* * Codegen of GEPs dramatically improved by folding multiplies and addsMisha Brukman2004-07-231-25/+31
| | | | | | | | * Function pointers implemented correctly using appropriate stubs Contributed by Nate Begeman. llvm-svn: 15133
* * Fix printing of signed immediate values (Nate Begeman)Misha Brukman2004-07-211-7/+29
| | | | | | | * Fix printing of `zeroinitializer' * Fix printing of `linkonce' globals, complete with stubs llvm-svn: 15084
* Differentiate between global and weak symbol loadsMisha Brukman2004-07-201-6/+3
| | | | llvm-svn: 15035
* * Fn args passed in registers are now recorded as used by the call instructionMisha Brukman2004-07-201-6/+18
| | | | | | | | `-> asm printer updated to not print out those registers with the call instr All of Shootout tests now work. Great thanks to Nate Begeman for the patch! llvm-svn: 15015
* CPR FixesChris Lattner2004-07-181-2/+2
| | | | llvm-svn: 14961
* * Output non-lazy linking stubs for external global variablesMisha Brukman2004-07-161-46/+29
| | | | | | | * Get rid of dead and #if 0'd code * Minor for loop speed-up: save end iterator instead of querying every time llvm-svn: 14893
* * Add spaces between words and numbers in comments printed out for longs/floatsMisha Brukman2004-07-161-2/+8
| | | | | | * Print out IMPLICIT_DEFS as comments in the assembly, patch by Nate Begeman llvm-svn: 14890
* * Fix header comment, excise references to X86Misha Brukman2004-07-081-15/+23
| | | | | | * Add suport for printing out references to constant pool indices llvm-svn: 14699
* Use the more compact `bl' instead of cryptic (but equivalent) `bcl 20,31'Misha Brukman2004-07-061-2/+2
| | | | llvm-svn: 14652
* Check if operand has an allocated reg before requesting it.Misha Brukman2004-07-011-0/+1
| | | | llvm-svn: 14550
* * Inquire about the number of operands from the instruction directlyMisha Brukman2004-06-301-2/+4
| | | | | | * Only check for a register if we are sure the instruction has one allocated llvm-svn: 14509
* * Stop using BBNumbering, we don't really need itMisha Brukman2004-06-291-10/+2
| | | | | | | | * Only increment labelNumber once, because it's used by both Load{hi,lo}Addr * There is no .bss section on PowerPC * Use .align 2 instead of other random numbers llvm-svn: 14504
* Assembly syntax/comment fixes by Nate Begeman.Misha Brukman2004-06-291-33/+54
| | | | llvm-svn: 14479
* No need to generate a lazy-linking stub for internal functions, they can beMisha Brukman2004-06-281-1/+3
| | | | | | resolved by the static linker. llvm-svn: 14467
* Do not set the `link' bit when branching to the first BB of a function, as itMisha Brukman2004-06-281-2/+2
| | | | | | will cause an infinite loop. The link bit is only used for calling functions. llvm-svn: 14466
* Fix spacing around function arguments.Misha Brukman2004-06-281-5/+4
| | | | llvm-svn: 14463
* Combine several if stmts with returns into an if-then-elseif-else chain.Misha Brukman2004-06-251-12/+4
| | | | llvm-svn: 14414
* * Be consistent about MachineBB labels and references to them in instr streamMisha Brukman2004-06-251-22/+6
| | | | | | * Use MachineBB's built-in numbering system instead of reinventing one llvm-svn: 14408
* * Initialize the entire array statically, not member-at-a-timeMisha Brukman2004-06-251-20/+9
| | | | | | * Remove x86-specific comment re: intel vs. at&t assembly syntax llvm-svn: 14406
* * Lowercase the register namesMisha Brukman2004-06-241-11/+11
| | | | | | | * Parenthesize assert() expressions correctly * Fix spacing around for() and if() statements llvm-svn: 14384
* * Tabs to spacesMisha Brukman2004-06-241-96/+100
| | | | | | * Remove unnecessary parens, braces, clean up code layout llvm-svn: 14379
* * Order #includesMisha Brukman2004-06-241-5/+7
| | | | | | * Use the DEBUG() guard for debug printouts llvm-svn: 14367
* Type::getPrimitiveID() -> getTypeID()Misha Brukman2004-06-211-2/+2
| | | | llvm-svn: 14287
* Initial revisionMisha Brukman2004-06-211-0/+694
llvm-svn: 14283
OpenPOWER on IntegriCloud