This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor] Remove element type constraint on SplatOp.
Needs ReviewPublic

Authored by ingomueller-net on Jun 23 2023, 11:16 PM.

Details

Summary

This patch allows AnyType as input type of tensor.splat. Previsously,
only integer and float types were allowed. The patch thus applies the
philosophy of the introduction of the dialect documentation, which says
that ops should "make sense for any tensor element type" (which is the
case for SplatOp).

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2023, 11:16 PM
ingomueller-net requested review of this revision.Jun 23 2023, 11:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2023, 11:16 PM

With the goal of flushing my Phabricator pipeline, I expanded the set of reviewers.