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

Finn Plummer via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 12 14:23:13 PST 2024


================
@@ -202,6 +202,7 @@ defset list<DXILOpClass> OpClasses = {
   def unpack4x8 : DXILOpClass;
   def viewID : DXILOpClass;
   def waveActiveAllEqual : DXILOpClass;
+  def waveActiveAnyTrue : DXILOpClass;
----------------
inbelic wrote:

You shouldn't define and use this, instead use `waveAnyTrue`. The naming conventions wrt to wave ops is quite confusing as there isn't consistent usage of prefixes `active`, `all` or no prefix and just the op name.

To determine the op class I have used `hctdb.py` here:
https://github.com/microsoft/DirectXShaderCompiler/blob/ac36a797d3470e8ee906b98457a59270d01db30d/utils/hct/hctdb.py#L2852

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


More information about the cfe-commits mailing list