[Mlir-commits] [mlir] [MLIR][Vector] Add distribution pattern for `vector::ConstantMaskOp` (PR #172268)
Charitha Saumya
llvmlistbot at llvm.org
Mon Dec 15 09:53:11 PST 2025
charithaintc wrote:
> The semantics of both ops are the same, the interface of ops is mostly the same (a list of offsets). Both ops are tightly coupled, hence their distributions are as well. It only costs a few lines of trivial code to fit the distribution logic. Does it really require a new (and mostly identical) pattern?
In that case I suggest using the format used in WGtoSG. (use some template naming).
```
using WgToSgVectorConstantMaskOp = WgToSgVectorMaskOp<vector::ConstantMaskOp>;
using WgToSgVectorCreateMaskOp = WgToSgVectorMaskOp<vector::CreateMaskOp>;
```
https://github.com/llvm/llvm-project/pull/172268
More information about the Mlir-commits
mailing list