Stream: general

Topic: ✔ Cranelift Returns & Arguments


view this post on Zulip Zack (Sep 18 2021 at 09:16):

Alright, after some research, I've figured out how user defined data types, like structs or classes, are represented in memory.

Now I have the issue of finding out how to use them with Cranelift. Specifically, how do I use "custom" types as Values? I know I can allocate them on the stack, but how can I return a custom data type, or use a custom data type as a function argument? This would theoretically use registers, but how would I go about this in Cranelift?

view this post on Zulip Notification Bot (Sep 19 2021 at 03:23):

Zack has marked this topic as resolved.


Last updated: Oct 23 2024 at 20:03 UTC