<div dir="ltr">Answering my own question: I think AliasAnalysis::getModRefInfo might do.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 9, 2020 at 10:27 AM Hendrik Greving <<a href="mailto:hgreving@google.com">hgreving@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Is there anything that can be used target specific to do AA for intrinsics w/ side effects but no specific memory pointer?<div><br></div><div>e.g.</div><div>instr_custom_A // implicitly only address space A</div><div>instr_custom_B // implicitly only address space B<br></div><div><br></div><div>Is there anything in any AA step except e.g. manually propagating alias.scope that would help disambiguating that they are disjoint (in llvm-ir)?</div><div><br></div><div>The only idea I have is to add unused pointer arguments to the intrinsics for each memory space that are always null, combined w/ IntrArgMemOnly, maybe additionally handling it then w/ external AA.</div><div><br></div><div>Thanks for help</div><div><br></div></div>
</blockquote></div>