[clang] [llvm] [HIPSPV] Add in-tree SPIR-V backend support for chipStar (PR #186972)
Paulius Velesko via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 13 04:34:28 PDT 2026
================
@@ -91,7 +91,8 @@ SPIRVSubtarget::SPIRVSubtarget(const Triple &TT, const std::string &CPU,
if (TargetTriple.getOS() == Triple::Vulkan)
Env = Shader;
else if (TargetTriple.getOS() == Triple::OpenCL ||
- TargetTriple.getVendor() == Triple::AMD)
+ TargetTriple.getVendor() == Triple::AMD ||
+ TargetTriple.getOS() == Triple::ChipStar)
----------------
pvelesko wrote:
> doesn't matter unless/until chipStar adds a driver backend that requires Vulkan
I have a branch that converts our generated SPIRV from OpenCL to Vulkan SPIRV. This is for simplifying integration with clvk - converting SPIRV to Vulkan SPIRV on our side allows us to bypass the clspv component of clvk.
Not sure if this is something that will ever get merged or how that would affect llvm if so.
@linehill
https://github.com/llvm/llvm-project/pull/186972
More information about the cfe-commits
mailing list