Currently, the following crashes when running the StandardToLLVM conversion
pass with the use-aligned-alloc option.
module {
func @f() {
%0 = alloc() {alignment = 0} : memref<64xf32>
return
}
}To fix this, I chose the option falling back to malloc instead of emitting
an error. This is because aligned_alloc is not supposed to be called with 0
as a given alignment, so this allows for an escape hatch in the conversion,
while also fixing the crash.
clang-format not found in user's PATH; not linting file.