<div dir="ltr">Hi Vikram,<div><br></div><div>lli doesn't handle code that requires runtime support very well yet. On some platforms (e.g. MachO x86-64 and arm64) you can probably add an "-extra-archive /path/to/compiler-rt.a" option to get it working, but that requires that the JIT linker support the native code model (since that's what compiler rt will be built with.</div><div><br></div><div>Things will improve as we bring up more JITLink backends with native code model support, but there isn't a schedule for that work yet.</div><div><br></div><div>-- Lang.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 10, 2020 at 2:43 AM Vikram TV <<a href="mailto:vikram.tarikere@gmail.com">vikram.tarikere@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>A gentle ping!<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 4 Dec 2020, 10:14 Vikram TV, <<a href="mailto:vikram.tarikere@gmail.com" rel="noreferrer" target="_blank">vikram.tarikere@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi all,<div><br></div><div>I have an LLVM IR (attached) that contain half types. This IR does a simple addition of float and half variables. The half type conversions call "<span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap">__gnu_h2f_ieee" function from compiler-rt, which means I need to link against compiler-rt.</span></div><div><span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap">While I can do this with `llc' workflow by using the "</span><span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap">--rtlib=compiler-rt" option for clang, I could not find a way to call in compiler-rt libraries while running with `lli'.</span></div><div><span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap">Is there a way to specify compiler-rt libs for lli?</span></div><div><span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap">Currently, lli segfaults while executing the attached IR. So I had posted a bug on this a while back at </span><span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap"> </span><a href="https://bugs.llvm.org/show_bug.cgi?id=48213" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://bugs.llvm.org/show_bug.cgi?id=48213</a>, <span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap">but thought of asking it here since it is a generic issue.</span></div><div><span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap">Thanks</span></div><div><span style="color:rgb(0,0,0);font-size:medium;white-space:pre-wrap">Vikram</span></div></div>
</div></div></div>
</blockquote></div></div></div>
</blockquote></div>