[clang] [llvm] [HLSL] Implement `WaveReadLaneAt` intrinsic (PR #111010)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 4 14:16:51 PDT 2024
================
@@ -2653,6 +2653,22 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
.addUse(GR.getSPIRVTypeID(ResType))
.addUse(GR.getOrCreateConstInt(3, I, IntTy, TII));
}
+ case Intrinsic::spv_wave_read_lane_at: {
+ assert(I.getNumOperands() == 4);
----------------
farzonl wrote:
Put this block in a select function. It makes it easier to see all the various case statements when scrolling through the intrinsic selector.
https://github.com/llvm/llvm-project/pull/111010
More information about the cfe-commits
mailing list