simd.h reaches V registers through macros that a chunk built with RT_VLOCALS maps to function locals

Work in progress: the generator side (gen.py --v-locals) is not written yet, so no chunk defines RT_VLOCALS and the
default build is unchanged. build_game.py gains --gen-o2 for A/B builds at the PGO optimisation level without a profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-11-13 19:05:12 +03:00
1 parent 7a37fc3c34
commit 520e80eb18
2 files changed
+132 -58

No files matched your search

+4
View File
@@ -830,6 +830,8 @@ def main():
help='profile-guided optimisation, generated code at -O2: gen builds an instrumented totk.exe '
'(needs --toolchain on Windows: MSYS2 clang ships no profile runtime); FILE builds with that '
'.profdata (tools/pgo.py merge)')
ap.add_argument('--gen-o2', action='store_true',
help='compile the generated code at -O2 without a profile (the --pgo level), for A/B builds')
ap.add_argument('--expected', type=Path,
help='expected hashes (default tools/data/expected-<display version>.json)')
args = ap.parse_args()
@@ -842,6 +844,8 @@ def main():
sys.exit('--pgo gen: MSYS2 UCRT64 clang ships no profile runtime (clang_rt.profile); pass --toolchain with '
'an llvm-mingw directory')
set_pgo(args.pgo, out)
elif args.gen_o2:
GEN_FLAGS[GEN_FLAGS.index('-O1')] = '-O2'
extracted = None if args.exefs and args.romfs else work_dir() / 'extracted' / args.version
paths = {'exefs': (args.exefs or extracted / 'exefs').resolve(),
'romfs': (args.romfs or extracted / 'romfs').resolve(),