From 1bc05bb847903024d93c1054d1934eba8f61ea00 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 1 Aug 2023 10:46:53 -0400 Subject: [PATCH] nir: Drop NIR reg create/destroy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alyssa Rosenzweig Reviewed-by: Faith Ekstrand Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir.c | 9 --------- src/compiler/nir/nir.h | 2 -- 2 files changed, 11 deletions(-) diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 92dc2bfb91c..b09e544be13 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -238,15 +238,6 @@ reg_create(void *mem_ctx, struct exec_list *list) return reg; } -nir_register * -nir_local_reg_create(nir_function_impl *impl) -{ - nir_register *reg = reg_create(ralloc_parent(impl), &impl->registers); - reg->index = impl->reg_alloc++; - - return reg; -} - void nir_reg_remove(nir_register *reg) { diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 1c3a6ca3d48..ed0ccf70ad9 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -4127,8 +4127,6 @@ nir_shader *nir_shader_create(void *mem_ctx, const nir_shader_compiler_options *options, shader_info *si); -nir_register *nir_local_reg_create(nir_function_impl *impl); - void nir_reg_remove(nir_register *reg); /** Adds a variable to the appropriate list in nir_shader */