<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" 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>