<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi all,</FONT></DIV>
<DIV><FONT size=2 face=Arial>I'm reading the language reference of LLVM here: <A 
href="http://llvm.org/docs/LangRef.html#i_getelementptr">http://llvm.org/docs/LangRef.html#i_getelementptr</A></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>In the first example, it shows that 
the generated IR is supposed to be something like:</FONT></DIV>
<DIV><PRE class=doc_code>%reg = getelementptr %ST* %s, i32 1, i32 2, i32 1, i32 5, i32 13
<FONT size=2 face=Arial></FONT></PRE><PRE class=doc_code><FONT size=2 face=Arial>But when I copied the code and compile it myself (using v2.7), I got five getelementptr instructions, which are just like the equivalent code given later in the document. </FONT></PRE><PRE class=doc_code><FONT size=2 face=Arial>In the case above, why the resulting IRs are different? </FONT></PRE><PRE class=doc_code><FONT size=2 face=Arial>Thanks a lot.</FONT></PRE><PRE class=doc_code><FONT size=2 face=Arial></FONT> </PRE><PRE class=doc_code><FONT size=2 face=Arial>Regards,</FONT></PRE><PRE class=doc_code><FONT size=2 face=Arial>--Wenbin</FONT></PRE></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV></BODY></HTML>