<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 12, 2016 at 9:07 PM, Chris Bieneman <span dir="ltr"><<a href="mailto:cbieneman@apple.com" target="_blank">cbieneman@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Vivek, in case you haven't seen it, we do have full support for multi-stage PGO builds in CMake. The documentation is here:</div><div><br></div><div><a href="http://llvm.org/docs/AdvancedBuilds.html#multi-stage-pgo" target="_blank">http://llvm.org/docs/AdvancedBuilds.html#multi-stage-pgo</a><br><br>Your checkout will need to include LLVM, Clang, and Compiler-RT, and it will generate targets to run the full PGO generation. I find that using this is way easier than doing it manually.</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div></blockquote><div>Thanks Chris for pointing this but after reading this it seems to optimize llvm/clang it self , how ever I need to use profile information in a Machine Function pass to help interprocedural register allocation and then use it to optimize other softwares. I have not look into PGO.cmake.</div><div><br></div><div>-Vivek</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span class="HOEnZb"><font color="#888888"><div>-Chris</div></font></span><div><div class="h5"><div><br>On Jul 12, 2016, at 4:40 AM, vivek pandya via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hello,<div><br></div><div>When I try to use -fprofile-instr-generate with clang (which is built from source) I am getting following error :</div><div><br></div><div><div>ld: file not found: /Users/Mr.Pandya/My_Stuff/Active/llvm/build/bin/../lib/clang/3.9.0/lib/darwin/libclang_rt.profile_osx.a</div><div>clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)</div></div><div><br></div><div>I am not building compiler RT with LLVM.</div><div><br></div><div>Am I missing any thing while building llvm/clang ?</div><div><br></div><div>Sincerely,</div><div>Vivek</div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><span class=""><br><span>LLVM Developers mailing list</span><br><span><a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a></span><br><span><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></span><br></span></div></blockquote></div></blockquote></div><br></div></div>