From: Alyssa Rosenzweig Date: Tue, 1 Aug 2023 14:51:04 +0000 (-0400) Subject: nir: remove nir_{src,dest}_for_reg X-Git-Tag: upstream/23.3.3~4715 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5133dcebb484f0c591e45ed2d10b9fb2d1a93c74;p=platform%2Fupstream%2Fmesa.git nir: remove nir_{src,dest}_for_reg Signed-off-by: Alyssa Rosenzweig Reviewed-by: Faith Ekstrand Reviewed-by: Christian Gmeiner Reviewed-by: Marek Olšák Part-of: --- 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) {