[llvm-dev] Fwd: [lli][compiler-rt][halfType] lli segfaults while executing half type.

Vikram TV via llvm-dev llvm-dev at lists.llvm.org
Thu Dec 3 20:44:00 PST 2020


Hi all,

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
"__gnu_h2f_ieee"
function from compiler-rt, which means I need to link against compiler-rt.

While I can do this with `llc' workflow by using the "--rtlib=compiler-rt"
option for clang, I could not find a way to call in compiler-rt libraries
while running with `lli'.

Is there a way to specify compiler-rt libs for lli?

Currently, lli segfaults while executing the attached IR. So I had posted a
bug on this a while back at https://bugs.llvm.org/show_bug.cgi?id=48213, but
thought of asking it here since it is a generic issue.

Thanks
Vikram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201204/11207795/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addHalf.ll
Type: application/octet-stream
Size: 2615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201204/11207795/attachment-0001.obj>


More information about the llvm-dev mailing list