From eb17964e874fa9a2d618ccc0a6a684ae3857cbc4 Mon Sep 17 00:00:00 2001 From: nyash-codex Date: Sat, 1 Nov 2025 17:27:02 +0900 Subject: [PATCH] =?UTF-8?q?smokes(self):=20self=5Fparam=5F*=20=E3=82=92=20?= =?UTF-8?q?opt-in=20(SMOKES=5FENABLE=5FLLVM=5FSELF=5FPARAM=3D1)=20?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4=20=E2=80=94=20=E6=9C=AA=E7=99=BB?= =?UTF-8?q?=E9=8C=B2=E3=83=9C=E3=83=83=E3=82=AF=E3=82=B9=E3=81=AE=20new=20?= =?UTF-8?q?=E3=82=92=E9=81=BF=E3=81=91=E6=97=A2=E5=AE=9A=E3=82=92=E9=9D=99?= =?UTF-8?q?=E3=81=8B=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v2/profiles/quick/core/binop/self_param_binop_vm.sh | 4 ++++ .../v2/profiles/quick/core/branch/self_param_branch_vm.sh | 4 ++++ .../v2/profiles/quick/core/compare/self_param_compare_vm.sh | 4 ++++ .../v2/profiles/quick/core/const/self_param_const_vm.sh | 4 ++++ .../smokes/v2/profiles/quick/core/jump/self_param_jump_vm.sh | 4 ++++ tools/smokes/v2/profiles/quick/core/phi/self_param_phi_vm.sh | 4 ++++ tools/smokes/v2/profiles/quick/core/ret/self_param_ret_vm.sh | 4 ++++ 7 files changed, 28 insertions(+) diff --git a/tools/smokes/v2/profiles/quick/core/binop/self_param_binop_vm.sh b/tools/smokes/v2/profiles/quick/core/binop/self_param_binop_vm.sh index fd9000e9..8e4bddcd 100644 --- a/tools/smokes/v2/profiles/quick/core/binop/self_param_binop_vm.sh +++ b/tools/smokes/v2/profiles/quick/core/binop/self_param_binop_vm.sh @@ -7,6 +7,10 @@ source "$(dirname "$0")/../../../../lib/result_checker.sh" require_env || exit 2 preflight_plugins || exit 2 +if [ "${SMOKES_ENABLE_LLVM_SELF_PARAM:-0}" != "1" ]; then + test_skip "self_param_binop" "opt-in (set SMOKES_ENABLE_LLVM_SELF_PARAM=1)" && exit 0 +fi + test_self_param_binop() { local src=' using "lang/src/llvm_ir/instructions/binop.hako" as BinOpInst diff --git a/tools/smokes/v2/profiles/quick/core/branch/self_param_branch_vm.sh b/tools/smokes/v2/profiles/quick/core/branch/self_param_branch_vm.sh index 93425838..5f247a02 100644 --- a/tools/smokes/v2/profiles/quick/core/branch/self_param_branch_vm.sh +++ b/tools/smokes/v2/profiles/quick/core/branch/self_param_branch_vm.sh @@ -7,6 +7,10 @@ source "$(dirname "$0")/../../../../lib/result_checker.sh" require_env || exit 2 preflight_plugins || exit 2 +if [ "${SMOKES_ENABLE_LLVM_SELF_PARAM:-0}" != "1" ]; then + test_skip "self_param_branch" "opt-in (set SMOKES_ENABLE_LLVM_SELF_PARAM=1)" && exit 0 +fi + test_self_param_branch() { local src=' using "lang/src/llvm_ir/instructions/branch.hako" as B diff --git a/tools/smokes/v2/profiles/quick/core/compare/self_param_compare_vm.sh b/tools/smokes/v2/profiles/quick/core/compare/self_param_compare_vm.sh index 15890e1a..40d4ac47 100644 --- a/tools/smokes/v2/profiles/quick/core/compare/self_param_compare_vm.sh +++ b/tools/smokes/v2/profiles/quick/core/compare/self_param_compare_vm.sh @@ -7,6 +7,10 @@ source "$(dirname "$0")/../../../../lib/result_checker.sh" require_env || exit 2 preflight_plugins || exit 2 +if [ "${SMOKES_ENABLE_LLVM_SELF_PARAM:-0}" != "1" ]; then + test_skip "self_param_compare" "opt-in (set SMOKES_ENABLE_LLVM_SELF_PARAM=1)" && exit 0 +fi + test_self_param_compare() { local src=' using "lang/src/llvm_ir/instructions/compare.hako" as C diff --git a/tools/smokes/v2/profiles/quick/core/const/self_param_const_vm.sh b/tools/smokes/v2/profiles/quick/core/const/self_param_const_vm.sh index 08e68be0..179fc35c 100644 --- a/tools/smokes/v2/profiles/quick/core/const/self_param_const_vm.sh +++ b/tools/smokes/v2/profiles/quick/core/const/self_param_const_vm.sh @@ -7,6 +7,10 @@ source "$(dirname "$0")/../../../../lib/result_checker.sh" require_env || exit 2 preflight_plugins || exit 2 +if [ "${SMOKES_ENABLE_LLVM_SELF_PARAM:-0}" != "1" ]; then + test_skip "self_param_const" "opt-in (set SMOKES_ENABLE_LLVM_SELF_PARAM=1)" && exit 0 +fi + test_self_param_const() { local src=' using "lang/src/llvm_ir/instructions/const.hako" as ConstInst diff --git a/tools/smokes/v2/profiles/quick/core/jump/self_param_jump_vm.sh b/tools/smokes/v2/profiles/quick/core/jump/self_param_jump_vm.sh index 8fbfb4c7..b75cc876 100644 --- a/tools/smokes/v2/profiles/quick/core/jump/self_param_jump_vm.sh +++ b/tools/smokes/v2/profiles/quick/core/jump/self_param_jump_vm.sh @@ -7,6 +7,10 @@ source "$(dirname "$0")/../../../../lib/result_checker.sh" require_env || exit 2 preflight_plugins || exit 2 +if [ "${SMOKES_ENABLE_LLVM_SELF_PARAM:-0}" != "1" ]; then + test_skip "self_param_jump" "opt-in (set SMOKES_ENABLE_LLVM_SELF_PARAM=1)" && exit 0 +fi + test_self_param_jump() { local src=' using "lang/src/llvm_ir/instructions/jump.hako" as J diff --git a/tools/smokes/v2/profiles/quick/core/phi/self_param_phi_vm.sh b/tools/smokes/v2/profiles/quick/core/phi/self_param_phi_vm.sh index 1d5a0898..683b0e3a 100644 --- a/tools/smokes/v2/profiles/quick/core/phi/self_param_phi_vm.sh +++ b/tools/smokes/v2/profiles/quick/core/phi/self_param_phi_vm.sh @@ -7,6 +7,10 @@ source "$(dirname "$0")/../../../../lib/result_checker.sh" require_env || exit 2 preflight_plugins || exit 2 +if [ "${SMOKES_ENABLE_LLVM_SELF_PARAM:-0}" != "1" ]; then + test_skip "self_param_phi" "opt-in (set SMOKES_ENABLE_LLVM_SELF_PARAM=1)" && exit 0 +fi + test_self_param_phi() { local src=' using "lang/src/llvm_ir/instructions/phi.hako" as PhiInst diff --git a/tools/smokes/v2/profiles/quick/core/ret/self_param_ret_vm.sh b/tools/smokes/v2/profiles/quick/core/ret/self_param_ret_vm.sh index 0aec6e7f..e9cb6080 100644 --- a/tools/smokes/v2/profiles/quick/core/ret/self_param_ret_vm.sh +++ b/tools/smokes/v2/profiles/quick/core/ret/self_param_ret_vm.sh @@ -7,6 +7,10 @@ source "$(dirname "$0")/../../../../lib/result_checker.sh" require_env || exit 2 preflight_plugins || exit 2 +if [ "${SMOKES_ENABLE_LLVM_SELF_PARAM:-0}" != "1" ]; then + test_skip "self_param_ret" "opt-in (set SMOKES_ENABLE_LLVM_SELF_PARAM=1)" && exit 0 +fi + test_self_param_ret() { local src=' using "lang/src/llvm_ir/instructions/ret.hako" as R