Hi,<br><br>LLVM front end is taking a user defined type of <br><br>
[21 x { i32, i32, i32, [8 x i32] }]<br><br>and converting it to the structurally equivalent type<br><br>{ { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [32 x i8] }, { i32, i32, i32, [32 x i8] }, { i32, i32, i32, [32 x i8] }, { i32, i32, i32, [32 x i8] }, { i32, i32, i32, [32 x i8] }, { i32, i32, i32, [32 x i8] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [8 x i32] }, { i32, i32, i32, [32 x i8] } }<br>

<br>Is there any utility function, that given these two types can say they are structurally equivalent? Or not, for some other 2 types?<br><br>If I were to write such a function, are there any special properties that need to be checked?<br>

<br>Thanks,<br>Arushi<br><br><br><br><div class="gmail_quote">On Fri, Apr 1, 2011 at 12:38 PM, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hi Arushi,<br>
<div class="im"><br>
> Given a LLVM bitcode file, is there any way of knowing which type declarations<br>
> actually came from the user code and what transformations were made by the front<br>
> end.<br>
<br>
</div>not really.  However debug info may give you some of the information you are<br>
looking for.<br>
<br>
Ciao, Duncan.<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>