1. Jan 04, 2022
  2. Jan 03, 2022
    • Alexander Belyaev's avatar
      [mlir] Remove unnecessary canonicalization from Linalg Detensorize.cpp · 550ea385
      Alexander Belyaev authored
      After https://reviews.llvm.org/D115821 it became possible to create
      `tensor<elem_type>` with a single `tensor.from_elements` operation without
      collapsing tensor shape from `tensor<1xelem_type>` to `tensor<elem_type>`
      
      Differential Revision: https://reviews.llvm.org/D115891
      550ea385
    • Sam McCall's avatar
      [CodeCompletion] Signature help for template argument lists · cd45e8c7
      Sam McCall authored
      Provide signature while typing template arguments: Foo< ^here >
      Here the parameters are e.g. "typename x", and the result type is e.g.
      "struct" (class template) or "int" (variable template) or "bool (std::string)"
      (function template).
      
      Multiple overloads are possible when a template name is used for several
      overloaded function templates.
      
      Fixes https://github.com/clangd/clangd/issues/299
      
      Differential Revision: https://reviews.llvm.org/D116352
      cd45e8c7
    • LLVM GN Syncbot's avatar
      [gn build] Port a8ae6828 · 3a33c0b1
      LLVM GN Syncbot authored
      3a33c0b1
    • Pavel Labath's avatar
      [lldb] Delete GDBRemoteCommunicationReplayServer · a8ae6828
      Pavel Labath authored
      This survived the reproducer deletion.
      a8ae6828
    • Uday Bondhugula's avatar
      [MLIR] Fix confusing diagnostic during dialect conversion · e49c0e48
      Uday Bondhugula authored
      Fix confusing diagnostic during partial dialect conversion. A failure to
      legalize is not the same as an operation being illegal: for eg. an
      operation neither explicity marked legal nor explicitly marked illegal
      could have been generated and may have failed to legalize further. The
      op isn't an illegal one per
      https://mlir.llvm.org/docs/DialectConversion/#conversion-target
      which is an op that is explicitly marked illegal.
      
      Differential Revision: https://reviews.llvm.org/D116152
      e49c0e48
    • William S. Moses's avatar
      [MLIR] Create add of sub folder · 21aa2a1b
      William S. Moses authored
      Create folders for add(sub(a, b), b) -> a and add(b, sub(a, b)) -> a
      
      Reviewed By: ftynse
      
      Differential Revision: https://reviews.llvm.org/D116471
      21aa2a1b
    • Pavel Labath's avatar
      [lldb/qemu] Set qemu's "ld prefix" based on the platform sysroot · 862fffd8
      Pavel Labath authored
      Both serve the same purpose (finding shared libraries) and allow one to
      launch a dynamically linked executable by just specifying the platform
      sysroot.
      862fffd8
    • Pavel Labath's avatar
      [lldb-server/linux] Fix waitpid for multithreaded forks · ca271f4e
      Pavel Labath authored
      The lldb-server code is currently set up in a way that each
      NativeProcess instance does its own waitpid handling. This works fine
      for BSDs, where the code can do a waitpid(process_id), and get
      information for all threads in that process.
      
      The situation is trickier on linux, because waitpid(pid) will only
      return information for the main thread of the process (one whose tid ==
      pid). For this reason the linux code does a waitpid(-1), to get
      information for all threads. This was fine while we were supporting just
      a single process, but becomes a problem when we have multiple processes
      as they end up stealing each others events.
      
      There are two possible solutions to this problem:
      - call waitpid(-1) centrally, and then dispatch the events to the
        appropriate process
      - have each process call waitpid(tid) for all the threads it manages
      
      This patch implements the second approach. Besides fitting better into
      the existing design, it also has the added benefit of ensuring
      predictable ordering for thread/process creation events (which come in
      pairs -- one for the parent and one for the child). The first approach
      OTOH, would make this ordering even more complicated since we would
      have to keep the half-threads hanging in mid-air until we find the
      process we should attach them to.
      
      The downside to this approach is an increased number of syscalls (one
      waitpid for each thread), but I think we're pretty far from optimizing
      things like this, and so the cleanliness of the design is worth it.
      
      The included test reproduces the circumstances which should demonstrate
      the bug (which manifests as a hung test), but I have not been able to
      get it to fail. The only place I've seen this failure modes are very
      rare hangs in the thread sanitizer tests (tsan forks an addr2line
      process to produce its error messages).
      
      Differential Revision: https://reviews.llvm.org/D116372
      ca271f4e