[all-commits] [llvm/llvm-project] 6fa2ab: Lazyly initialize uncommon toolchain detector

serge-sans-paille via All-commits all-commits at lists.llvm.org
Mon Feb 6 03:06:06 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6fa2abf90886f18472c87bc9bffbcdf4f73c465e
      https://github.com/llvm/llvm-project/commit/6fa2abf90886f18472c87bc9bffbcdf4f73c465e
  Author: serge-sans-paille <sguelton at mozilla.com>
  Date:   2023-02-06 (Mon, 06 Feb 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/AMDGPU.cpp
    M clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
    M clang/lib/Driver/ToolChains/FreeBSD.cpp
    M clang/lib/Driver/ToolChains/Gnu.cpp
    M clang/lib/Driver/ToolChains/Gnu.h
    M clang/lib/Driver/ToolChains/HIPAMD.cpp
    A clang/lib/Driver/ToolChains/LazyDetector.h
    M clang/lib/Driver/ToolChains/Linux.cpp

  Log Message:
  -----------
  Lazyly initialize uncommon toolchain detector

Cuda and rocm toolchain detectors are currently run unconditionally,
while their result may not be used at all. Make their initialization
lazy so that the discovery code is not run in common cases.

Differential Revision: https://reviews.llvm.org/D142606




More information about the All-commits mailing list