From a2a59e96f8f18e00e8aea9627d3b15d894d5a825 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 12 Dec 2023 11:25:53 -0800 Subject: Update `tuple.make` text format to include arity (#6169) Previously, the number of tuple elements was inferred from the number of s-expression children of the `tuple.make` expression, but that scheme would not work in the new wat parser, where s-expressions are optional and cannot be semantically meaningful. Update the text format to take the number of tuple elements (i.e. the tuple arity) as an immediate. This new format will be able to be implemented in the new parser as follow-on work. --- src/passes/TupleOptimization.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/passes/TupleOptimization.cpp') diff --git a/src/passes/TupleOptimization.cpp b/src/passes/TupleOptimization.cpp index e4fb1cf00..16a2bad58 100644 --- a/src/passes/TupleOptimization.cpp +++ b/src/passes/TupleOptimization.cpp @@ -20,7 +20,7 @@ // like this: // // (local.set $tuple -// (tuple.make (A) (B) (C))) +// (tuple.make 3 (A) (B) (C))) // (use // (tuple.extract 0 // (local.get $tuple))) -- cgit v1.2.3