HomePhabricator

[mlir] Add elementAttr to TypedArrayAttrBase.

Authored by abeakkas on Feb 13 2020, 12:23 AM.

Description

[mlir] Add elementAttr to TypedArrayAttrBase.

In code generators, one can automate the translation of typed ArrayAttrs
if element attribute translators are already implemented. However, the
type of the element attribute is lost at the construction of
TypedArrayAttrBase. With this change one can inspect the element type
and generate the translation logic automatically, which will reduce the
code repetition.

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

Details

Committed
ftynseFeb 13 2020, 12:25 AM
Differential Revision
D73579: [mlir] Add elementAttr to TypedArrayAttrBase.
Parents
rG005b720373f1: [NFC][mlir] Adding some helpful EDSC intrinsics
Branches
Unknown
Tags
Unknown