HomePhabricator

Add Builder::get{I32,I64}TensorAttr.

Authored by silvas on Mar 19 2020, 11:29 AM.

Description

Add Builder::get{I32,I64}TensorAttr.

Builder::get{I32,I64}VectorAttr are actually of limited applicability since
vector types can't have zero elements, whereas many uses of this kind of
attribute (such as dimension lists for "transpose"-like and other tensor
ops) often can result in empty lists.

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

Details