1. May 19, 2021
  2. May 18, 2021
    • Sergey Dmitriev's avatar
      [clang-offload-bundler] Add sections and set section flags using one llvm-objcopy invocation · 8998a8aa
      Sergey Dmitriev authored
      llvm-objcopy has been changed to support adding a section and updating section flags
      in one run (D90438), so we can now change clang-offload-bundler to run llvm-objcopy
      tool only once when creating fat object.
      
      Reviewed By: ABataev
      
      Differential Revision: https://reviews.llvm.org/D102670
      8998a8aa
    • Lang Hames's avatar
      [ORC-RT] Add apply_tuple utility. · 9e5f3dd9
      Lang Hames authored
      This is a substitute for std::apply, which we can't use until we move to c++17.
      
      apply_tuple will be used in upcoming the upcoming wrapper-function utils code.
      9e5f3dd9
    • Lang Hames's avatar
      [ORC-RT] Add compiler abstraction header for the ORC runtime. · bd6c93c0
      Lang Hames authored
      This header provides helper macros to insulate the rest of the ORC runtime from
      compiler specifics.
      bd6c93c0
    • Lang Hames's avatar
      c42580bf
    • Aaron Ballman's avatar
      Introduce SYCL 2020 mode · 63816645
      Aaron Ballman authored
      Currently, we have support for SYCL 1.2.1 (also known as SYCL 2017).
      This patch introduces the start of support for SYCL 2020 mode, which is
      the latest SYCL standard available at (https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html).
      This sets the default SYCL to be 2020 in the driver, and introduces the
      notion of a "default" version (set to 2020) when cc1 is in SYCL mode
      but there was no explicit -sycl-std= specified on the command line.
      63816645
    • Tim Northover's avatar
      Recommit X86: support Swift Async context · ba1509da
      Tim Northover authored
      This adds support to the X86 backend for the newly committed swiftasync
      function parameter. If such a (pointer) parameter is present it gets stored
      into an augmented frame record (populated in IR, but generally containing
      enhanced backtrace for coroutines using lots of tail calls back and forth).
      
      The context frame is identical to AArch64 (primarily so that unwinders etc
      don't get extra complexity). Specfically, the new frame record is [AsyncCtx,
      %rbp, ReturnAddr], and its presence is signalled by bit 60 of the stored %rbp
      being set to 1. %rbp still points to the frame pointer in memory for backwards
      compatibility (only partial on x86, but OTOH the weird AsyncCtx before the rest
      of the record is because of x86).
      
      Recommited with a fix for unwind info when i386 pc-rel thunks are
      adjacent to a prologue.
      ba1509da
    • Jinsong Ji's avatar
      [DebugInfo][test] Check specific func name to ignore codegen differences · 7d644932
      Jinsong Ji authored
      We use `CHECK-LABEL: define` to divide input stream into functions,
      this works well on most platforms.
      
      But there are cases that some platforms (eg: AIX) may have different
      codegen , especially for global constructor and descructors.
      
      On AIX, the codegen will have two more functions: __dtor_b,
      __finalize_b, which will fail the test.
      
      The fix is to use specific function name so that we can safely ignore
      those unrelated codegen differences.
      
      Reviewed By: dblaikie
      
      Differential Revision: https://reviews.llvm.org/D102654
      7d644932
    • Raphael Isemann's avatar
      [ADT] Remove StringRef::withNullAsEmpty · 82f248d2
      Raphael Isemann authored
      A long time ago LLDB wanted to start using StringRef instead of
      C-Strings/ConstString but was blocked by the StringRef(const char *) ctor
      asserting that the C-string isn't a nullptr. To workaround this, D24697
      introduced a special function called withNullAsEmpty and that's what LLDB (and
      only LLDB) started to use to build StringRefs from C-strings.
      
      A bit later it seems that withNullAsEmpty was declared too awkward to use and
      instead the assert in the StringRef constructor got removed (see D24904). The
      rest of LLDB was then converted to StringRef by just calling the now perfectly
      usable implicit constructor.
      
      However, it seems that the original approach with withNullAsEmpty was never
      touched again since then and now just exists as a function in StringRef that
      is only used in a few places in LLDB.
      
      I removed the few uses of withNullAsEmpty in D102597 and this patch removes
      the function itself. Calling the implicit StringRef(const char *) constructor
      is the preferred way of doing this today.
      
      Reviewed By: lattner
      
      Differential Revision: https://reviews.llvm.org/D102599
      82f248d2
    • Roman Lebedev's avatar
      [X86] AMD Zen 3: cap LoopMicroOpBufferSize to workaround PR50384 (quadratic IndVars runtime) · 3cc39607
      Roman Lebedev authored
      While i would like to keep the right value here,
      i would also like to be able to actually compile
      e.g. vanilla test-suite.
      
      256 is a pretty random guess, it should be pretty good enough
      for serious loops, but small enough to result in tolerant
      compile times for certain edge cases.
      
      https://bugs.llvm.org/show_bug.cgi?id=50384
      3cc39607
    • Kristina Bessonova's avatar
      [libcxx][test] Attempt to make debug mode tests more bulletproof · 9f4f012c
      Kristina Bessonova authored
      The problem with debug mode tests is that it isn't known which particular
      _LIBCPP_ASSERT causes the test to exit, and as shown by
      https://reviews.llvm.org/D100029 and 2908eb20 it might be not the
      expected one.
      
      The patch adds TEST_LIBCPP_ASSERT_FAILURE macro that allows checking
      _LIBCPP_ASSERT message to ensure we caught an expected failure.
      
      Reviewed By: Quuxplusone, ldionne
      
      Differential Revision: https://reviews.llvm.org/D100595
      9f4f012c
    • David Sherwood's avatar
      38e2359a
    • Martin Storsjö's avatar
      [LLD] [MinGW] Pass the canExitEarly parameter through properly · dd7575ba
      Martin Storsjö authored
      The MinGW driver passed a hardcoded true to this parameter
      since 6f4e2552, but when the MinGW driver got the
      canExitEarly parameter for consistency in b11386f9, this
      call was missed so it wasn't passed on properly.
      dd7575ba