HomePhabricator

[mlir][CAPI] Add mlirAttributeGetType function.

Authored by stellaraccident on Oct 15 2020, 5:31 PM.

Description

[mlir][CAPI] Add mlirAttributeGetType function.

  • Also fixes the const-ness of the various DenseElementsAttr construction functions.
  • Both issues identified when trying to use the DenseElementsAttr functions.

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