nir: Drop "SSA" from NIR language
Everything is SSA now.
sed -e 's/nir_ssa_def/nir_def/g' \
-e 's/nir_ssa_undef/nir_undef/g' \
-e 's/nir_ssa_scalar/nir_scalar/g' \
-e 's/nir_src_rewrite_ssa/nir_src_rewrite/g' \
-e 's/nir_gather_ssa_types/nir_gather_types/g' \
-i $(git grep -l nir | grep -v relnotes)
git mv src/compiler/nir/nir_gather_ssa_types.c \
src/compiler/nir/nir_gather_types.c
ninja -C build/ clang-format
cd src/compiler/nir && find *.c *.h -type f -exec clang-format -i \{} \;
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24585>
This commit is contained in:
@@ -25,14 +25,14 @@
|
||||
#include "nir_builder.h"
|
||||
|
||||
static bool
|
||||
assert_ssa_def_is_not_1bit(nir_ssa_def *def, UNUSED void *unused)
|
||||
assert_ssa_def_is_not_1bit(nir_def *def, UNUSED void *unused)
|
||||
{
|
||||
assert(def->bit_size > 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
rewrite_1bit_ssa_def_to_32bit(nir_ssa_def *def, void *_progress)
|
||||
rewrite_1bit_ssa_def_to_32bit(nir_def *def, void *_progress)
|
||||
{
|
||||
bool *progress = _progress;
|
||||
if (def->bit_size == 1) {
|
||||
@@ -51,7 +51,7 @@ lower_alu_instr(nir_builder *b, nir_alu_instr *alu, bool has_fcsel_ne,
|
||||
b->cursor = nir_before_instr(&alu->instr);
|
||||
|
||||
/* Replacement SSA value */
|
||||
nir_ssa_def *rep = NULL;
|
||||
nir_def *rep = NULL;
|
||||
switch (alu->op) {
|
||||
case nir_op_mov:
|
||||
case nir_op_vec2:
|
||||
@@ -184,7 +184,7 @@ lower_alu_instr(nir_builder *b, nir_alu_instr *alu, bool has_fcsel_ne,
|
||||
|
||||
if (rep) {
|
||||
/* We've emitted a replacement instruction */
|
||||
nir_ssa_def_rewrite_uses(&alu->dest.dest.ssa, rep);
|
||||
nir_def_rewrite_uses(&alu->dest.dest.ssa, rep);
|
||||
nir_instr_remove(&alu->instr);
|
||||
} else {
|
||||
if (alu->dest.dest.ssa.bit_size == 1)
|
||||
|
||||
Reference in New Issue
Block a user