Closed dmakarov closed 1 year ago
LGTM. It'll be great if @brson or @nvjle reviewed it as well.
Thank you, Brian. I agree, to_llvm_type doesn’t look good. I’ll think about revising this. For now merging, to move forward with move test
and will follow up later. Jason, please comment too. I’ll rework this in later PRs.
Motivation
Instantiations of structs like
were not handled correctly. This requires recursive processing of struct instantiations down to the struct that doesn't depend on struct type parameters, and also up again to declare properly all structs in a chain of instantiations. Some instantiations are not found until functions declarations are being generated. This PR changes handling of type parameterized structs to be continued also after function declarations have started being generated by the translator.
Resolves #312