[mlir] Fall back to posix_memalign for aligned_alloc on MacOS
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 26 Jul 2022 09:14:37 +0000 (11:14 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 26 Jul 2022 09:29:37 +0000 (11:29 +0200)
commit48a1a993fb7a8fc8a79e142de0aa43dcb4702533
tree9f2efb8ee2b0a91543bc6948b0126df23b697555
parentae222dae56b9345238ae2422f449736be6264f5b
[mlir] Fall back to posix_memalign for aligned_alloc on MacOS

aligned_alloc was added in MacOS 10.15, some users want to support older
versions. The runtime functions makes this easy, so just put in a call
to posix_memalign, which provides the same functionality.
mlir/lib/ExecutionEngine/CRunnerUtils.cpp