1. Aug 06, 2021
    • Jonas Devlieghere's avatar
      [lldb] Refactor IRExecutionUnit::FindInSymbols (NFC) · a46bcc60
      Jonas Devlieghere authored
      This patch refactors IRExecutionUnit::FindInSymbols. It eliminates a few
      potential pitfalls and tries to be more explicit about the state carried
      between symbol resolution attempts.
      
      Differential revision: https://reviews.llvm.org/D107206
      a46bcc60
    • Jonas Devlieghere's avatar
      [lldb] Use a struct to pass function search options to Module::FindFunction · c020be17
      Jonas Devlieghere authored
      Rather than passing two booleans around, which is especially error prone
      with them being next to each other, use a struct with named fields
      instead.
      
      Differential revision: https://reviews.llvm.org/D107295
      c020be17
    • Dan Liew's avatar
      Fix COMPILER_RT_DEBUG build for targets that don't support thread local storage. · a756239e
      Dan Liew authored
      02243993 added code that is only enabled
      when COMPILER_RT_DEBUG is enabled. This code doesn't build on targets
      that don't support thread local storage because the code added uses the
      THREADLOCAL macro. Consequently the COMPILER_RT_DEBUG build broke for
      some Apple targets (e.g. 32-bit iOS simulators).
      
      ```
      /Volumes/user_data/dev/llvm/llvm.org/main/src/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_mutex.cpp:216:8: error: thread-local storage is not supported for the current target
      static THREADLOCAL InternalDeadlockDetector deadlock_detector;
             ^
      /Volumes/user_data/dev/llvm/llvm.org/main/src/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h:227:24: note: expanded from macro 'THREADLOCAL'
       # define THREADLOCAL   __thread
                              ^
      1 error generated.
      ```
      
      To fix this, this patch introduces a `SANITIZER_SUPPORTS_THREADLOCAL`
      macro that is `1` iff thread local storage is supported by the current
      target. That condition is then added to `SANITIZER_CHECK_DEADLOCKS` to
      ensure the code is only enabled when thread local storage is available.
      
      The implementation of `SANITIZER_SUPPORTS_THREADLOCAL` currently assumes
      Clang. See `llvm-project/clang/include/clang/Basic/Features.def` for the
      definition of the `tls` feature.
      
      rdar://81543007
      
      Differential Revision: https://reviews.llvm.org/D107524
      a756239e
    • Ramesh Peri's avatar
      [llvm-ar] Fix for handling thin archive with SYM64 and a test case for it · 976bd236
      Ramesh Peri authored
      WHen thin archives are created which have symbol table of type SYM64 then all the tools will not work since they cannot read the files properly.
      One can reproduce the problem as follows:
      1. Take a hello world program and create an archive out of it. The SYM64_THRESHOLD=0 will force the generation of SYM64 symbol table.
          clang -c hello.cpp
          SYM64_THRESHOLD=0 llvm-ar crsT mylib.a hello.o
      2. Now try to use any of the tools on this mylib.a and it will fail.
          llvm-nm -M mylib.a
      
      THis fix will eliminate these failures. A regression test is created in llvm/test/Object/archive-symtab.test
      
      Reviewed By: MaskRay, Ramesh
      
      Differential Revision: https://reviews.llvm.org/D107322
      976bd236
    • Jon Roelofs's avatar
      Fix clang-interpreter build after 2487db1f · b4c0307d
      Jon Roelofs authored
      b4c0307d
    • Benjamin Kramer's avatar
      Revert "[X86] combineX86ShuffleChain(): canonicalize mask elts picking from splats" · bd17ced1
      Benjamin Kramer authored
      This reverts commits f819e4c7 and
      35c0848b. It triggers an infinite loop during
      compilation.
      
      $ cat t.ll
      target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
      target triple = "x86_64-unknown-linux-gnu"
      
      define void @MaxPoolGradGrad_1.65() local_unnamed_addr #0 {
      entry:
        %wide.vec78 = load <64 x i32>, <64 x i32>* null, align 16
        %strided.vec83 = shufflevector <64 x i32> %wide.vec78, <64 x i32> poison, <8 x i32> <i32 4, i32 12, i32 20, i32 28, i32 36, i32 44, i32 52, i32 60>
        %0 = lshr <8 x i32> %strided.vec83, <i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16>
        %1 = add <8 x i32> zeroinitializer, %0
        %2 = shufflevector <8 x i32> %1, <8 x i32> undef, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
        %3 = shufflevector <16 x i32> %2, <16 x i32> undef, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
        %interleaved.vec = shufflevector <32 x i32> undef, <32 x i32> %3, <64 x i32> <i32 0, i32 8, i32 16, i32 24, i32 32, i32 40, i32 48, i32 56, i32 1, i32 9, i32 17, i32 25, i32 33, i32 41, i32 49, i32 57, i32 2, i32 10, i32 18, i32 26, i32 34, i32 42, i32 50, i32 58, i32 3, i32 11, i32 19, i32 27, i32 35, i32 43, i32 51, i32 59, i32 4, i32 12, i32 20, i32 28, i32 36, i32 44, i32 52, i32 60, i32 5, i32 13, i32 21, i32 29, i32 37, i32 45, i32 53, i32 61, i32 6, i32 14, i32 22, i32 30, i32 38, i32 46, i32 54, i32 62, i32 7, i32 15, i32 23, i32 31, i32 39, i32 47, i32 55, i32 63>
        store <64 x i32> %interleaved.vec, <64 x i32>* undef, align 16
        unreachable
      }
      
      $ llc < t.ll -mcpu=skylake
      <hang>
      bd17ced1
    • Jessica Paquette's avatar
      [AArch64][GlobalISel] Mark v16s8 <- v8s8, v8s8 G_CONCAT_VECTOR as legal · f3f3098a
      Jessica Paquette authored
      G_CONCAT_VECTORS shows up from time to time when legalizing other instructions.
      
      We actually import patterns for the v16s8 <- v8s8, v8s8 case so marking it
      as legal gives us selection for free.
      
      Differential Revision: https://reviews.llvm.org/D107512
      f3f3098a
    • Daniele Vettorel's avatar
      Add llvm-stress binary to Bazel build configuration. · 180f4a87
      Daniele Vettorel authored
      The `llvm-stress` binary is currently missing from the Bazel `BUILD` file for llvm. This patch adds it.
      
      Reviewed By: GMNGeoffrey
      
      Differential Revision: https://reviews.llvm.org/D107571
      180f4a87
    • Florian Hahn's avatar
      [SLP] Add additional memory version tests. · 97469d4c
      Florian Hahn authored
      97469d4c
  2. Aug 05, 2021