This is an archive of the discontinued LLVM Phabricator instance.

[mlir] LocalAliasAnalysis: Allow adding restrict to function arguments
AbandonedPublic

Authored by Hardcode84 on Nov 27 2022, 9:05 AM.

Details

Reviewers
rriddle

Diff Detail

Event Timeline

Hardcode84 created this revision.Nov 27 2022, 9:05 AM
Hardcode84 requested review of this revision.Nov 27 2022, 9:05 AM

I have somewhat of a concern that this is very adhoc. Having seen the pain that LLVM has gone through to support restrict, I'd like to see some thought out discussion before adding any kind of support.

I have somewhat of a concern that this is very adhoc. Having seen the pain that LLVM has gone through to support restrict, I'd like to see some thought out discussion before adding any kind of support.

This is very adhoc, yes :). But properly modelling restrict in MLIR includes discussion of properly modelling pointers in general, which is probably a discussion for many months. Another approach instead of adding adhoc attributes can be an ability to extend existing LocalAliasAnalysis implementation (e.g. make aliasImpl virtual). But in this case we have an issue with default LocalAliasAnalysis is always added and we have to hope both implementations will agree. This will work for this specific case, but I don't know how it will work in general.

Hardcode84 abandoned this revision.Dec 21 2022, 5:17 AM