<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Does this help?</div>
<div><br>
</div>
<div><a href="http://nondot.org/sabre/LLVMNotes/SizeOf-OffsetOf-VariableSizedStructs.txt">http://nondot.org/sabre/LLVMNotes/SizeOf-OffsetOf-VariableSizedStructs.txt</a></div>
<br>
<div>
<div>On 11 Nov 2012, at 10:52, edA-qa mort-ora-y <<a href="mailto:eda-qa@disemia.com">eda-qa@disemia.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Is there a way to get the size of a type in the IR assembly code? I know<br>
the size must be known since alloca and getelementptr both implicitly<br>
use it, but I don't see any way to get access to the size directly.<br>
<br>
I know my final compiler will have to get the size itself, but I'm just<br>
doing some simple tests directly in assembly now and am hoping there is<br>
an easy way to get the size of a structure.<br>
<br>
-- <br>
edA-qa mort-ora-y<br>
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --<br>
Sign: Please digitally sign your emails.<br>
Encrypt: I'm also happy to receive encrypted mail.<br>
<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">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote>
</div>
<br>
</body>
</html>