For the gep:<br><br><pre>%idx1 = getelementptr i32* %MyVar, i32 0<br><br>i32* is the type that MyVar is pointing to and i32 is the type of the offset value, or what? If it's the type of offset value, then <br>the size of the pointer shouldn't be less than i32, correct?<br>
<br>The index is 0, so in this example, the address computation is idx1 = &MyVar+0. <br><br>What I want to know is the size in bits of the values above, it looks like 0 is 32 bits in size, which would make the pointer size also 32?<br>
<br><br><br></pre><br><br><div class="gmail_quote">On Thu, Dec 8, 2011 at 6:45 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Dec 8, 2011 at 6:07 PM, Ryan Taylor <<a href="mailto:ryta1203@gmail.com">ryta1203@gmail.com</a>> wrote:<br>
> Eli,<br>
><br>
>    Ok, thanks, this is a big help. So how can I use the TargetData (or get<br>
> the TargetData) without having a DAG?<br>
<br>
</div>If you're writing a transformation pass, just write<br>
"getAnalysisIfAvailable<TargetData>()" to get a TargetData*.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Eli<br>
</font></span></blockquote></div><br>