[llvm] [SPIR-V] Add support for SPV_INTEL_masked_gather_scatter extension (PR #185418)

Dmitry Sidorov via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 10 03:34:03 PDT 2026


================
@@ -0,0 +1,139 @@
+//===- SPIRVConvertMaskedMemIntrinsics.cpp - Convert masked mem intrinsics ==//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This pass converts llvm.masked.gather/scatter to spv.masked.gather/scatter
----------------
MrSidims wrote:

Per my understanding SPIRVEmitIntrinsics runs before Legalizaer (which does scalarization). If my understanding is correct, then we should register the intrinsics in SPIRVEmitIntrinsics and don't add a new pass.

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


More information about the llvm-commits mailing list