[clang] [llvm] [HLSL] Implement WaveActiveAnyTrue intrinsic (PR #115902)

Finn Plummer via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 19 13:26:45 PST 2024


================
@@ -630,6 +630,15 @@ void RequirementHandler::initAvailableCapabilities(const SPIRVSubtarget &ST) {
   addAvailableCaps({Capability::Shader, Capability::Linkage, Capability::Int8,
                     Capability::Int16});
 
+  if (ST.isAtLeastSPIRVVer(VersionTuple(1, 3)))
----------------
inbelic wrote:

This needed to move so that we can use the target triple `mtriple=spirv-unknown-unknown` in the testcase. Previously we would get an `Unable to meet SPIR-V requirements for the target` error with `Capability not yet supported: GroupNonUniformVote`. This was incorrect as these capabilities are all supported as part of vulkan 1.1 -> spirv 1.3.

https://github.com/llvm/llvm-project/pull/115902


More information about the cfe-commits mailing list