Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a Context method to construct ArrayType and FunctionType #511

Open
vaivaswatha opened this issue Jun 25, 2024 · 1 comment
Open

Comments

@vaivaswatha
Copy link
Contributor

vaivaswatha commented Jun 25, 2024

inkwell::context::Context has methods to construct most other types, except vector, array and function types. Providing methods for these would be useful. Currently I see no other way of constructing an ArrayType, except match over every possible type for the element type, and call array_type on that. That's quite tedious.

@vaivaswatha vaivaswatha changed the title Provide a Context to construct ArrayType Provide a Context method to construct ArrayType Jun 25, 2024
@vaivaswatha vaivaswatha changed the title Provide a Context method to construct ArrayType Provide a Context method to construct ArrayType and FunctionType Jun 25, 2024
@vaivaswatha
Copy link
Contributor Author

I just realised that we can build ArrayType and FunctionType from a BasicTypeEnum, so this isn't that important. But it would be a nice to have. Please close the Issue if you think we don't need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants