internal/rosa: pass stage alongside state

This cleans up many function signatures.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-17 16:44:13 +09:00
parent 30eb0d6a61
commit 38bc2c7508
89 changed files with 563 additions and 558 deletions

View File

@@ -78,7 +78,7 @@ func TestCureAll(t *testing.T) {
t.Parallel()
for _, p := range rosa.Native().Collect() {
a, _ := rosa.Native().Load(rosa.Std, p)
a, _ := rosa.Native().Std().MustLoad(p)
meta := rosa.Native().MustGet(p)
t.Run(meta.Name, func(t *testing.T) {
t.Parallel()
@@ -93,13 +93,13 @@ func TestCureAll(t *testing.T) {
}
func BenchmarkStage3(b *testing.B) {
s := rosa.Native().Clone()
t := rosa.Native().Clone().Std()
for b.Loop() {
s.Load(rosa.Std, rosa.LLVM)
t.MustLoad(rosa.LLVM)
b.StopTimer()
s.DropCaches("", 0)
t.DropCaches("", 0)
b.StartTimer()
}
}