summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
Commit message (Collapse)AuthorAgeFilesLines
* Don't define the same register twice when loading a ConstantPointerRef to a regMisha Brukman2004-07-142-10/+6
| | | | llvm-svn: 14819
* * Fix multiplication by powers of two and otherwiseMisha Brukman2004-07-142-10/+18
| | | | | | * Clarify variable name (StoreInst SI instead of LI) llvm-svn: 14818
* Add Machine-CFG edges to SparcV9 MachineBasicBlocks.Brian Gaeke2004-07-141-6/+20
| | | | llvm-svn: 14806
* * Specify that FP arith options have 3 operandsMisha Brukman2004-07-132-26/+20
| | | | | | * Correctly load FP constants from the constant pool, should be refactored llvm-svn: 14799
* Correctly load FP constants out of the constant pool.Misha Brukman2004-07-122-12/+6
| | | | llvm-svn: 14782
* Apple's MacOS X is another OS which does not provide alloca() via <alloca.h>Misha Brukman2004-07-121-1/+1
| | | | llvm-svn: 14781
* Implement getModuleMatchQuality and getJITMatchQuality() for PowerPCMisha Brukman2004-07-122-0/+23
| | | | llvm-svn: 14780
* Implement TargetRegistrationListenerChris Lattner2004-07-111-0/+26
| | | | llvm-svn: 14759
* Delete the allocate*TargetMachine function, which is now dead.Chris Lattner2004-07-112-10/+2
| | | | | | The shared command line options are now in a header that makes sense. llvm-svn: 14757
* Delete the allocate*TargetMachine function, which is now dead .Chris Lattner2004-07-115-37/+5
| | | | | | The shared command line options are now in a header that makes sense. llvm-svn: 14756
* Delete the allocate*TargetMachine function, which is now dead .Chris Lattner2004-07-111-6/+0
| | | | llvm-svn: 14755
* Implement a couple of methods that TargetMachineRegistry now provides. See,Chris Lattner2004-07-111-0/+60
| | | | | | I told you this file wasn't useless :) llvm-svn: 14749
* Make these format a bit nicerChris Lattner2004-07-116-6/+6
| | | | llvm-svn: 14747
* Auto-registrate targetChris Lattner2004-07-119-6/+84
| | | | llvm-svn: 14745
* Add compilabilityChris Lattner2004-07-113-0/+3
| | | | llvm-svn: 14744
* Initial impl of this file. Yes this is pretty useless right now, but itChris Lattner2004-07-111-0/+21
| | | | | | will grow in time. llvm-svn: 14743
* * Add support for indexing into structures, thanks to Chris (x86)Misha Brukman2004-07-092-120/+188
| | | | | | | | | | | | The large diff is because of indentation of a whole region * Fix querying predecessor blocks in SelectPHINodes(), thanks to Brian (v8) * Add support for external functions malloc() and free() * Fix some code indentation Remember, kids: It's not plagiarism if you "creatively borrow" from your sources. It's called "research"! llvm-svn: 14723
* Read/write the offset value for stack-relative loads via correct instr operand.Misha Brukman2004-07-091-7/+5
| | | | llvm-svn: 14722
* Add support for __fixdfdi(), __floatdisf(), and __floatdidf() external functionsMisha Brukman2004-07-082-6/+22
| | | | llvm-svn: 14703
* * Use several Function* for external functions instead of a std::mapMisha Brukman2004-07-082-52/+78
| | | | | | * Non-const FP values must be loaded into int regs (for vararg fns) via memory llvm-svn: 14701
* * Add support for loading FP constants from the constant poolMisha Brukman2004-07-082-20/+88
| | | | | | * Load FP values into int regs as well for vararg functions; without memory ops! llvm-svn: 14700
* * Fix header comment, excise references to X86Misha Brukman2004-07-082-30/+46
| | | | | | * Add suport for printing out references to constant pool indices llvm-svn: 14699
* Support setcc on fp values.Brian Gaeke2004-07-081-12/+21
| | | | llvm-svn: 14687
* Add floating-point branches and compares. Compares don't completeBrian Gaeke2004-07-082-0/+52
| | | | | | | until the next cycle, and there's no interlock, so they effectively have a delay slot. llvm-svn: 14686
* Fix bug where SwitchSection would fail to change to ".bss" successfully.Brian Gaeke2004-07-081-1/+1
| | | | llvm-svn: 14685
* Fix bug involving bool arguments to binary operators.Brian Gaeke2004-07-081-2/+2
| | | | | | Fix typo in comment. llvm-svn: 14684
* Fix bug in copying long constants to register pairs. We were gettingBrian Gaeke2004-07-081-2/+17
| | | | | | | | the top and bottom halves backwards...how embarrassing. Support 'cast long to long' and other similar no-op casts to long. Support 'ret long'. llvm-svn: 14683
* Support 'ret float'Brian Gaeke2004-07-081-0/+3
| | | | llvm-svn: 14681
* * Use a map for caching lookups to external functions (fp div/rem)Misha Brukman2004-07-072-40/+56
| | | | | | * Tabs to spaces llvm-svn: 14673
* * Wrap long lines (comments and code)Misha Brukman2004-07-071-11/+13
| | | | | | * Tabs to spaces llvm-svn: 14672
* Add fmod() to the Module being compiled so that it gets a stub in the asm fileMisha Brukman2004-07-072-6/+16
| | | | llvm-svn: 14670
* * Add support for calling vararg functions (must pass doubles in int regs too)Misha Brukman2004-07-062-136/+178
| | | | | | | | | | | | * 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
* Use the more compact `bl' instead of cryptic (but equivalent) `bcl 20,31'Misha Brukman2004-07-062-4/+4
| | | | llvm-svn: 14652
* * Add utility functions: convert SetCC => PPC opcode and invert PPC opcodeMisha Brukman2004-07-062-68/+98
| | | | | | | | | * 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
* Add #includesChris Lattner2004-07-043-0/+3
| | | | llvm-svn: 14625
* Add #include <iostream> since Value.h does not #include it any more.Reid Spencer2004-07-0413-2/+15
| | | | llvm-svn: 14622
* Add FIXME notes for spilling int/fp regs (need to calculate stack space).Misha Brukman2004-07-021-0/+2
| | | | llvm-svn: 14581
* Fix use-before-def thinkoBrian Gaeke2004-07-021-1/+1
| | | | llvm-svn: 14570
* Fix potential problems with unreachable basic blocks.Chris Lattner2004-07-021-0/+10
| | | | | | | Also, while noone's looking, add support for constant expressions. Wait, I said not to look! llvm-svn: 14566
* Fix all of those problems that the PPC backend has running 176.gcc :)Chris Lattner2004-07-021-0/+6
| | | | llvm-svn: 14565
* Remove dead blocksChris Lattner2004-07-021-0/+6
| | | | llvm-svn: 14564
* Add M_TERMINATOR_FLAG to terminator instructions (branches and returns).Brian Gaeke2004-07-021-46/+48
| | | | | | Also, the RETURN instructions are not used in the sparcv9 backend. llvm-svn: 14559
* RETURN instructions are not used in the sparc backend.Brian Gaeke2004-07-023-9/+0
| | | | | | When in doubt, stamp it out!! llvm-svn: 14558
* * Follow the PowerPC convention of leaving 24 bytes for linking on the stack.Misha Brukman2004-07-011-2/+5
| | | | | | * Also leave space for spilling integer registers (this should be calculated) llvm-svn: 14554
* * Get rid of constant-expr handling code: we use the ConstantExpr lowering passMisha Brukman2004-07-012-200/+164
| | | | | | | | * 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
* Wrap long lineMisha Brukman2004-07-011-1/+2
| | | | llvm-svn: 14552
* * Do not allocate r0 as we use it indiscriminantly in the instr selector.Misha Brukman2004-07-011-4/+4
| | | | | | * Do not define CR register class because we don't (yet) have the i4 type llvm-svn: 14551
* Check if operand has an allocated reg before requesting it.Misha Brukman2004-07-012-0/+2
| | | | llvm-svn: 14550
* Handle targets where alignment can be bigger than the size of the data.Chris Lattner2004-07-011-4/+4
| | | | | | Contributed by Vladimir Prus! llvm-svn: 14534
* Fix indentation to be 2 spaces.Misha Brukman2004-06-301-8/+8
| | | | llvm-svn: 14512
OpenPOWER on IntegriCloud