Skip to content
  1. Aug 11, 2009
  2. Aug 05, 2009
    • Dan Gohman's avatar
      Major calling convention code refactoring. · f9bbcd1a
      Dan Gohman authored
      Instead of awkwardly encoding calling-convention information with ISD::CALL,
      ISD::FORMAL_ARGUMENTS, ISD::RET, and ISD::ARG_FLAGS nodes, TargetLowering
      provides three virtual functions for targets to override:
      LowerFormalArguments, LowerCall, and LowerRet, which replace the custom
      lowering done on the special nodes. They provide the same information, but
      in a more immediately usable format.
      
      This also reworks much of the target-independent tail call logic. The
      decision of whether or not to perform a tail call is now cleanly split
      between target-independent portions, and the target dependent portion
      in IsEligibleForTailCallOptimization.
      
      This also synchronizes all in-tree targets, to help enable future
      refactoring and feature work.
      
      llvm-svn: 78142
      f9bbcd1a
  3. Oct 12, 2008
  4. Sep 12, 2008
  5. Mar 15, 2008
  6. Mar 14, 2008
  7. Feb 27, 2008
  8. Jan 17, 2008
    • Chris Lattner's avatar
      This commit changes: · 1ea55cf8
      Chris Lattner authored
      1. Legalize now always promotes truncstore of i1 to i8. 
      2. Remove patterns and gunk related to truncstore i1 from targets.
      3. Rename the StoreXAction stuff to TruncStoreAction in TLI.
      4. Make the TLI TruncStoreAction table a 2d table to handle from/to conversions.
      5. Mark a wide variety of invalid truncstores as such in various targets, e.g.
         X86 currently doesn't support truncstore of any of its integer types.
      6. Add legalize support for truncstores with invalid value input types.
      7. Add a dag combine transform to turn store(truncate) into truncstore when
         safe.
      
      The later allows us to compile CodeGen/X86/storetrunc-fp.ll to:
      
      _foo:
      	fldt	20(%esp)
      	fldt	4(%esp)
      	faddp	%st(1)
      	movl	36(%esp), %eax
      	fstps	(%eax)
      	ret
      
      instead of:
      
      _foo:
      	subl	$4, %esp
      	fldt	24(%esp)
      	fldt	8(%esp)
      	faddp	%st(1)
      	fstps	(%esp)
      	movl	40(%esp), %eax
      	movss	(%esp), %xmm0
      	movss	%xmm0, (%eax)
      	addl	$4, %esp
      	ret
      
      llvm-svn: 46140
      1ea55cf8
  9. Dec 29, 2007
  10. Dec 13, 2007
  11. Nov 13, 2007
  12. Sep 11, 2007
  13. Jul 21, 2007
  14. Jul 19, 2007
    • Evan Cheng's avatar
      Change instruction description to split OperandList into OutOperandList and · 94b5a80b
      Evan Cheng authored
      InOperandList. This gives one piece of important information: # of results
      produced by an instruction.
      An example of the change:
      def ADD32rr  : I<0x01, MRMDestReg, (ops GR32:$dst, GR32:$src1, GR32:$src2),
                       "add{l} {$src2, $dst|$dst, $src2}",
                       [(set GR32:$dst, (add GR32:$src1, GR32:$src2))]>;
      =>
      def ADD32rr  : I<0x01, MRMDestReg, (outs GR32:$dst), (ins GR32:$src1, GR32:$src2),
                       "add{l} {$src2, $dst|$dst, $src2}",
                       [(set GR32:$dst, (add GR32:$src1, GR32:$src2))]>;
      
      llvm-svn: 40033
      94b5a80b
  15. Nov 04, 2006
  16. Oct 13, 2006
  17. Oct 12, 2006
  18. Oct 11, 2006
  19. Oct 09, 2006
  20. Sep 02, 2006
  21. Aug 11, 2006
  22. May 09, 2006
  23. Feb 21, 2006
  24. Feb 17, 2006
  25. Feb 10, 2006
  26. Feb 09, 2006
  27. Feb 05, 2006
  28. Feb 02, 2006
  29. Jan 31, 2006
  30. Jan 30, 2006
    • Chris Lattner's avatar
      Revamp the ICC/FCC reading instructions to be parameterized in terms of the · 37faeb2b
      Chris Lattner authored
      SPARC condition codes, not in terms of the DAG condcodes.  This allows us to
      write nice clean patterns for cmovs/branches.
      
      llvm-svn: 25815
      37faeb2b
    • Chris Lattner's avatar
      Compile: · 33a79cae
      Chris Lattner authored
      uint %test(uint %X) {
              %Y = call uint %llvm.ctpop.i32(uint %X)
              ret uint %Y
      }
      
      to:
      
      test:
              save -96, %o6, %o6
              sll %i0, 0, %l0
              popc %l0, %i0
              restore %g0, %g0, %g0
              retl
              nop
      
      instead of to 40 logical ops.  Note the shift-by-zero that clears the top
      part of the 64-bit V9 register.
      
      Testcase here: CodeGen/SparcV8/ctpop.ll
      
      llvm-svn: 25814
      33a79cae
Loading