This is an archive of the discontinued LLVM Phabricator instance.

[fir][NFC] Move RewritePatterns.td to CanonicalizationPatterns.td in Dialect
ClosedPublic

Authored by clementval on Oct 26 2021, 2:29 AM.

Details

Summary

RewritePatterns.td/RewritePatterns.inc is used only by the
FIROps.cpp file. This patch move this file logically in the Dialect
folder together with FIRDialet, FIROps, FIRTypes ...
It also rename it to CanonicalizationPatterns.td.

This patch is part of the upstreaming effort from fir-dev branch.

Diff Detail

Event Timeline

clementval created this revision.Oct 26 2021, 2:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2021, 2:29 AM
clementval requested review of this revision.Oct 26 2021, 2:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2021, 2:29 AM
clementval edited the summary of this revision. (Show Details)Oct 26 2021, 2:29 AM

Can this renamed in "CanonicalizePattern.td" if it does not contain anything else?

(LG otherwise)

Can this renamed in "CanonicalizePattern.td" if it does not contain anything else?

Sure we can rename it. I'll update that.

Rename file

clementval retitled this revision from [fir][NFC] Move RewritePatterns.td in Dialect to [fir][NFC] Move RewritePatterns.td to CanonicalizationPatterns.td in Dialect.Oct 26 2021, 11:51 AM
clementval edited the summary of this revision. (Show Details)

Fix filename in header

schweitz accepted this revision.Oct 26 2021, 12:09 PM
This revision is now accepted and ready to land.Oct 26 2021, 12:09 PM