Skip to content
  1. Dec 04, 2012
    • Bill Wendling's avatar
      Use the 'count' attribute to calculate the upper bound of an array. · d7767125
      Bill Wendling authored
      The count attribute is more accurate with regards to the size of an array. It
      also obviates the upper bound attribute in the subrange. We can also better
      handle an unbound array by setting the count to -1 instead of the lower bound to
      1 and upper bound to 0.
      
      llvm-svn: 169312
      d7767125
    • David Blaikie's avatar
      Reapply r160148 (reverted in r163570) fixing spurious breakpoints in modern GDB · 5a773bb6
      David Blaikie authored
      This reapplies the fix for PR13303 now with more justification. Based on my
      execution of the GDB 7.5 test suite this results in:
      
      expected passes: 16101 -> 20890 (+30%)
      unexpected failures: 4826 -> 637 (-77%)
      
      There are 23 checks that used to pass and now fail. They are all in
      gdb.reverse. Investigating a few looks like they were accidentally passing
      due to extra breakpoints being set by this bug. They're generally due to the
      difference in end location between gcc and clang, the test suite is trying to
      set breakpoints on the closing '}' that clang doesn't associate with any
      instructions.
      
      llvm-svn: 169304
      5a773bb6
    • Chandler Carruth's avatar
      Sort includes for all of the .h files under the 'lib' tree. These were · 802d7555
      Chandler Carruth authored
      missed in the first pass because the script didn't yet handle include
      guards.
      
      Note that the script is now able to handle all of these headers without
      manual edits. =]
      
      llvm-svn: 169224
      802d7555
    • Bill Wendling's avatar
      Add a 'count' field to the DWARF subrange. · bfc0e572
      Bill Wendling authored
      The count field is necessary because there isn't a difference between the 'lo'
      and 'hi' attributes for a one-element array and a zero-element array. When the
      count is '0', we know that this is a zero-element array. When it's >=1, then
      it's a normal constant sized array. When it's -1, then the array is unbounded.
      
      llvm-svn: 169218
      bfc0e572
  2. Dec 03, 2012
    • Eli Bendersky's avatar
      Fix PR12942: Allow two CUs to be generated from the same source file. · b42d1466
      Eli Bendersky authored
      Thanks Eric for the review.
      
      llvm-svn: 169142
      b42d1466
    • Chandler Carruth's avatar
      Use the new script to sort the includes of every file under lib. · ed0881b2
      Chandler Carruth authored
      Sooooo many of these had incorrect or strange main module includes.
      I have manually inspected all of these, and fixed the main module
      include to be the nearest plausible thing I could find. If you own or
      care about any of these source files, I encourage you to take some time
      and check that these edits were sensible. I can't have broken anything
      (I strictly added headers, and reordered them, never removed), but they
      may not be the headers you'd really like to identify as containing the
      API being implemented.
      
      Many forward declarations and missing includes were added to a header
      files to allow them to parse cleanly when included first. The main
      module rule does in fact have its merits. =]
      
      llvm-svn: 169131
      ed0881b2
  3. Dec 01, 2012
  4. Nov 29, 2012
  5. Nov 27, 2012
  6. Nov 22, 2012
  7. Nov 21, 2012
  8. Nov 20, 2012
  9. Nov 19, 2012
  10. Nov 14, 2012
  11. Nov 13, 2012
  12. Nov 12, 2012
  13. Nov 07, 2012
  14. Nov 01, 2012
    • Chandler Carruth's avatar
      Revert the majority of the next patch in the address space series: · 5da3f051
      Chandler Carruth authored
      r165941: Resubmit the changes to llvm core to update the functions to
               support different pointer sizes on a per address space basis.
      
      Despite this commit log, this change primarily changed stuff outside of
      VMCore, and those changes do not carry any tests for correctness (or
      even plausibility), and we have consistently found questionable or flat
      out incorrect cases in these changes. Most of them are probably correct,
      but we need to devise a system that makes it more clear when we have
      handled the address space concerns correctly, and ideally each pass that
      gets updated would receive an accompanying test case that exercises that
      pass specificaly w.r.t. alternate address spaces.
      
      However, from this commit, I have retained the new C API entry points.
      Those were an orthogonal change that probably should have been split
      apart, but they seem entirely good.
      
      In several places the changes were very obvious cleanups with no actual
      multiple address space code added; these I have not reverted when
      I spotted them.
      
      In a few other places there were merge conflicts due to a cleaner
      solution being implemented later, often not using address spaces at all.
      In those cases, I've preserved the new code which isn't address space
      dependent.
      
      This is part of my ongoing effort to clean out the partial address space
      code which carries high risk and low test coverage, and not likely to be
      finished before the 3.2 release looms closer. Duncan and I would both
      like to see the above issues addressed before we return to these
      changes.
      
      llvm-svn: 167222
      5da3f051
    • Chandler Carruth's avatar
      Revert the series of commits starting with r166578 which introduced the · 7ec5085e
      Chandler Carruth authored
      getIntPtrType support for multiple address spaces via a pointer type,
      and also introduced a crasher bug in the constant folder reported in
      PR14233.
      
      These commits also contained several problems that should really be
      addressed before they are re-committed. I have avoided reverting various
      cleanups to the DataLayout APIs that are reasonable to have moving
      forward in order to reduce the amount of churn, and minimize the number
      of commits that were reverted. I've also manually updated merge
      conflicts and manually arranged for the getIntPtrType function to stay
      in DataLayout and to be defined in a plausible way after this revert.
      
      Thanks to Duncan for working through this exact strategy with me, and
      Nick Lewycky for tracking down the really annoying crasher this
      triggered. (Test case to follow in its own commit.)
      
      After discussing with Duncan extensively, and based on a note from
      Micah, I'm going to continue to back out some more of the more
      problematic patches in this series in order to ensure we go into the
      LLVM 3.2 branch with a reasonable story here. I'll send a note to
      llvmdev explaining what's going on and why.
      
      Summary of reverted revisions:
      
      r166634: Fix a compiler warning with an unused variable.
      r166607: Add some cleanup to the DataLayout changes requested by
               Chandler.
      r166596: Revert "Back out r166591, not sure why this made it through
               since I cancelled the command. Bleh, sorry about this!
      r166591: Delete a directory that wasn't supposed to be checked in yet.
      r166578: Add in support for getIntPtrType to get the pointer type based
               on the address space.
      llvm-svn: 167221
      7ec5085e
Loading