Skip to content
  1. Aug 24, 2011
    • Bill Wendling's avatar
      Add the sentinal "no handle" value to the ResumeInst. · f4ee0c0d
      Bill Wendling authored
      A value of -1 at a call site tells the personality function that this call isn't
      handled by the current function. Since the ResumeInsts are converted to calls to
      _Unwind_SjLj_Resume, add a (volatile) store of -1 to its 'call site'.
      
      llvm-svn: 138416
      f4ee0c0d
    • Bill Wendling's avatar
      Don't replace *all* uses with the new stuff. · 2d4f0bea
      Bill Wendling authored
      This is not necessarily the first or dominating use of the EH values. The IR
      breaks if it's not. So replace the specific value in the instruction with the
      new value.
      
      llvm-svn: 138406
      2d4f0bea
    • Bill Wendling's avatar
      Look at the end of the entry block for an invoke. · 01a325a4
      Bill Wendling authored
      The invoke could be at the end of the entry block. If it's the only one, then we
      won't process all of the landingpad instructions correctly. This code is
      currently ugly, but should be made much nicer once the new EH switch is thrown.
      
      llvm-svn: 138397
      01a325a4
  2. Aug 23, 2011
  3. Aug 22, 2011
  4. Aug 20, 2011
  5. Aug 19, 2011
  6. Aug 17, 2011
    • Bill Wendling's avatar
      Add the support in code-gen for the landingpad instruction lowering. · 247fd3bf
      Bill Wendling authored
      The landingpad instruction is lowered into the EXCEPTIONADDR and EHSELECTION
      SDNodes. The information from the landingpad instruction is harvested by the
      'AddLandingPadInfo' function. The new EH uses the current EH scheme in the
      back-end. This will change once we switch over to the new scheme. (Reviewed by
      Jakob!)
      
      llvm-svn: 137880
      247fd3bf
    • Bill Wendling's avatar
      Revert patch. Forgot a dependent commit. · a408e5bf
      Bill Wendling authored
      llvm-svn: 137875
      a408e5bf
    • Bill Wendling's avatar
      Add the body of 'visitLandingPad'. · 2a521948
      Bill Wendling authored
      This generates the SDNodes for the new exception handling scheme. It takes the
      two values coming from the landingpad instruction and assigns them to the
      EXCEPTIONADDR and EHSELECTION nodes.
      
      llvm-svn: 137873
      2a521948
    • Bill Wendling's avatar
      Modify for the new EH scheme. · 1cdd7fdf
      Bill Wendling authored
      Things are much saner now. We no longer need to modify the laning pads, because
      of the invariants we impose upon them. The only thing DwarfEHPrepare needs to do
      is convert the 'resume' instruction into a call to '_Unwind_Resume'.
      
      llvm-svn: 137855
      1cdd7fdf
    • Devang Patel's avatar
      Until now all debug info MDNodes referred to a root MDNode, a compile unit.... · eb1bb4e4
      Devang Patel authored
      Until now all debug info MDNodes referred to a root MDNode, a compile unit. This simplified handling of these needs in dwarf writer.  However, one side effect of this is that during link time optimization all these MDNodes are _not_ uniqued. In other words there will be N number of MDNodes describing "int", "char" and all other types, which would suddenly grow when each object file starts using libraries like STL.
      
      MDNodes graph structure such that compiler unit keeps track of important MDNodes and update dwarf writer to process mdnodes top-down instead of bottom up.
      
      llvm-svn: 137778
      eb1bb4e4
  7. Aug 16, 2011
  8. Aug 15, 2011
Loading