nir: Add nir_builder_create returning nir_builder
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 26 Jun 2023 14:20:04 +0000 (10:20 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 27 Jun 2023 18:13:02 +0000 (18:13 +0000)
commite5410f9b00e60fb47e7737f7b5357398c3b2f7bc
treec80306b66c0950ced0568cc1ff0d6a2ab3c041aa
parentddb7cf7a25ffc8473de1b48452c96b6d00843e91
nir: Add nir_builder_create returning nir_builder

More ergonomic.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23860>
src/compiler/nir/nir_builder.h