[all-commits] [llvm/llvm-project] e20ae1: [libclc] Use custom CMake handling to overhaul lib...

Joseph Huber via All-commits all-commits at lists.llvm.org
Sun Mar 8 22:54:00 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e20ae16ce6723a61f3387867e78f1096399ca74e
      https://github.com/llvm/llvm-project/commit/e20ae16ce6723a61f3387867e78f1096399ca74e
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2026-03-09 (Mon, 09 Mar 2026)

  Changed paths:
    M libclc/CMakeLists.txt
    A libclc/clc/lib/amdgcn/CMakeLists.txt
    R libclc/clc/lib/amdgcn/SOURCES
    A libclc/clc/lib/amdgpu/CMakeLists.txt
    R libclc/clc/lib/amdgpu/SOURCES
    A libclc/clc/lib/clspv/CMakeLists.txt
    R libclc/clc/lib/clspv/SOURCES
    A libclc/clc/lib/generic/CMakeLists.txt
    R libclc/clc/lib/generic/SOURCES
    A libclc/clc/lib/ptx-nvidiacl/CMakeLists.txt
    R libclc/clc/lib/ptx-nvidiacl/SOURCES
    A libclc/clc/lib/spirv/CMakeLists.txt
    R libclc/clc/lib/spirv/SOURCES
    M libclc/cmake/modules/AddLibclc.cmake
    A libclc/opencl/lib/amdgcn/CMakeLists.txt
    R libclc/opencl/lib/amdgcn/SOURCES
    A libclc/opencl/lib/clspv/CMakeLists.txt
    R libclc/opencl/lib/clspv/SOURCES
    A libclc/opencl/lib/generic/CMakeLists.txt
    R libclc/opencl/lib/generic/SOURCES
    A libclc/opencl/lib/spirv/CMakeLists.txt
    R libclc/opencl/lib/spirv/SOURCES

  Log Message:
  -----------
  [libclc] Use custom CMake handling to overhaul libclc compilation (#185247)

Summary:
This PR uses https://github.com/llvm/llvm-project/pull/185243 to
overhaul compilation of libclc. This brings libclc to the same kind of
compilation flow that the other GPU libraries use (compiler-rt, libc,
libc++, openmp, flang-rt).

The main brunt of this change is simply changing the SOURCES files to
CMake variables and altering the compilation. Now that these are
standard CMake libraries we do not need to bother redefining custom
library handling and targets.

This builds as a static library, which we then consume with `llvm-link`
which converts it into a single `.bc` bitcode file similarly to before.
The final result is then optimized all together.

Hopefully this doesn't break anything.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list