Currently we only handle integer, pointer, and float constant values, but we obviously need to handle values of array, and structure constant types as well. This issue exists to track that work.
Spec
[ ] Determine how to create constants of these other types. This will likely involve generating functions—that are immediately called—to generate these constants.
[ ] Implement this functionality into generate_const_or_get_var.
[ ] See if any of this can be abstracted to make it possible to use the same logic to initialize global constants.
[ ] Implement whatever is necessary to handle global constant initialization as well. Currently this does not work at all.
Description
Currently we only handle integer, pointer, and float constant values, but we obviously need to handle values of array, and structure constant types as well. This issue exists to track that work.
Spec
generate_const_or_get_var
.