<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><div>Thanks! <br></div>
<div><br></div>
<div>I'll create a wrapper for WriteBitcodePass. Do I still need the PrepareForThinTLO pass or is the writeBitCodePass enough?<br></div>
<div><br></div>
<div><br></div>
<div>On Fri, Mar 30, 2018, at 10:02, Peter Collingbourne wrote:<br></div>
<blockquote type="cite"><div><div>You need to make sure that your bitcode file has a module summary index. You can do that either by creating a WriteBitcodePass with EmitSummaryIndex set to true or by calling WriteBitcodeToFile with a module summary index that you created yourself. It doesn't look like either of those options are hooked up to the c API, though.<br></div>
<div><br></div>
<div><div>Peter<br></div>
<div><br></div>
<div defang_data-gmailquote="yes"><div dir="ltr">On Fri, Mar 30, 2018, 00:50 Carlo Kok via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div>
<blockquote defang_data-gmailquote="yes" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div><u></u><br></div>
<div><div>I'm using llvm-c (but if needed can call c++ stuff too if nedeed); what's the proper way to emit bitcode with thinlto info so the linker can parallelize ?<br></div>
<div>I'm currently using: <br></div>
<div>unwrap(PMB)->PrepareForThinLTO = b;<br></div>
<div><br></div>
<div>on the pass manager builder, but that doesn't seem to be enough?<br></div>
</div>
<div>_______________________________________________<br></div>
<div> LLVM Developers mailing list<br></div>
<div> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br></div>
<div> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br></div>
</blockquote></div>
</div>
</div>
</blockquote><div><br></div>
</body>
</html>