llvm.org GIT mirror llvm / 39429e2
Update the descriptions of NoModRef and ModRef to be consistent with the descriptions of Mod and Ref. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112557 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 8 years ago
2 changed file(s) with 7 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
237237
238238

The AliasAnalysis class also provides a getModRefInfo

239239 method for testing dependencies between function calls. This method takes two
240 call sites (CS1 & CS2), returns NoModRef if the two calls refer to disjoint
241 memory locations, Ref if CS1 reads memory written by CS2, Mod if CS1 writes to
242 memory read or written by CS2, or ModRef if CS1 might read or write memory
243 accessed by CS2. Note that this relation is not commutative.

240 call sites (CS1 & CS2), returns NoModRef if neither call writes to memory
241 read or written by the other, Ref if CS1 reads memory written by CS2, Mod if CS1
242 writes to memory read or written by CS2, or ModRef if CS1 might read or write
243 memory written to by CS2. Note that this relation is not commutative.

244244
245245
246246
230230 const Value *P, unsigned Size);
231231
232232 /// getModRefInfo - Return information about whether two call sites may refer
233 /// to the same set of memory locations. This function returns NoModRef if
234 /// the two calls refer to disjoint memory locations, Ref if CS1 reads memory
235 /// written by CS2, Mod if CS1 writes to memory read or written by CS2, or
236 /// ModRef if CS1 might read or write memory accessed by CS2.
237 ///
233 /// to the same set of memory locations. See
234 /// http://llvm.org/docs/AliasAnalysis.html#ModRefInfo
235 /// for details.
238236 virtual ModRefResult getModRefInfo(ImmutableCallSite CS1,
239237 ImmutableCallSite CS2);
240238