<div dir="ltr">opaque pointers don't exist in the IR yet - the goal is to reduce the places that use non-opacity of pointer types already/today and then opacify the existing pointer type, rather than introducing an opaque pointer type & having it concurrently with non-opaque pointer types. (though in retrospect such a migration might've been worth considering and/or might still be used as part of the migration, I guess)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 15, 2020 at 3:17 AM James Courtier-Dutton 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 Tue, 14 Apr 2020 at 21:24, Michael Kruse <<a href="mailto:llvmdev@meinersbur.de" target="_blank">llvmdev@meinersbur.de</a>> wrote:<br>
><br>
> Currently, LLVM often uses the *i8 type (pointer to char) to represent<br>
> a pointer to some not-specified type. We are also working on replacing<br>
> the pointer-to-type pointer types by a single pointer type without a<br>
> specific pointee-type. Look for "opaque pointer" on llvm-dev and the<br>
> repository commits.<br>
><br>
Hi Michael,<br>
Thank you for your reply.<br>
<br>
Does the LLVM IRBuilder currently allow adding an opaque pointer to a<br>
LLVM .bc file?<br>
Even if it does not compile, just being able to add it, would be helpful.<br>
I could then run my own experimental passes against it.<br>
<br>
Does using opaque pointers, adversely affect alias analysis?<br>
<br>
Kind Regards<br>
<br>
James<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>