<div dir="ltr"><div dir="ltr"><div>There's a stale proposal with similar motivation here:</div><div><a href="https://reviews.llvm.org/D23798">https://reviews.llvm.org/D23798</a></div><div><br></div><div>Setting the const-ness in the tablegen definition sounds better than that, but that patch may provide a starting point for intrinsics that have immarg potential.<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 5, 2019 at 6:37 PM Krzysztof Parzyszek via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</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">On 2/5/2019 6:17 PM, Matt Arsenault wrote:<br>
> This is for the benefit of IR transform passes and codegen. I’m not attempting to diagnose frontend builtins or do anything for the end user.<br>
<br>
Ah, I thought you wanted to have the ability to verify an intrinsic in <br>
IR. Yeah, the attribute should be enough.<br>
<br>
-Krzysztof<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>