<div dir="ltr"><br><div class="gmail_extra">On Thu, Feb 7, 2013 at 3:23 PM, Nadav Rotem <span dir="ltr"><<a href="mailto:nrotem@apple.com" target="_blank">nrotem@apple.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><br>
On Feb 7, 2013, at 3:17 PM, ryan <<a href="mailto:stdstack@gmail.com">stdstack@gmail.com</a>> wrote:<br>
<br>
> Thanks a lot for the reply, Nadav!<br>
> I see that using the cost model in target-independent analysis is not good. But I really like the idea of having instruction<br>
> cost estimation available. Also the reason I can't directly move to 3.2 code base is that it fails to compile(produce bc files) big<br>
> project like MySQL, where 3.0 has no problem.<br>
><br>
<br>
</div>Is this a known problem ? Can you please file a bugzilla ? LLVM should be able to compiler MySQL …<br>
<div class="im"><br></div></blockquote><div style>OK. I didn't find much on the internet related to the clang compilation error. Just filed the bug report <a href="http://llvm.org/bugs/show_bug.cgi?id=15206">http://llvm.org/bugs/show_bug.cgi?id=15206</a></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">
<br>
> Right now, I'm trying to hard code a particular target, and copy part of the TargetTransformInfo and X86TargetTransformInfo<br>
> to a simple LLVM 3.0 project to try out. So far I'm stuck in instantiating X86TargetMachine and wondering whether it can be<br>
> created from instances of TargetMachine or TargetData.<br>
><br>
<br>
</div>Look at tools/opt/opt.cpp  or tools/llc/llc.cpp. They both initialize the target machine using the target data.<br>
<br></blockquote><div style>Thanks a lot for the pointer. I'll take a look! </div><div style><br></div><div style><br></div><div style>Best regards,</div><div style>Ryan</div></div><br></div></div>