This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Translate alias scopes lazily
ClosedPublic

Authored by gysit on Aug 30 2023, 4:43 AM.

Details

Summary

Change the LLVM dialect to LLVM IR translation to convert the alias
scope attributes lazily to LLVM IR metadata. Previously, the alias
scopes have been translated upfront walking the alias scopes of
operations that implement the AliasAnalysisOpInterface. As a result,
the translation of a module that contains only a noalias scope
intrinsic failed, since its alias scope attribute has not been
translated due to the intrinsic not implementing
AliasAnalysisOpInterface.

Diff Detail

Event Timeline

gysit created this revision.Aug 30 2023, 4:43 AM
Herald added a reviewer: dcaballe. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
gysit requested review of this revision.Aug 30 2023, 4:43 AM
gysit updated this revision to Diff 554670.Aug 30 2023, 5:13 AM

Avoid using the walker.

This revision is now accepted and ready to land.Aug 30 2023, 5:20 AM
This revision was landed with ongoing or failed builds.Aug 30 2023, 6:01 AM
This revision was automatically updated to reflect the committed changes.