nir/clone: Add a helper for cloning most instruction types
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 18 May 2020 15:39:43 +0000 (10:39 -0500)
committerEric Anholt <eric@anholt.net>
Wed, 2 Sep 2020 16:59:17 +0000 (09:59 -0700)
commit9121afe861554d239b02c27a4c219ba9df523fb7
tree09ef18489df364fa4c6df41b2b75585f615261cc
parentf25e169897e73d30e31f6d19af1cc0ed487eb512
nir/clone: Add a helper for cloning most instruction types

@anholt needed it for nir_to_tgsi, and the desire comes up frequently.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6567>
src/compiler/nir/nir.h
src/compiler/nir/nir_clone.c