-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
use C++ LLVM API rather than C API for array types to support 64 bits #1424
Comments
I seriously hope nobody will ever need a fixed size array larger than 4GB. |
It's definitely possible, especially when you're not running in an OS. |
triaging upstream as well llvm/llvm-project#56496 |
I submitted a patch to enable the C api to take advantage of |
completed in 6a07b70 |
Nice work @nektro! |
See #1422
the LLVM IR for this is:
The
101
is because it wrapped around 32 bits. This is because the LLVM C API usesunsigned
but the C++ API uses uint64_t:static ArrayType *get(Type *ElementType, uint64_t NumElements);
So if we switch to the C++ API to make LLVM array types it fixes this bug.
The text was updated successfully, but these errors were encountered: