[llvm] [SPIR-V] Add support for SPV_INTEL_masked_gather_scatter extension (PR #185418)
Arseniy Obolenskiy via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 10 03:16:37 PDT 2026
================
@@ -4321,6 +4377,16 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
return selectDerivativeInst(ResVReg, ResType, I, SPIRV::OpDPdyFine);
case Intrinsic::spv_fwidth:
return selectDerivativeInst(ResVReg, ResType, I, SPIRV::OpFwidth);
+ case Intrinsic::spv_masked_gather:
+ if (STI.canUseExtension(SPIRV::Extension::SPV_INTEL_masked_gather_scatter))
+ return selectMaskedGather(ResVReg, ResType, I);
+ report_fatal_error(
+ "llvm.masked.gather requires SPV_INTEL_masked_gather_scatter");
----------------
aobolensk wrote:
Done, thanks
https://github.com/llvm/llvm-project/pull/185418
More information about the llvm-commits
mailing list