Hi. I’m a beginner of LLVM and recently digging into MemorySSA, but still confused by its design. Hope someone can give me some hints.
In MemorySSA, given a MemoryUse
, how can I get all the potential definitions of it? Should I use getClobberingMemoryAccess
to find its direct definition, and search into arguments when encountering MemoryPhi
?
Similarly, given a MemoryDef
, is there any way to get all (may-alias or must-alias) uses of it?