You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this index is 0, many frontends (including clang and mlir-translate) will emit a ConstantPointerNull instead of a ConstantInt in the array. This causes preserve-nvvm to fail to detect the metadata, which triggers a crash.
Is there a known workaround? If not, I believe the fix should be pretty simple and I'm happy to submit a PR.
The text was updated successfully, but these errors were encountered:
Context: When registering a custom allocator via
__enzyme_allocation_like
as a global array, the second element is the index of the argument for the size of the memory allocation. This element must be an integer casted to a pointer.If this index is 0, many frontends (including
clang
andmlir-translate
) will emit aConstantPointerNull
instead of aConstantInt
in the array. This causespreserve-nvvm
to fail to detect the metadata, which triggers a crash.Is there a known workaround? If not, I believe the fix should be pretty simple and I'm happy to submit a PR.
The text was updated successfully, but these errors were encountered: