This is an alternative to https://reviews.llvm.org/D138761 . Instead of adding ad-hoc attributes to existing LocalAliasAnalysis, expose aliasImpl method so user can override it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/lib/Analysis/TestAliasAnalysis.cpp | ||
---|---|---|
168 | We can only get there if previous check succeeded so we will never get null. |
Comment Actions
LGTM. On a note unrelated to this PR but on this topic, besides aliasImpl, I feel even collectUnderlyingAddressValues should be exposed. Currently, the alias analysis framework can only answer "can two values alias", but not "provide me all the values that could potentially alias with a given Value" (at least locally).
getParentOp can return null.
isa_and_non_null.