gallivm: add cache interface to mcjit
authorDave Airlie <airlied@redhat.com>
Wed, 13 May 2020 00:43:56 +0000 (10:43 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 10 Jun 2020 20:05:40 +0000 (06:05 +1000)
commit4962d3e107333a3de8efbed49f32a4ccb2861eec
tree9a258c15c9572b847210a770574997a2245ec082
parentb15ecb1717f695cccbce3f2faece665fdb1074a1
gallivm: add cache interface to mcjit

MCJIT uses an ObjectCache object to implement the cache,
this creates and instances of it and adds it to the MCJIT
instances, it stores the cached object for later use by
the outer layers.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5049>
src/gallium/auxiliary/gallivm/lp_bld_init.c
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
src/gallium/auxiliary/gallivm/lp_bld_misc.h