<div class="gmail_quote">2009/7/19 Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com">clattner@apple.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="WORD-WRAP: break-word">
<div>
<div class="im">
<div>On Jul 18, 2009, at 3:28 PM, Aaron Gray wrote:</div>
<blockquote type="cite">
<div class="gmail_quote">2009/7/18 Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div style="WORD-WRAP: break-word">
<div>
<div>
<div>On Jul 18, 2009, at 2:56 PM, Aaron Gray wrote:</div><br>
<blockquote type="cite">
<div>I am iterating through Modules symbols for 'test/CodeGen/X86/memcpy.bc</div></blockquote>
<div><br></div></div>If you're iterating over functions, just ignore all intrinsics.</div>
<div></div></div></blockquote>
<div>  </div>
<div>Okay, but it would be nice if the Module object reflected the lowered symbol names like 'memcpy' too. It seems a bit of an inconsistancy for the Module not to reference this and have to pick it up from the relocations.</div>

</div></blockquote>
<div><br></div></div>If you're iterating over the Module, you're not dealing with the codegen level.  We want the code generator to change as little as possible when doing codegen.</div></div></blockquote>
<div> </div>
<div>No I'm doing the COFFWriter, its just that symbols are being introduced via relocations, but AFAICT they are not defined in the Module. This seems to be happening with memcpy and friends.</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="WORD-WRAP: break-word">
<div class="im">
<div><span id=""></span><br>
<blockquote type="cite">
<div class="gmail_quote">
<div>Also there is the matter of 'abort' which seems to be defined by most if not all modules even if it is not being used. I am using GlobalValue::getUses() to filter it. Whats going on with 'abort' ?</div>

</div></blockquote></div><br></div>
<div>I have no idea what you're talking about.</div></div></blockquote>
<div> </div>
<div>There is a function symbol called 'abort' that is being defined, whether it is used or not. Its not defined in the '.ll' file and useage count is zero, yet it is always nearly defined. I think there were a few test cases where it was not present, I will have to double check this.</div>


<div> </div>
<div>Aaron</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="WORD-WRAP: break-word">
<div><span id=""></span></div>
<div><br></div><font color="#888888">
<div>-Chris</div></font></div><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><br></blockquote></div><br>