[Mlir-commits] [mlir] Make createReadOrMaskedRead a utility (PR #89119)

Andrzej Warzyński llvmlistbot at llvm.org
Thu Apr 18 05:36:41 PDT 2024


================
@@ -1616,6 +1616,12 @@ void populateSplitReductionPattern(
     const ControlSplitReductionFn &controlSplitReductionFn,
     bool useAlloc = false);
 
+/// Create a TransferReadOp from `source` with static shape `readShape`. If the
----------------
banach-space wrote:

Could you also include a comment on indices? These are hard-coded to be 0 - that's worth documenting.

> (Maybe I'd also rename it to just masking.)

This is a bit of bikesheding and I don't mind that much ... But I do like when a `bool` variable includes a verb so that it's effectively a question with a binary answer (i.e. "yes"/"no") :) Personally I'd use `enableMasking` instead. Again, don't really mind 😅 

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


More information about the Mlir-commits mailing list