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?
Zack has marked this topic as resolved.
Last updated: Dec 23 2024 at 13:07 UTC