Skip to content
  1. May 27, 2020
    • Alex Langford's avatar
      [lldb][Core] Remove dead codepath in Mangled · 1079978b
      Alex Langford authored
      Summary:
      Objective-C names are stored in m_demangled, not in m_mangled. The
      method in the condition will never return true.
      
      Differential Revision: https://reviews.llvm.org/D79823
      1079978b
    • Jonas Devlieghere's avatar
      [lldb/Test] Modify TestSymbolTable.py for reproducers · e724db03
      Jonas Devlieghere authored
      Work around global module caching during reproducer replay. See inline
      comment for the details.
      e724db03
    • Sean Silva's avatar
      [mlir][shape] Add `shape.get_extent`. · cf42b704
      Sean Silva authored
      Summary:
      This op extracts an extent from a shape.
      
      This also is the first op which constant folds to shape.const_size,
      which revealed that shape.const_size needs a folder (ConstantLike ops
      seem to always need folders for the constant folding infra to work).
      
      Differential Revision: https://reviews.llvm.org/D80394
      cf42b704
    • Alexander Shaposhnikov's avatar
      [llvm-objcopy][MachO] Add support for removing Swift symbols · 842a8cc1
      Alexander Shaposhnikov authored
      cctools strip has the option "-T" which removes Swift symbols.
      This diff implements this option in llvm-strip for MachO.
      
      Test plan: make check-all
      
      Differential revision: https://reviews.llvm.org/D80099
      842a8cc1
    • Arthur Eubanks's avatar
      Modify verifier checks to support musttail + preallocated · 9a0b0855
      Arthur Eubanks authored
      Summary:
      preallocated and musttail can work together, but we don't want to call
      @llvm.call.preallocated.setup() to modify the stack in musttail calls.
      So we shouldn't have the "preallocated" operand bundle when a
      preallocated call is musttail.
      
      Also disallow use of preallocated on calls without preallocated.
      
      Codegen not yet implemented.
      
      Subscribers: hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D80581
      9a0b0855
    • stevewan's avatar
      [NFC] Fix formatting for the 'aix-ld.c' test case. · a924dac4
      stevewan authored
      Summary:
      Based on comments received in D80415 pertinent to test case format, the following fixes are provided to other tests in 'aix-ld.c' for the sake of consistency and readability,
        - Align flags in RUN directives vertically.
        - Align patterns in CHECK directives vertically.
        - Remove the ‘-o %t.o’ as it’s unnecessary for tests with ‘-###’.
        - Fix typos in comments.
      
      Reviewers: ZarkoCA, hubert.reinterpretcast, daltenty
      
      Reviewed By: hubert.reinterpretcast
      
      Subscribers: cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D80532
      a924dac4
    • Kristóf Umann's avatar
      [analyzer][MallocChecker] Make NewDeleteLeaks depend on DynamicMemoryModeling rather than NewDelete · efd1a8e6
      Kristóf Umann authored
      If you remember the mail [1] I sent out about how I envision the future of the
      already existing checkers to look dependencywise, one my main points was that no
      checker that emits diagnostics should be a dependency. This is more problematic
      for some checkers (ahem, RetainCount [2]) more than for others, like this one.
      
      The MallocChecker family is a mostly big monolithic modeling class some small
      reporting checkers that only come to action when we are constructing a warning
      message, after the actual bug was detected. The implication of this is that
      NewDeleteChecker doesn't really do anything to depend on, so this change was
      relatively simple.
      
      The only thing that complicates this change is that FreeMemAux (MallocCheckers
      method that models general memory deallocation) returns after calling a bug
      reporting method, regardless whether the report was ever emitted (which may not
      always happen, for instance, if the checker responsible for the report isn't
      enabled). This return unfortunately happens before cleaning up the maps in the
      GDM keeping track of the state of symbols (whether they are released, whether
      that release was successful, etc). What this means is that upon disabling some
      checkers, we would never clean up the map and that could've lead to false
      positives, e.g.:
      
      error: 'warning' diagnostics seen but not expected:
        File clang/test/Analysis/NewDelete-intersections.mm Line 66: Potential leak of memory pointed to by 'p'
        File clang/test/Analysis/NewDelete-intersections.mm Line 73: Potential leak of memory pointed to by 'p'
        File clang/test/Analysis/NewDelete-intersections.mm Line 77: Potential leak of memory pointed to by 'p'
      
      error: 'warning' diagnostics seen but not expected:
        File clang/test/Analysis/NewDelete-checker-test.cpp Line 111: Undefined or garbage value returned to caller
        File clang/test/Analysis/NewDelete-checker-test.cpp Line 200: Potential leak of memory pointed to by 'p'
      
      error: 'warning' diagnostics seen but not expected:
        File clang/test/Analysis/new.cpp Line 137: Potential leak of memory pointed to by 'x'
      There two possible approaches I had in mind:
      
      Make bug reporting methods of MallocChecker returns whether they succeeded, and
      proceed with the rest of FreeMemAux if not,
      Halt execution with a sink node upon failure. I decided to go with this, as
      described in the code.
      As you can see from the removed/changed test files, before the big checker
      dependency effort landed, there were tests to check for all the weird
      configurations of enabled/disabled checkers and their messy interactions, I
      largely repurposed these.
      
      [1] http://lists.llvm.org/pipermail/cfe-dev/2019-August/063070.html
      [2] http://lists.llvm.org/pipermail/cfe-dev/2019-August/063205.html
      
      Differential Revision: https://reviews.llvm.org/D77474
      efd1a8e6
    • Kirstóf Umann's avatar
      [analyzer][RetainCount] Tie diagnostics to osx.cocoa.RetainCount rather then... · 5192783b
      Kirstóf Umann authored
      [analyzer][RetainCount] Tie diagnostics to osx.cocoa.RetainCount rather then RetainCountBase, for the most part
      
      Similarly to other patches of mine, I'm trying to uniformize the checker
      interface so that dependency checkers don't emit diagnostics. The checker that
      made me most anxious so far was definitely RetainCount, because it is definitely
      impacted by backward compatibility concerns, and implements a checker hierarchy
      that is a lot different to other examples of similar size. Also, I don't have
      authority, nor expertise regarding ObjC related code, so I welcome any
      objection/discussion!
      
      Differential Revision: https://reviews.llvm.org/D78099
      5192783b
  2. May 26, 2020
Loading