summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPC32ISelSimple.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add fmod() to the Module being compiled so that it gets a stub in the asm fileMisha Brukman2004-07-071-3/+8
| | | | llvm-svn: 14670
* * Add support for calling vararg functions (must pass doubles in int regs too)Misha Brukman2004-07-061-68/+89
| | | | | | | | | | | | * Make visitSetCondInst() share condition-generating code with EmitComparison() * There are 13 FPRs for function-passing arguments, not 8 * Do not rely on registers being sequential, use an array lookup * In unimplemented switch cases, send an error and abort instead of silent fall-through * Add doInitialization() for adding function prototypes for external math fns * Minor changes: fix indentation, spacing, code clarity llvm-svn: 14653
* * Add utility functions: convert SetCC => PPC opcode and invert PPC opcodeMisha Brukman2004-07-061-34/+49
| | | | | | | | | * If SetCondInst is folded into BranchInst (and it is the only user), do not emit code for SetCondInst * Fix assembly opcodes in comments in visitSetCondInst() * Fix codegen of conditional branches llvm-svn: 14643
* * Get rid of constant-expr handling code: we use the ConstantExpr lowering passMisha Brukman2004-07-011-100/+82
| | | | | | | | * Use the SetCC handling code in the format of Brian's V8 * Add FIXMEs where calls to functions are being made without adding them to the Module first... they cause missing symbols at assembly-time. llvm-svn: 14553
* * Don't save LR when outputting globals: it's already saved on the stack onceMisha Brukman2004-06-291-41/+46
| | | | | | | | | | | | | | for the function * Registers aren't necessarily sequential wrt their enums, don't rely on it when emitting function arguments into sequential registers * Remove X86-specific comments about AL/BL/AH/BH/EDX/etc * Add an abort() for an unimplemented signed right shift * The src operand for a GEP was never emitted! Fixed. * We can skip zero-valued GEP indices as they are no-ops. "Hello, World!" now works. llvm-svn: 14505
* Fix loading and storing PC-relative static variables, courtesy of Nate Begeman.Misha Brukman2004-06-281-2/+11
| | | | llvm-svn: 14468
* Do not move any values into registers for a void return (there isn't anything).Misha Brukman2004-06-251-20/+23
| | | | llvm-svn: 14413
* Fix opcode: no immediate in an `or r1, r2, r3' (all registers) instr.Misha Brukman2004-06-251-1/+1
| | | | llvm-svn: 14411
* Fix bug in previous checkin.Misha Brukman2004-06-251-1/+1
| | | | llvm-svn: 14405
* * Wrap long linesMisha Brukman2004-06-251-13/+27
| | | | | | | * Replace silent fall-through FIXME comments with an error to cerr and an abort * No need to set size of statically initialized arrays llvm-svn: 14404
* Excise X86-specific comments.Misha Brukman2004-06-251-10/+0
| | | | llvm-svn: 14403
* Add a `break' in the switch/case statement between the int/fp sections.Misha Brukman2004-06-241-1/+1
| | | | llvm-svn: 14385
* Unindent some more code to be consistent.Misha Brukman2004-06-241-59/+59
| | | | llvm-svn: 14377
* Unindent some code, it only needs 2 spaces.Misha Brukman2004-06-241-23/+23
| | | | llvm-svn: 14376
* In emitting code for a GEP instr, iterate over GEPTypes because there is oneMisha Brukman2004-06-241-1/+4
| | | | | | | more operand in GEPOps than there are types in GEPTypes: the pointer that is the first operand of the GEP instruction. llvm-svn: 14375
* * Make indentation consistent at 2 charsMisha Brukman2004-06-211-201/+312
| | | | | | | * Doxygenify function comments * Wrap code at 80 cols llvm-svn: 14295
* llvm/IntrinsicLowering.h => llvm/CodeGen/IntrinsicLowering.hMisha Brukman2004-06-211-1/+1
| | | | llvm-svn: 14292
* Intrinsic::isnan has gone away, support for it commented out.Misha Brukman2004-06-211-3/+7
| | | | | | | Intrinsic::isunordered has arrived, and we just use the standard lowering pass for it. llvm-svn: 14290
* Convert tabs to spaces.Misha Brukman2004-06-211-375/+375
| | | | llvm-svn: 14289
* Type::getPrimitiveID() -> getTypeID()Misha Brukman2004-06-211-4/+4
| | | | llvm-svn: 14288
* Initial revisionMisha Brukman2004-06-211-0/+2621
llvm-svn: 14283
OpenPOWER on IntegriCloud