nir: add nir function clone
authorDave Airlie <airlied@redhat.com>
Tue, 15 Aug 2023 06:01:51 +0000 (16:01 +1000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Sep 2023 01:57:50 +0000 (01:57 +0000)
commit8f982a7fd9a4b28a63d4522a531e0fb2f9c7f355
tree016f8fbaaae39ef56c1ddf46049ea6c543f1fae1
parent5dea1ac64c74c67e944cb7acf502cb91dc398d6e
nir: add nir function clone

this just refactors the existing functionality so we can use it elsewhere.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24687>
src/compiler/nir/nir.h
src/compiler/nir/nir_clone.c