This is an archive of the discontinued LLVM Phabricator instance.

[mlir:PDL] Remove the ConstantParams support from native Constraints/Rewrites
ClosedPublic

Authored by rriddle on Mar 13 2022, 10:09 PM.

Details

Summary

This support has never really worked well, and is incredibly clunky to
use (it effectively creates two argument APIs), and clunky to generate (it isn't
clear how we should actually expose this from PDL frontends). Treating these
as just attribute arguments is much much cleaner in every aspect of the stack.
If we need to optimize lots of constant parameters, it would be better to
investigate internal representation optimizations (e.g. batch attribute creation),
that do not affect the user (we want a clean external API).

Diff Detail

Event Timeline

rriddle created this revision.Mar 13 2022, 10:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2022, 10:09 PM
rriddle requested review of this revision.Mar 13 2022, 10:09 PM
rriddle updated this revision to Diff 415003.Mar 13 2022, 10:16 PM
rriddle edited the summary of this revision. (Show Details)

Thanks for the cleanup! This was probably premature indeed.

This revision is now accepted and ready to land.Mar 16 2022, 12:41 AM
rriddle updated this revision to Diff 416683.Mar 19 2022, 3:37 AM
jpienaar accepted this revision.Mar 19 2022, 12:59 PM

Makes sense, thanks!