[PATCH] D142606: Lazyly initialize uncommon toolchain detector
    serge via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Jan 26 00:48:14 PST 2023
    
    
  
serge-sans-paille created this revision.
Herald added subscribers: kosarev, kerbowa, jvesely, emaste.
Herald added a project: All.
serge-sans-paille requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.
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.
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D142606
Files:
  clang/lib/Driver/ToolChains/AMDGPU.cpp
  clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
  clang/lib/Driver/ToolChains/FreeBSD.cpp
  clang/lib/Driver/ToolChains/Gnu.cpp
  clang/lib/Driver/ToolChains/Gnu.h
  clang/lib/Driver/ToolChains/HIPAMD.cpp
  clang/lib/Driver/ToolChains/LazyDetector.h
  clang/lib/Driver/ToolChains/Linux.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142606.492348.patch
Type: text/x-patch
Size: 10521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230126/95880d81/attachment-0001.bin>
    
    
More information about the cfe-commits
mailing list