HomePhabricator

[mlir] Add Tosa dialect const folder for tosa.const.

Authored by stellaraccident on Nov 24 2020, 8:58 AM.

Description

[mlir] Add Tosa dialect const folder for tosa.const.

  • Was missed in the initial submission and is required for a ConstantLike op.
  • Also adds a materializeConstant hook to preserve it.
  • Tightens up the argument constraint on tosa.const to match what is actually legal.

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

Details