<div dir="ltr">One minute to recompile and relink one file is too long. There are ways to make incremental development significantly faster, and there have been a few threads about this on llvm-dev. This one came to mind:<div><a href="https://groups.google.com/g/llvm-dev/c/ur-2aX_KvfM/m/FFRlZdZECAAJ">https://groups.google.com/g/llvm-dev/c/ur-2aX_KvfM/m/FFRlZdZECAAJ</a><br></div><div>If you search around, you can find some of the standard recommendations:</div><div>- Use ninja instead of make</div><div>- Use lld or gold instead of ld.bfd</div><div>- Adjust debug info settings (-gmlt, split dwarf, or disable it)</div><div>- Use external tablegen (probably not your problem)</div><div><br></div><div>Good luck!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 9, 2020 at 3:31 AM PenYiWang via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi <div><br></div><div>I am modifying X86RetpolineThunks.cpp.</div><div> </div><div>X86RetpolineThunks.cpp 's location is llvm-src/lib/Target/X86.</div><div><br></div><div>Which target should I use , next time use clang test.c , I can see the difference .</div><div><br></div><div>I found that  "make llc"  doesn't work.</div><div><br></div><div>And either "make LLVMX86CodeGen" doen't work.</div><div><br></div><div>"make clang" waste a lot of time, even -j64.</div><div><br></div><div>Every time modifying the file of machine function pass ,</div><div>I have to wait for 1 min. </div><div><br></div><div>It drive me crazy.</div><div><br></div><div>Which "target" should use to "make" when developing machine function pass ?</div><div><br></div><div>Or is  there other way to develop machine function pass?</div><div><br></div><div>Thank you. </div><div> </div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>