Samarth Narang 9801a0f62e
[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.
2025-08-25 14:01:57 -04:00
..
2025-08-22 04:12:50 -07:00

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.