Skip to content
  1. Aug 11, 2009
  2. Aug 10, 2009
  3. Aug 08, 2009
  4. Aug 07, 2009
  5. Aug 06, 2009
  6. 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
  7. Aug 04, 2009
    • Dan Gohman's avatar
      Propogate the Depth argument when calling · 15873a8f
      Dan Gohman authored
      TLI.computeMaskedBitsForTargetNode from ComputeMaskedBits, since
      the former may call back into the latter. This fixes a major
      compile time problem on a testcase that happnened to hit this
      in a particularly bad way, PR4643.
      
      llvm-svn: 78023
      15873a8f
  8. Aug 03, 2009
  9. Aug 02, 2009
    • Dan Gohman's avatar
      Avoid forming a SELECT_CC in a type that the target doesn't · 3f323847
      Dan Gohman authored
      support. This isn't immediately interesting, because Legalize
      ends up lowering SELECT_CC if the target doesn't support it,
      but this simplifies the process.
      
      Also, if the SELECT_CC would be expanded in Legalize, it
      can potentially end up with two copies of the condition
      expression. By leaving it as SELECT+SETCC, the SELECT can be
      expanded into two SELECTs that use a single SETCC.
      
      The two comparisons are usually CSE'd, but depending on
      when various expressions get legalized, the comparison
      expression could involve calls to library functions, such
      that the comparison expression may not be able to be CSE'd.
      This will be needed by a future patch.
      
      llvm-svn: 77896
      3f323847
  10. Aug 01, 2009
  11. Jul 31, 2009
  12. Jul 30, 2009
    • Sanjiv Gupta's avatar
      Allow targets to define libcall names for mem(cpy,set,move) intrinsics, rather... · a53e686d
      Sanjiv Gupta authored
      Allow targets to define libcall names for mem(cpy,set,move) intrinsics, rather than hardcoding them in DAG lowering.
      
      llvm-svn: 77586
      a53e686d
    • Evan Cheng's avatar
      Optimize some common usage patterns of atomic built-ins __sync_add_and_fetch()... · e62288fd
      Evan Cheng authored
      Optimize some common usage patterns of atomic built-ins __sync_add_and_fetch() and __sync_sub_and_fetch. 
      
      When the return value is not used (i.e. only care about the value in the memory), x86 does not have to use add to implement these. Instead, it can use add, sub, inc, dec instructions with the "lock" prefix.
      
      This is currently implemented using a bit of instruction selection trick. The issue is the target independent pattern produces one output and a chain and we want to map it into one that just output a chain. The current trick is to select it into a merge_values with the first definition being an implicit_def. The proper solution is to add new ISD opcodes for the no-output variant. DAG combiner can then transform the node before it gets to target node selection.
      
      Problem #2 is we are adding a whole bunch of x86 atomic instructions when in fact these instructions are identical to the non-lock versions. We need a way to add target specific information to target nodes and have this information carried over to machine instructions. Asm printer (or JIT) can use this information to add the "lock" prefix.
      
      llvm-svn: 77582
      e62288fd
    • Owen Anderson's avatar
      Move types back to the 2.5 API. · 4056ca95
      Owen Anderson authored
      llvm-svn: 77516
      4056ca95
  13. Jul 29, 2009
  14. Jul 28, 2009
    • Owen Anderson's avatar
      Return ConstantVector to 2.5 API. · 4aa3295a
      Owen Anderson authored
      llvm-svn: 77366
      4aa3295a
    • Owen Anderson's avatar
      Change ConstantArray to 2.5 API. · c2c7932c
      Owen Anderson authored
      llvm-svn: 77347
      c2c7932c
    • Chris Lattner's avatar
      Rip all of the global variable lowering logic out of TargetAsmInfo. Since · 5e693ed0
      Chris Lattner authored
      it is highly specific to the object file that will be generated in the end,
      this introduces a new TargetLoweringObjectFile interface that is implemented
      for each of ELF/MachO/COFF/Alpha/PIC16 and XCore.
      
      Though still is still a brutal and ugly refactoring, this is a major step
      towards goodness.
      
      This patch also:
      1. fixes a bunch of dangling pointer problems in the PIC16 backend.
      2. disables the TargetLowering copy ctor which PIC16 was accidentally using.
      3. gets us closer to xcore having its own crazy target section flags and
         pic16 not having to shadow sections with its own objects.
      4. fixes wierdness where ELF targets would set CStringSection but not
         CStringSection_.  Factor the code better.
      5. fixes some bugs in string lowering on ELF targets.
      
      llvm-svn: 77294
      5e693ed0
  15. Jul 27, 2009
  16. Jul 26, 2009
  17. Jul 25, 2009
Loading