[all-commits] [llvm/llvm-project] 85d09d: [libclc] Add prepare-<triple> targets (#146700)
Fraser Cormack via All-commits
all-commits at lists.llvm.org
Thu Jul 3 00:30:56 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 85d09de5fa19a32bbcc400928d55f9d633077640
https://github.com/llvm/llvm-project/commit/85d09de5fa19a32bbcc400928d55f9d633077640
Author: Fraser Cormack <fraser at codeplay.com>
Date: 2025-07-03 (Thu, 03 Jul 2025)
Changed paths:
M libclc/cmake/modules/AddLibclc.cmake
Log Message:
-----------
[libclc] Add prepare-<triple> targets (#146700)
This target provides a unified build target for all devices under the
single triple. This way a user doesn't have to know device names to
build a specific target's bytecode libraries.
Device names may be considered as internal implementation details as
they are not exposed to users of CMake; users only specify triples to
build. Now, instead of `prepare-{barts,cayman,cedar,cypress}-r600--.bc`,
for example, a user may now build simply `prepare-r600--` and have all
four of those libraries built.
This commit also refactors the CMake somewhat. We were previously
diverging between the SPIR-V and other targets, and duplicating a bit of
logic like the creation of the 'prepare' targets, the targets'
properties, and the installation directory. It's cleaner and hopefully
more robust to share this code between all targets. This commit also
takes this opportunity to improve some comments around this code.
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