From 5133dcebb484f0c591e45ed2d10b9fb2d1a93c74 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 1 Aug 2023 10:51:04 -0400 Subject: [PATCH] nir: remove nir_{src,dest}_for_reg MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alyssa Rosenzweig Reviewed-by: Faith Ekstrand Reviewed-by: Christian Gmeiner Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index f403918..e21eb7b 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -1107,27 +1107,6 @@ nir_src_for_ssa(nir_ssa_def *def) return src; } -static inline nir_src -nir_src_for_reg(nir_register *reg) -{ - nir_src src = NIR_SRC_INIT; - - src.is_ssa = false; - src.reg.reg = reg; - - return src; -} - -static inline nir_dest -nir_dest_for_reg(nir_register *reg) -{ - nir_dest dest = NIR_DEST_INIT; - - dest.reg.reg = reg; - - return dest; -} - static inline unsigned nir_src_bit_size(nir_src src) { -- 2.7.4