[Mlir-commits] [mlir] [mlir][vector] Clarify the semantics of BroadcastOp (PR #101928)

Andrzej WarzyƄski llvmlistbot at llvm.org
Tue Aug 6 01:50:52 PDT 2024


================
@@ -2391,12 +2391,28 @@ mlir::vector::isBroadcastableTo(Type srcType, VectorType dstVectorType,
   // (all leading dimensions are simply duplicated).
   int64_t lead = dstRank - srcRank;
   for (int64_t r = 0; r < srcRank; ++r) {
----------------
banach-space wrote:

Note that `r` represents "dimension index" rather than rank. So, this should be something like `dimIdx` instead. Let me try that.

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


More information about the Mlir-commits mailing list