Stream: cranelift

Topic: Getting function call return value?


view this post on Zulip osa1 (May 12 2020 at 23:13):

Sorry if this is not the right place for user questions -- first time using cranelift and I'm confused about how to get return value of calls using https://docs.rs/cranelift-codegen/0.63.0/cranelift_codegen/ir/trait.InstBuilder.html#method.call. Any tips? I checked "simplejit" (which as far as I can see the only example in the repo?) but it doesn't use that method as far as I can see.

view this post on Zulip osa1 (May 12 2020 at 23:18):

Ahh, actually, simplejit uses that method. Sorry for the noise, I'll read it more carefully.


Last updated: Oct 23 2024 at 20:03 UTC