Reference model update for control flow operators support

Rationale for making this change:
- In the original design, for control flow operators like WhileOp,
child blocks couldn't read the tensor variables (global consts) in the root level block,
this patch added the machanism for child blocks to access their parent
level block's tensors.
- This change also relies on another serialization change on adding
another layer of abtraction called Region:
  - Serialization patch: [region] Add TosaSerializationRegion to serialization_lib
  - Updated the corresponding python version of the serialization code: TosaSerializerRegion to python version of serialization_lib
- This change also relies on the TOSA MLIR Translator change: Add RegionBuilder to TOSA MLIR Translator
- Added the WhileOp related test cases: While, LSTM, GRU, RNN
- Other related fixes

Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: I13ae33628ad07e41d248e88652ce1328654694ab
diff --git a/scripts/operator_api/templates/operators_cc.j2 b/scripts/operator_api/templates/operators_cc.j2
index 6b0ed6e..3f2acb5 100644
--- a/scripts/operator_api/templates/operators_cc.j2
+++ b/scripts/operator_api/templates/operators_cc.j2
@@ -1,5 +1,5 @@
 
-// Copyright (c) 2022, ARM Limited.
+// Copyright (c) 2022-2023, ARM Limited.
 //
 //    Licensed under the Apache License, Version 2.0 (the "License");
 //    you may not use this file except in compliance with the License.
@@ -64,11 +64,11 @@
     switch(mode) {
         case tosa_mode_nearest:
             return tosa::ResizeMode_NEAREST;
-        case tosa_mode_max:            
+        case tosa_mode_max:
         case tosa_mode_bilinear:
             return tosa::ResizeMode_BILINEAR;
         default:
-            return tosa::ResizeMode_UNKNOWN;            
+            return tosa::ResizeMode_UNKNOWN;
     }
 }
 
@@ -131,7 +131,7 @@
                                                              });
 
         // Create a tosa single-op basic block
-        tosa::TosaSerializationBasicBlock block("{{operator.name}}", { op },
+        tosa::TosaSerializationBasicBlock block("{{operator.name}}", "main", { op },
                                                  {
                                                     {%- for input in operator.inputs: -%}
                                                         {{input}},