[all-commits] [llvm/llvm-project] 9801a0: [mlir] Add helper to check elementwise-mappable op...
Samarth Narang via All-commits
all-commits at lists.llvm.org
Mon Aug 25 11:02:18 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9801a0f62e49cbd81ce8352ab140af7c240e51ba
https://github.com/llvm/llvm-project/commit/9801a0f62e49cbd81ce8352ab140af7c240e51ba
Author: Samarth Narang <70980689+snarang181 at users.noreply.github.com>
Date: 2025-08-25 (Mon, 25 Aug 2025)
Changed paths:
M mlir/lib/Dialect/Linalg/Transforms/ElementwiseToLinalg.cpp
M mlir/test/Dialect/Linalg/convert-elementwise-to-linalg.mlir
Log Message:
-----------
[mlir] Add helper to check elementwise-mappable ops with tensors and scalars (#154872)
This patch introduces a more general helper for identifying
elementwise-mappable operations. The existing utility,
`isElementwiseMappableOpOnRankedTensors`, only accepted operations when
all operands were ranked tensors. In practice, many elementwise
operations in MLIR allow mixing tensor operands with scalars.
The new helper relaxes the restriction by accepting operands that are
either ranked tensors or “scalar-like” types.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list