<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">I use CloneAndPruneFunctionInto to inline functions from module A into module B. Module A's functions have calls, but only to intrinsics, not even to other functions in the same module, so I thought that it would be fine. However, running verifyModule on module B, I get multiple errors stating that there are references to functions (intrinsics) that live in a module A:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">Referencing function in another module!<br class="">  %75 = tail call { i64, i1 } @llvm.usub.with.overflow.i64(i64 %73, i64 4)<br class=""></blockquote><div class=""><br class="webkit-block-placeholder"></div><div class="">This surprises me a little bit.</div><div class=""><br class=""></div><div class="">Is there a simple way to "bring over" all the referenced intrinsics?</div><div class="">
<br class="Apple-interchange-newline"><span style="color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;" class="">FĂ©lix</span>
</div>

<br class=""></div></body></html>