[Mlir-commits] [mlir] [mlir][SPIR-V] Add support for SPV_INTEL_masked_gather_scatter extension (PR #189099)
Igor Wodiany
llvmlistbot at llvm.org
Mon Apr 6 04:15:17 PDT 2026
================
@@ -1415,6 +1415,71 @@ LogicalResult spirv::INTELSubgroupBlockWriteOp::verify() {
return success();
}
+//===----------------------------------------------------------------------===//
+// spirv.INTEL.MaskedGather
+//===----------------------------------------------------------------------===//
+
+LogicalResult spirv::INTELMaskedGatherOp::verify() {
+ auto ptrVecType = cast<spirv::VectorOfPointerType>(getPtrVector().getType());
+ auto resultType = cast<VectorType>(getResult().getType());
+ unsigned numElems = resultType.getNumElements();
+
+ // Verify pointee type matches result element type.
+ if (ptrVecType.getElementType().getPointeeType() !=
----------------
IgWod wrote:
Can we use `TypesMatchWith` for this one?
https://github.com/llvm/llvm-project/pull/189099
More information about the Mlir-commits
mailing list