summaryrefslogtreecommitdiff
path: root/lib/CodeGen
Commit message (Collapse)AuthorAge
...
* Fixed so that it dereferences the ostream pointer.Bill Wendling2006-12-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32640 91177308-0d34-0410-b5e6-96231b3b80d8
* Added an automatic cast to "std::ostream*" etc. from OStream. We then canBill Wendling2006-12-17
| | | | | | | | rework the hacks that had us passing OStream in. We pass in std::ostream* instead, check for null, and then dispatch to the correct print() method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32636 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1049 and CodeGen/Generic/2006-12-16-InlineAsmCrash.llChris Lattner2006-12-16
| | | | | | | | by producing target constants instead of constants. Constants can get selected to li/movri instructions, which causes the scheduler to explode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32633 91177308-0d34-0410-b5e6-96231b3b80d8
* Cannot combine an indexed load / store any further.Evan Cheng2006-12-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32629 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand FP undefEvan Cheng2006-12-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32623 91177308-0d34-0410-b5e6-96231b3b80d8
* The best unbreakage yet, addressing Bill's concerns.Jeff Cohen2006-12-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32622 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow promoted FP_TO_UINT / FP_TO_SINT to expand operand.Evan Cheng2006-12-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32621 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand fabs / fneg to and / xor.Evan Cheng2006-12-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32619 91177308-0d34-0410-b5e6-96231b3b80d8
* An even better unbreakage...Jeff Cohen2006-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32617 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix select_cc, select expansion to soft-fp bugs.Evan Cheng2006-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32616 91177308-0d34-0410-b5e6-96231b3b80d8
* This code was usurping the sextload expand in teh legalizer. Just makeJim Laskey2006-12-15
| | | | | | | sure the right conditions are checked. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32611 91177308-0d34-0410-b5e6-96231b3b80d8
* silence a bogus warningChris Lattner2006-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32597 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor clean up.Evan Cheng2006-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32593 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand FP compares to soft-fp call(s)Evan Cheng2006-12-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32590 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Tidy up jump table info.Jim Laskey2006-12-14
| | | | | | | 2. Allow the jit to handle PIC relocable jump tables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32581 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a long-standing spiller bug:Evan Cheng2006-12-14
| | | | | | | | | | | | | | | | | If a spillslot value is available in a register, and there is a noop copy that targets that register, the spiller correctly decide not to invalidate the spillslot register. However, even though the noop copy does not clobbers the value. It does start a new intersecting live range. That means the spillslot register is available for use but should not be reused for a two-address instruction modref operand which would clobber the new live range. When we remove the noop copy, update the available information by clearing the canClobber bit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32576 91177308-0d34-0410-b5e6-96231b3b80d8
* More soft-fp work.Evan Cheng2006-12-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32559 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand (f64 extload f32) to (f64 fp_ext (load f32)) if f64 type action is ↵Evan Cheng2006-12-13
| | | | | | expand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32527 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand fsqrt, fsin, and fcos to libcalls.Evan Cheng2006-12-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32526 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand f32 / f64 to i32 / i64 conversion to soft-fp library calls.Evan Cheng2006-12-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32523 91177308-0d34-0410-b5e6-96231b3b80d8
* Replace CastInst::createInferredCast calls with more accurate castReid Spencer2006-12-13
| | | | | | | creation calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32521 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand FP constant to integers if FP types are not legal.Evan Cheng2006-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32497 91177308-0d34-0410-b5e6-96231b3b80d8
* Soft fp FNEG, SINT_TO_FP, UINT_TO_FP libcall expansion.Evan Cheng2006-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32495 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand ConstantFP to load from CP if float types are being expanded.Evan Cheng2006-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32494 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand i32/i64 CopyToReg f32/f64 to BIT_CONVERT + CopyToReg.Evan Cheng2006-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32493 91177308-0d34-0410-b5e6-96231b3b80d8
* - When expanding a bit_convert whose src operand is also to be expanded andEvan Cheng2006-12-12
| | | | | | | | | | its expansion result type is equal to the result type of the bit_convert, e.g. (i64 bit_convert (f64 op)) if FP is not legal returns the result of the expanded source operand. - Store f32 / f64 may be expanded to a single store i32/i64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32490 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand formal arguments and call arguments recursively: e.g. f64 -> i64 -> 2 ↵Evan Cheng2006-12-12
| | | | | | x i32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32476 91177308-0d34-0410-b5e6-96231b3b80d8
* fit in 80 colsChris Lattner2006-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32474 91177308-0d34-0410-b5e6-96231b3b80d8
* this can only be fptrunc.Chris Lattner2006-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32473 91177308-0d34-0410-b5e6-96231b3b80d8
* This case isn't needed with recent changes to ConstantInt::getChris Lattner2006-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32472 91177308-0d34-0410-b5e6-96231b3b80d8
* split up inttoptr from ptrtoint handling, the cases aren't similar at all.Chris Lattner2006-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32471 91177308-0d34-0410-b5e6-96231b3b80d8
* the operand of a bitcast is always the right size, just emit it in place.Chris Lattner2006-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32470 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert Nate's patch to fix X86/store-fp-constant.ll. With the dag combinerChris Lattner2006-12-12
| | | | | | | | and legalizer separated like they currently are, I don't see a way to handle this xform. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32466 91177308-0d34-0410-b5e6-96231b3b80d8
* make this code more aggressive about turning store fpimm into store int imm.Chris Lattner2006-12-12
| | | | | | | This is not sufficient to fix X86/store-fp-constant.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32465 91177308-0d34-0410-b5e6-96231b3b80d8
* Tidy up a bit.Reid Spencer2006-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32462 91177308-0d34-0410-b5e6-96231b3b80d8
* Change inferred cast creation calls to more specific cast creations.Reid Spencer2006-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32460 91177308-0d34-0410-b5e6-96231b3b80d8
* Re-apply changes that were backed out and fix a naughty typo.Evan Cheng2006-12-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32442 91177308-0d34-0410-b5e6-96231b3b80d8
* It seems the llvm::OStream class does not handle stream manipulators.John Criswell2006-12-11
| | | | | | | For now, just grab the stream and perform the output on it directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32441 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert changes that broke oggenc on ppcChris Lattner2006-12-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32440 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't convert store double C, Ptr to store long C, Ptr if i64 is not a legal ↵Evan Cheng2006-12-11
| | | | | | type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32434 91177308-0d34-0410-b5e6-96231b3b80d8
* f32 / f64 node is expanded to one i32 / i64 node.Evan Cheng2006-12-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32433 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up some bad code.Evan Cheng2006-12-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32432 91177308-0d34-0410-b5e6-96231b3b80d8
* Move something that should be in the dag combiner from the legalizer to theNate Begeman2006-12-11
| | | | | | | dag combiner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32431 91177308-0d34-0410-b5e6-96231b3b80d8
* Properly mangles symbol table namesNate Begeman2006-12-11
| | | | | | | | | | Supports constant pools Supports relocations to jump tables Supports relocations within the data segment (global = address of global) Allocates memory in a non-hacky for all non-code objects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32430 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleaned setjmp/longjmp lowering interfaces. Now we're producing rightAnton Korobeynikov2006-12-10
| | | | | | | | code (both asm & cbe) for Mingw32 target. Removed autoconf checks for underscored versions of setjmp/longjmp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32415 91177308-0d34-0410-b5e6-96231b3b80d8
* Preliminary soft float support.Evan Cheng2006-12-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32394 91177308-0d34-0410-b5e6-96231b3b80d8
* Move findTiedToSrcOperand to TargetInstrDescriptor.Evan Cheng2006-12-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32366 91177308-0d34-0410-b5e6-96231b3b80d8
* Proper fix for PR1037: to determine is a VR is a modref, check 1) whether it isEvan Cheng2006-12-08
| | | | | | | | tied to another oeprand, 2) whether is is being tied to by another operand. So the destination operand of a two-address MI can be correctly identified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32354 91177308-0d34-0410-b5e6-96231b3b80d8
* findTiedToSrcOperand() changed.Evan Cheng2006-12-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32353 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix CodeGen/PowerPC/2006-12-07-SelectCrash.ll on PPC64Chris Lattner2006-12-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32336 91177308-0d34-0410-b5e6-96231b3b80d8