<p dir="ltr">What would the "correct form of GEP be"?</p>
<p dir="ltr">Thanks,<br>
Siddharth</p>
<br><div class="gmail_quote"><div dir="ltr">On Fri 11 Aug, 2017, 23:47 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 8/11/2017 3:40 PM, Siddharth Bhat via llvm-dev wrote:<br>
><br>
> This is a general question regarding type conversion:<br>
><br>
> from: <ty>**<br>
> to: [<size> x <ty>]*<br>
><br>
>  From what I understand, bitcast  is wrong in this case because a GEP<br>
> into a <ty>** should be computed differently from a GEP into [<size> x<br>
> <ty>]*.<br>
><br>
> So, what is the correct way to perform this type conversion?<br>
<br>
Bitcast, then use the correct form of GEP and other affected instructions.<br>
<br>
-Krzysztof<br>
<br>
--<br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,<br>
hosted by The Linux Foundation<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="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Sending this from my phone, please excuse any typos!</div></div>