Implement the WaveActiveBitAnd
HLSL Function
#99166
Labels
backend:DirectX
backend:SPIR-V
bot:HLSL
HLSL
HLSL Language Support
metabug
Issue to collect references to a group of similar or related issues.
WaveActiveBitAnd
clang builtin,WaveActiveBitAnd
clang builtin withhlsl_intrinsics.h
WaveActiveBitAnd
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
WaveActiveBitAnd
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/WaveActiveBitAnd.hlsl
clang/test/SemaHLSL/BuiltIns/WaveActiveBitAnd-errors.hlsl
int_dx_WaveActiveBitAnd
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_WaveActiveBitAnd
to120
inDXIL.td
WaveActiveBitAnd.ll
andWaveActiveBitAnd_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_WaveActiveBitAnd
intrinsic inIntrinsicsSPIRV.td
WaveActiveBitAnd
lowering and map it toint_spv_WaveActiveBitAnd
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/WaveActiveBitAnd.ll
DirectX
SPIR-V
OpGroupNonUniformBitwiseAnd:
Description:
A bitwise and group operation of all Value
operands contributed by active invocations in the
group.
Result Type must be a scalar or vector of integer
type.
Execution is a Scope that identifies the group of
invocations affected by this command. It must be Subgroup.
The identity I for Operation is ~0. If Operation is
ClusteredReduce, ClusterSize must be present.
The type of Value must be the same as Result Type.
ClusterSize is the size of cluster to use. ClusterSize must be a
scalar of integer type, whose Signedness operand is 0.
ClusterSize must come from a constant
instruction. Behavior is undefined unless
ClusterSize is at least 1 and a power of 2. If ClusterSize is
greater than the size of the group, executing this instruction
results in undefined behavior.
Capability:
GroupNonUniformArithmetic, GroupNonUniformClustered,
GroupNonUniformPartitionedNV
Missing before version 1.3.
6 + variable
359
<id>
Result Type
Result <id>
Scope <id>
Execution
Group Operation
Operation
<id>
Value
Optional
<id>
ClusterSize
Test Case(s)
Example 1
HLSL:
Returns the bitwise AND of all the values of the expression across all active lanes in the current wave and replicates it back to all active lanes.
Syntax
Parameters
expr
The expression to evaluate.
Return value
The bitwise AND value.
Remarks
This function is supported from shader model 6.0 in all shader stages.
See also
Overview of Shader Model 6
Shader Model 6
The text was updated successfully, but these errors were encountered: