Unverified Commit 0f61051f authored by Nathan Gauër's avatar Nathan Gauër Committed by GitHub
Browse files

[clang][HLSL][SPRI-V] Add convergence intrinsics (#80680)



HLSL has wave operations and other kind of function which required the
control flow to either be converged, or respect certain constraints as
where and how to re-converge.

At the HLSL level, the convergence are mostly obvious: the control flow
is expected to re-converge at the end of a scope.
Once translated to IR, HLSL scopes disapear. This means we need a way to
communicate convergence restrictions down to the backend.

For this, the SPIR-V backend uses convergence intrinsics. So this commit
adds some code to generate convergence intrinsics when required.

---------

Signed-off-by: default avatarNathan Gauër <brioche@google.com>
parent 27633538
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment