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:
@@ -32,8 +32,8 @@ protected:
|
||||
|
||||
virtual void run_pass()=0;
|
||||
|
||||
void test_op(nir_op op, nir_ssa_def *src0, nir_ssa_def *src1, nir_ssa_def *src2,
|
||||
nir_ssa_def *src3, const char *desc);
|
||||
void test_op(nir_op op, nir_def *src0, nir_def *src1, nir_def *src2,
|
||||
nir_def *src3, const char *desc);
|
||||
|
||||
void test_2src_op(nir_op op, int64_t src0, int64_t src1);
|
||||
|
||||
@@ -46,10 +46,10 @@ algebraic_test_base::algebraic_test_base()
|
||||
res_var = nir_local_variable_create(b->impl, glsl_int_type(), "res");
|
||||
}
|
||||
|
||||
void algebraic_test_base::test_op(nir_op op, nir_ssa_def *src0, nir_ssa_def *src1,
|
||||
nir_ssa_def *src2, nir_ssa_def *src3, const char *desc)
|
||||
void algebraic_test_base::test_op(nir_op op, nir_def *src0, nir_def *src1,
|
||||
nir_def *src2, nir_def *src3, const char *desc)
|
||||
{
|
||||
nir_ssa_def *res_deref = &nir_build_deref_var(b, res_var)->dest.ssa;
|
||||
nir_def *res_deref = &nir_build_deref_var(b, res_var)->dest.ssa;
|
||||
|
||||
/* create optimized expression */
|
||||
nir_intrinsic_instr *optimized_instr = nir_build_store_deref(
|
||||
|
||||
Reference in New Issue
Block a user