Skip to content
  1. Jan 16, 2003
  2. Jan 14, 2003
  3. Jan 13, 2003
    • Chris Lattner's avatar
      * Adjust to use new interfaces, eliminating CurReg stuff · 6c0daf79
      Chris Lattner authored
      * Support arbitrary FP constants
      * Fix bugs in frame layout for function calls and incoming arguments
      * Insert copies for constant arguments to PHI nodes into the BOTTOM of
        predecessor blocks, not the top.
      * Implement _floating point_ support: setcc, return, load, store, cast
      * Fix several bugs in the cast instruction
      * Abstract out call emission and load/store for FP
      * Implement malloc/free without previous lowering pass.
      * Make use of new forms of MachineOperand
      * Implement _long_ support!
      * Fix many bugs in FP support
      * Change branch from je/jne to je/jmp
      * Simplify code generated for GEP instructions
      
      llvm-svn: 5223
      6c0daf79
  4. Dec 28, 2002
  5. Dec 25, 2002
  6. Dec 24, 2002
  7. Dec 18, 2002
  8. Dec 17, 2002
  9. Dec 16, 2002
  10. Dec 15, 2002
  11. Dec 13, 2002
    • Chris Lattner's avatar
      Implement indirect function calls · c4eb1ed2
      Chris Lattner authored
      llvm-svn: 5024
      c4eb1ed2
    • Chris Lattner's avatar
      Fix bork in doMultiply · a1cf9a7c
      Chris Lattner authored
      llvm-svn: 5021
      a1cf9a7c
    • Chris Lattner's avatar
      Add sanity checks · f1874b06
      Chris Lattner authored
      llvm-svn: 5020
      f1874b06
    • Chris Lattner's avatar
      Insert phi code at top of block · d4c5013c
      Chris Lattner authored
      llvm-svn: 5015
      d4c5013c
    • Brian Gaeke's avatar
      · 61edd534
      Brian Gaeke authored
      lib/Target/X86/InstSelectSimple.cpp:
      
      The MachineBasicBlock variable name patrol hereby fines Chris Lattner
      one bag of nachos, for shadowing global names while his license to do so
      was under suspension.
      
      llvm-svn: 5014
      61edd534
    • Chris Lattner's avatar
      Implement cast bool to X · 0a370463
      Chris Lattner authored
      llvm-svn: 5012
      0a370463
    • Brian Gaeke's avatar
      · 85b78b73
      Brian Gaeke authored
      Rename all BMI MachineBasicBlock operands to MBB.
      
      Try to mess around with emitGEPOperation's elementSizeReg to make it work,
      again.
      
      llvm-svn: 5011
      85b78b73
    • Chris Lattner's avatar
      Finish up iterator stuph · 825be9ad
      Chris Lattner authored
      llvm-svn: 5009
      825be9ad
    • Chris Lattner's avatar
      Code gen phi's correctly · e189edf2
      Chris Lattner authored
      llvm-svn: 5004
      e189edf2
    • Brian Gaeke's avatar
      · eaeacc58
      Brian Gaeke authored
      lib/Target/X86/InstSelectSimple.cpp: Start counting arguments with 2,
       because arguments start two stack slots off of EBP. Break out of the
       for loop once the argument is found. Increment the counter at the end
       of the loop instead of the beginning. Use addRegOffset and compute
       the scale * index part at compile time instead of using the fancy
       load instruction. Just because an instruction set has wacky addressing
       modes doesn't mean we ought to use them (at least, if you believe Dave
       Patterson).
      
      lib/Target/X86/X86InstrBuilder.h: Add some comments.
      
      test/Regression/Jello/test-loadstore.ll:  Let main return int 0.
      
      llvm-svn: 4999
      eaeacc58
    • Brian Gaeke's avatar
      · 44876fde
      Brian Gaeke authored
      InstSelectSimple.cpp:  Give promote32 a comment.  Add initial
       implementation of getReg() for arguments.
      
      MachineCodeEmitter.cpp: Fix using EBP with index, scale and no
       displacement (whew!) due to Chris.
      
      Printer.cpp: Fix printing out index and scale in memory references.
      
      llvm-svn: 4998
      44876fde
    • Chris Lattner's avatar
      Implement getelementptr constant exprs · 179519bf
      Chris Lattner authored
      Implement ConstantPointerRefs
      Treat long/ulongs as if they were integers.  A hack, but an effective one
      
      llvm-svn: 4995
      179519bf
    • Brian Gaeke's avatar
      · 4e2c30d8
      Brian Gaeke authored
      brg
      
      InstSelectSimple.cpp: Add stub implementation of visitFreeInst.
       Add comments that mention how we are failing to implement malloc/free.
       Add initial implementation of visitAllocaInst.
      
      X86TargetMachine.cpp: Include llvm/Transforms/Scalar.h.
       Add LowerAllocations pass before instruction selection.
      
      jello/Makefile: Add scalaropts.a.
      
      llvm-svn: 4994
      4e2c30d8
    • Chris Lattner's avatar
      Remove extranous #include · 1176170c
      Chris Lattner authored
      llvm-svn: 4980
      1176170c
  12. Dec 12, 2002
    • Brian Gaeke's avatar
      · 5e91d38e
      Brian Gaeke authored
      This checkin is brought to you by the brian gaeke allnighter fund.
      
      
      (lib/Target/X86) InstSelectSimple.cpp:
       Include llvm/DerivedTypes.h and iostream.
       Refactor visitMul out into a wrapper around doMultiply(), so that we
        can do multiplications on temporary values when we are doing
        getelementptrs.
       Refactor part of getReg out into makeAnotherReg, so that we can create
        registers willy-nilly to hold temporary values, when we are doing
        getelementptrs.
       Add stub implementations of visitMallocInst and visitAllocaInst.
       Add initial implementation of visitGetElementPtrInst.
       In copyConstantToRegister:
        We throw a *lot* of our asserts here. So, when we want to throw an
         assert, print out to stderr whatever expr or whatever constant made
         us barf.
        Support copying ConstantPointerNull to register, using a move immediate
         of zero.
       Rename FLDr4 and FLDr8 to FLDr32 and FLDr64, so that they match the meanings
        of the numbers in the other instruction names. All uses modified.
       Teach visitCallInst to extract byte- and short-class return values
        from subregs of EAX.  Add a FIXME note about how we would do it for
        float-class return values.
       Add a FIXME note about how we would cast float to int and back.
      
      X86InstrInfo.def:
       Rename FLDr4 and FLDr8 to FLDr32 and FLDr64, so that they match the meanings
        of the numbers in the other instruction names. All uses modified.
      
      (tools/jello) GlobalVars.cpp:
       Include iostream.
       If we have to emit a floating-point constant to memory, gamble and use
        the same method as for ints.
       If we have to emit a ConstantPointerNull to memory, try using a "void *"
        and "NULL".
       Otherwise, if we are going to throw an assert, print out whatever constant
        made us barf, first.
      
      llvm-svn: 4973
      5e91d38e
  13. Dec 06, 2002
  14. Dec 05, 2002
  15. Dec 04, 2002
  16. Dec 03, 2002
Loading