Stream: git-cranelift

Topic: cranelift / Issue #1273 How do I use get_libcall_funcref?


view this post on Zulip GitHub (Jan 24 2020 at 15:43):

bnjbvr closed Issue #1273:

I'm looking at the documentation for https://docs.rs/cranelift-codegen/0.51.0/cranelift_codegen/ir/fn.get_libcall_funcref.html and I'm not sure how to get an Inst to pass to it. It looks like Inst is returned by InstBuilder.call, but that requires me to have a FuncRef with the same signature already. Am I missing something obvious? It would seem to make more sense to have it take a Signature ...

Context: I'm trying to call memcpy from libc to fix https://github.com/jyn514/rcc/issues/71.


Last updated: Dec 23 2024 at 13:07 UTC