1. Aug 18, 2020
  2. Aug 17, 2020
    • Jonas Devlieghere's avatar
      [lldb] Get rid of helper CMake variables for Python · 75966ee2
      Jonas Devlieghere authored
      This patch is a big sed to rename the following variables:
      
        s/PYTHON_LIBRARIES/Python3_LIBRARIES/g
        s/PYTHON_INCLUDE_DIRS/Python3_INCLUDE_DIRS/g
        s/PYTHON_EXECUTABLE/Python3_EXECUTABLE/g
        s/PYTHON_RPATH/Python3_RPATH/g
      
      I've also renamed the CMake module to better express its purpose and for
      consistency with FindLuaAndSwig.
      
      Differential revision: https://reviews.llvm.org/D85976
      75966ee2
    • George Rokos's avatar
    • Steven Perron's avatar
      Reset PAL metadata when AMDGPU traget stream finishes · eed6476a
      Steven Perron authored
      If the same stream object is used for multiple compiles, the PAL metadata from eariler compilations will leak into later one.  See https://github.com/GPUOpen-Drivers/llpc/issues/882 for how this is happening in LLPC.
      
      No tests were added because multiple compiles will have to happen using the same pass manager, and I do not see a setup for that on the LLVM side.  Let me know if there is a good way to test this.
      
      Reviewed By: nhaehnle
      
      Differential Revision: https://reviews.llvm.org/D85667
      eed6476a
    • Nemanja Ivanovic's avatar
      [LLD][PowerPC] Implement GOT to PC-Rel relaxation · cddb0dbc
      Nemanja Ivanovic authored
      This patch implements the handling for the R_PPC64_PCREL_OPT relocation as well
      as the GOT relocation for the associated R_PPC64_GOT_PCREL34 relocation.
      
      On Power10 targets with PC-Relative addressing, the linker can relax
      GOT-relative accesses to PC-Relative under some conditions. Since the sequence
      consists of a prefixed load, followed by a non-prefixed access (load or store),
      the linker needs to replace the first instruction (as the replacement
      instruction will be prefixed). The compiler communicates to the linker that
      this optimization is safe by placing the two aforementioned relocations on the
      GOT load (of the address).
      The linker then does two things:
      
      - Convert the load from the got into a PC-Relative add to compute the address
        relative to the PC
      - Find the instruction referred to by the second relocation (R_PPC64_PCREL_OPT)
        and replace the first with the PC-Relative version of it
      
      It is important to synchronize the mapping from legacy memory instructions to
      their PC-Relative form. Hence, this patch adds a file to be included by both
      the compiler and the linker so they're always in agreement.
      
      Differential revision: https://reviews.llvm.org/D84360
      cddb0dbc
    • Anthony Steinhauser's avatar
      [libc] Make benchmark boxplots transparent. · 25d759c1
      Anthony Steinhauser authored
      So that the configuration box does not make a part of the plot invisible.
      
      Reviewers: sivachandra
      
      Differential Revision: https://reviews.llvm.org/D85953
      25d759c1
    • Victor Huang's avatar
      [PowerPC] Fix thunk alignment issue when using pc-rel instruction · 7b391245
      Victor Huang authored
      Thunk alignment is added in thie patch when using pc-rel instructions
      to avoid crossing the 64 byte boundary.
      
      Patched by: nemanjai, NeHuang
      Reviewed By: sfertile, MaskRay
      
      Differential Revision: https://reviews.llvm.org/D85973
      7b391245
    • Matt Arsenault's avatar
      DAG: Add missing comment for transform · 5b53b17c
      Matt Arsenault authored
      5b53b17c
    • Tim Keith's avatar
      [flang] Copy attributes and flags onto host-assoc symbols · d66463ee
      Tim Keith authored
      As with use-associated symbols, copy the attributes and flags from the
      original symbol onto host-associated symbols when they are created.
      
      This was showing up as an error on a deallocate of a host-associated
      name. We reported an error because the symbol didn't have the POINTER
      or ALLOCATABLE attribute.
      
      Differential Revision: https://reviews.llvm.org/D85763
      d66463ee
    • Aleksandr Platonov's avatar
      [clangd] Fix Windows build when remote index is enabled. · bc5c9df6
      Aleksandr Platonov authored
      CMake log:
      ```
      CMake Error at D:/llvm-project/llvm/cmake/modules/AddLLVM.cmake:823 (add_executable):
        Target "clangd" links to target "Threads::Threads" but the target was not
        found.  Perhaps a find_package() call is missing for an IMPORTED target, or
        an ALIAS target is missing?
      Call Stack (most recent call first):
        D:/llvm-project/clang/cmake/modules/AddClang.cmake:150 (add_llvm_executable)
        D:/llvm-project/clang/cmake/modules/AddClang.cmake:160 (add_clang_executable)
        D:/llvm-project/clang-tools-extra/clangd/tool/CMakeLists.txt:4 (add_clang_tool)
      
      CMake Error at D:/llvm-project/llvm/cmake/modules/AddLLVM.cmake:821 (add_executable):
        Target "ClangdTests" links to target "Threads::Threads" but the target was
        not found.  Perhaps a find_package() call is missing for an IMPORTED
        target, or an ALIAS target is missing?
      Call Stack (most recent call first):
        D:/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1417 (add_llvm_executable)
        D:/llvm-project/clang-tools-extra/clangd/unittests/CMakeLists.txt:32 (add_unittest)
      
      CMake Error at D:/llvm-project/llvm/cmake/modules/AddLLVM.cmake:527 (add_library):
        Target "RemoteIndexProtos" links to target "Threads::Threads" but the
        target was not found.  Perhaps a find_package() call is missing for an
        IMPORTED target, or an ALIAS target is missing?
      Call Stack (most recent call first):
        D:/llvm-project/clang/cmake/modules/AddClang.cmake:103 (llvm_add_library)
        D:/llvm-project/llvm/cmake/modules/FindGRPC.cmake:105 (add_clang_library)
        D:/llvm-project/clang-tools-extra/clangd/index/remote/CMakeLists.txt:2 (generate_grpc_protos)
      
      CMake Error at D:/llvm-project/llvm/cmake/modules/AddLLVM.cmake:527 (add_library):
        Target "clangdRemoteIndex" links to target "Threads::Threads" but the
        target was not found.  Perhaps a find_package() call is missing for an
        IMPORTED target, or an ALIAS target is missing?
      Call Stack (most recent call first):
        D:/llvm-project/clang/cmake/modules/AddClang.cmake:103 (llvm_add_library)
        D:/llvm-project/clang-tools-extra/clangd/index/remote/CMakeLists.txt:11 (add_clang_library)
      
      CMake Error at D:/llvm-project/llvm/cmake/modules/AddLLVM.cmake:527 (add_library):
        Target "clangdRemoteMarshalling" links to target "Threads::Threads" but the
        target was not found.  Perhaps a find_package() call is missing for an
        IMPORTED target, or an ALIAS target is missing?
      Call Stack (most recent call first):
        D:/llvm-project/clang/cmake/modules/AddClang.cmake:103 (llvm_add_library)
        D:/llvm-project/clang-tools-extra/clangd/index/remote/marshalling/CMakeLists.txt:1 (add_clang_library)
      
      CMake Error at D:/llvm-project/llvm/cmake/modules/AddLLVM.cmake:823 (add_executable):
        Target "clangd-index-server" links to target "Threads::Threads" but the
        target was not found.  Perhaps a find_package() call is missing for an
        IMPORTED target, or an ALIAS target is missing?
      ```
      
      Reviewed By: kbobyrev
      
      Differential Revision: https://reviews.llvm.org/D86052
      bc5c9df6
    • Matt Arsenault's avatar
      c7b9cd31
    • Matt Arsenault's avatar
      AMDGPU/GlobalISel: Fix using readfirstlane with ballot intrinsics · af162ac7
      Matt Arsenault authored
      This should use the default mapping and insert a copy to the vcc bank,
      and not try to insert a readfirstlane.
      af162ac7