This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Disable folder for non-int/float/index types in tosa.slice
ClosedPublic

Authored by NatashaKnk on Mar 29 2023, 5:28 PM.

Details

Summary

In order to fold, we need to create an ElementsAttr, and those cannot be generated from any type. In particular, currently we need to avoid folding quantized types.

Diff Detail

Event Timeline

NatashaKnk created this revision.Mar 29 2023, 5:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2023, 5:28 PM
NatashaKnk requested review of this revision.Mar 29 2023, 5:28 PM

Fix formatting

Fix formatting

It seems like your latest update removed the functional change (it just shows me the formatting change now)

jpienaar accepted this revision.Mar 29 2023, 5:42 PM

LG, but please add rationale in both description and comment in code.

This revision is now accepted and ready to land.Mar 29 2023, 5:42 PM

Add comment in code

NatashaKnk edited the summary of this revision. (Show Details)Mar 30 2023, 10:05 AM
rsuderman retitled this revision from [mlir][tosa] Disable folder for non-int/float/index types in tosa.Slice to [mlir][tosa] Disable folder for non-int/float/index types in tosa.slice.Mar 30 2023, 10:48 AM

Check for output type as well

This revision was landed with ongoing or failed builds.Mar 30 2023, 11:07 AM
This revision was automatically updated to reflect the committed changes.