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: Nov 22 2024 at 16:03 UTC