HomePhabricator

[mlir] Generalize broadcastable trait operands

Authored by jpienaar on Jan 11 2020, 9:42 AM.

Description

[mlir] Generalize broadcastable trait operands

Summary:
Generalize broadcastable trait to variadic operands. Update the
documentation that still talked about element type as part of
broadcastable trait (that bug was already fixed). Also rename
Broadcastable to ResultBroadcastableShape to be more explicit that the
trait affects the result shape (it is possible for op to allow
broadcastable operands but not have result shape that is broadcast
compatible with operands).

Doing some intermediate work to have getBroadcastedType take an optional
elementType as input and use that if specified, instead of the common
element type of type1 and type2 in this function.

Differential Revision: https://reviews.llvm.org/D72559

Details

Committed
jpienaarJan 20 2020, 1:02 PM
Differential Revision
D72559: [mlir] Generalize broadcastable trait operands
Parents
rGf6418d72f572: AMDGPU/GlobalISel: Add documentation for RegisterBankInfo
Branches
Unknown
Tags
Unknown