This is an archive of the discontinued LLVM Phabricator instance.

Migrate "CheckUses" pass to the auto-generated constructor (NFC)
ClosedPublic

Authored by mehdi_amini on Sep 2 2022, 9:32 AM.

Diff Detail

Event Timeline

mehdi_amini created this revision.Sep 2 2022, 9:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2022, 9:32 AM
mehdi_amini requested review of this revision.Sep 2 2022, 9:32 AM
mscuttari added inline comments.Sep 2 2022, 9:36 AM
mlir/include/mlir/Dialect/Transform/Transforms/Passes.h
19

If we want to generate a constructor that is equal to the old one, this should be GEN_PASS_DECL_CHECKUSESPASS, and the pass in tablegen should be named CheckUsesPass

Rename CheckUses to CheckUsesPass in TableGen

mehdi_amini marked an inline comment as done.Sep 2 2022, 9:50 AM
mehdi_amini added inline comments.
mlir/include/mlir/Dialect/Transform/Transforms/Passes.h
19

Good point for the TableGen naming!

mscuttari accepted this revision.Sep 2 2022, 9:51 AM
This revision is now accepted and ready to land.Sep 2 2022, 9:51 AM
This revision was landed with ongoing or failed builds.Sep 2 2022, 9:56 AM
This revision was automatically updated to reflect the committed changes.
mehdi_amini marked an inline comment as done.