gallivm: fix coroutines on aarch64 with llvm 8
authorDave Airlie <airlied@redhat.com>
Thu, 10 Oct 2019 03:27:30 +0000 (13:27 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 11 Oct 2019 02:15:45 +0000 (12:15 +1000)
commitf59ff014b199af118ac9b90e3a67f15f4c37110e
treed8b0e999fa7420b99f2b80d66b04cbc26019c9f6
parent05b008c961faf4de322bbf08a452893f01fb143d
gallivm: fix coroutines on aarch64 with llvm 8

The coroutine split pass is missing a dependency before LLVM 9.0,
and fails to initialise properly if the CallGraphWrapperPass hasn't
be initialised earlier (x86 does it due to some of it's passes
requiring it).

This is a workaround for llvm 8 (coroutines are only supported in 8
and higher). It adds another pass that has a dependency on the pass
the coroutines split requires. This pass shouldn't have any raal
effects.

Fixes: d32690b43c9 (gallivm: add coroutine pass manager support)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_init.c