Page MenuHomePhabricator

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

Authored by stellaraccident on Nov 24 2020, 9:01 AM.


  • 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.

Diff Detail

Unit TestsFailed

150 mslinux > MLIR.mlir-cpu-runner::async-group.mlir
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/bin/mlir-opt /mnt/disks/ssd0/agent/llvm-project/mlir/test/mlir-cpu-runner/async-group.mlir -async-ref-counting -convert-async-to-llvm -convert-std-to-llvm | mlir-cpu-runner -e main -entry-point-result=void -O0 -shared-libs=/mnt/disks/ssd0/agent/llvm-project/build/lib/ -shared-libs=/mnt/disks/ssd0/agent/llvm-project/build/lib/ -shared-libs=/mnt/disks/ssd0/agent/llvm-project/build/lib/ | /mnt/disks/ssd0/agent/llvm-project/build/bin/FileCheck /mnt/disks/ssd0/agent/llvm-project/mlir/test/mlir-cpu-runner/async-group.mlir

Event Timeline

stellaraccident requested review of this revision.Nov 24 2020, 9:01 AM
jpienaar accepted this revision.Nov 24 2020, 9:03 AM
This revision is now accepted and ready to land.Nov 24 2020, 9:03 AM
sjarus accepted this revision.Nov 24 2020, 9:08 AM
This revision was landed with ongoing or failed builds.Nov 24 2020, 9:34 AM
This revision was automatically updated to reflect the committed changes.