Implement dataflow for record patterns

Strategy: there is now a regular flow step from an instance-of LHS / switch expr to the pattern, 0 or more read steps corresponding to record pattern destructors, and then finally a normal SSA def/use step connecting the binding patterns to their first uses.
This commit is contained in:
Chris Smowton
2023-11-01 20:33:09 +00:00
parent 05addde957
commit 20b97af02f
6 changed files with 55 additions and 3 deletions

View File

@@ -576,6 +576,10 @@ lambdaKind(
int bodyKind: int ref
);
isCanonicalConstr(
int constructorid: @constructor ref
);
arrays(
unique int id: @array,
string nodeName: string ref,