Details
- Reviewers
rriddle
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
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.