1. Sep 20, 2014
  2. Sep 19, 2014
    • Frederic Riss's avatar
      Change DwarfCompileUnit::createGlobalVariable to getOrCreateGlobalVariable. · 9ba9efff
      Frederic Riss authored
      Summary:
      This will allow to request the creation of a forward delacred variable
      at is point of use (for imported declarations, this will be
      DwarfDebug::constructImportedEntityDIE) rather than having to put the
      forward decl in a retention list.
      
      Note that getOrCreateGlobalVariable returns the actual definition DIE when the
      routine creates a declaration and a definition DIE. If you agree this is the
      right behavior, then I'll have a followup patch that registers the definition
      in the DIE map instead of the declaration as it is today (this 'breaks' only
      one test, where we test that the imported entity is the declaration). I'm
      not sure what's best here, but it's easy enough for a consumer to follow the
      DW_AT_specification link to get to the declaration, whereas it takes more
      work to find the actual definition from a declaration DIE.
      
      Reviewers: echristo, dblaikie, aprantl
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D5381
      
      llvm-svn: 218126
      9ba9efff
    • Frederic Riss's avatar
      Turn local DWARFContext helpers getFileNameForUnit() and... · 101b5e20
      Frederic Riss authored
      Turn local DWARFContext helpers getFileNameForUnit() and getFileLineInfoForCompileUnit() into full-blowm DWARFDebugLine::LineTable methods.
      
      Summary:
      getFileNameForUnit() is basically a wrapper around LineTable::getFileNameByIndex().
      Fold its additional functionality (adding the DWARFUnit compilation dir) into
      LineTable::getFileNameByIndex().
      
      getFileLineInfoForCompileUnit() is a wrapper around getFileNameForUnit(). As
      a function to search the line information by address, it seems natural to put
      it in the LineTable also.
      
      Before this commit only the Context with its private helpers could do Linetable
      lookups. This newly exposed feature will be used by the DIE dumping code to
      get access to file information referenced in DIE attributes.
      
      This commit has already been partly reviewed in D5192 and contained an
      additional and a bit controversial 'realpath' call that is left out of this
      patch. We can reinstate that realpath code later if it is desirable.
      
      Test Plan:
      The patch contains no tests as it should be functionally equivalent to the
      previous code. As requested in the last review, I checked if the relative
      path handling copied from the Context to LineTable::getFileNameByIndex()
      was covered, and indeed the symbolizer tests fail if it is removed.
      
      Reviewers: dblaikie, echristo, aprantl, samsonov
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D5354
      
      llvm-svn: 218125
      101b5e20
    • Evgeniy Stepanov's avatar
      [asan] asan_device_setup improvements. · a5d07482
      Evgeniy Stepanov authored
      * Allow user SEGV handler if Android-L-like setup is detected.
        Necessary for correctness.
      * Change file context labels on the wrapper script to appease SELinux.
      
      llvm-svn: 218124
      a5d07482
    • Alexander Potapenko's avatar
      [ASan] Print a hint when the program crashes accessing the zero page. · 53b85c25
      Alexander Potapenko authored
      This may help some users figure out that the error report is valid.
      
      llvm-svn: 218123
      53b85c25
    • Benjamin Kramer's avatar
      Elide unnecessary DenseMap copy. · 04f9da8f
      Benjamin Kramer authored
      No functionality change.
      
      llvm-svn: 218122
      04f9da8f
    • Aaron Ballman's avatar
      Silence a signed/unsigned mismatch warning from MSVC; NFC. · c1953dc6
      Aaron Ballman authored
      llvm-svn: 218121
      c1953dc6
    • Hal Finkel's avatar
      Optionally enable more-aggressive FMA formation in DAGCombine · 62ac736f
      Hal Finkel authored
      The heuristic used by DAGCombine to form FMAs checks that the FMUL has only one
      use, but this is overly-conservative on some systems. Specifically, if the FMA
      and the FADD have the same latency (and the FMA does not compete for resources
      with the FMUL any more than the FADD does), there is no need for the
      restriction, and furthermore, forming the FMA leaving the FMUL can still allow
      for higher overall throughput and decreased critical-path length.
      
      Here we add a new TLI callback, enableAggressiveFMAFusion, false by default, to
      elide the hasOneUse check. This is enabled for PowerPC by default, as most
      PowerPC systems will benefit.
      
      Patch by Olivier Sallenave, thanks!
      
      llvm-svn: 218120
      62ac736f
    • Daniel Jasper's avatar
      clang-format: [JS] add space before operator 'in'. · 3549ea1a
      Daniel Jasper authored
      Before:
        return ('aaa')in bbbb;
      
      After:
        return ('aaa') in bbbb;
      
      llvm-svn: 218119
      3549ea1a
    • Robert Khasanov's avatar
      [x86] Add _addcarry_u{32|64} and _subborrow_u{32|64}. · 2c589bcc
      Robert Khasanov authored
      They are added to adxintrin.h but outside __ADX__ block.
      These intrinics generates adc and sbb correspondingly that were available before ADX
                  
      
      llvm-svn: 218118
      2c589bcc
    • Robert Khasanov's avatar
      [x86] Added _addcarryx_u32, _addcarryx_u64 intrinsics · 83c419b3
      Robert Khasanov authored
      llvm-svn: 218117
      83c419b3