aboutsummaryrefslogtreecommitdiff
path: root/chapters/control_flow.adoc
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2022-08-05 15:40:12 -0700
committerEric Kunze <eric.kunze@arm.com>2022-08-19 14:19:28 -0700
commit58098a7b1ffcf41da759f862deb753c82fe5b4b0 (patch)
tree75b61a482e23293b8af85adf6210f2d3e4e5695d /chapters/control_flow.adoc
parent6361d1664c7b82ecc3afdd0eb87e96afea430f89 (diff)
downloadspecification-58098a7b1ffcf41da759f862deb753c82fe5b4b0.tar.gz
Machine parsable specification
This converts portions of the asciidoc specification into an xml document and schema. For the html and pdf outputs, the xml is converted to asciidoc files that are included into the existing specification. The xml allows future automated uses of the tosa specification while maintaining rough compatibility with the existing document. No significant functional changes are included in this change. Change-Id: I7f1f95c527638e270c157d58fcdec6a3510daea5 Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Diffstat (limited to 'chapters/control_flow.adoc')
-rw-r--r--chapters/control_flow.adoc23
1 files changed, 2 insertions, 21 deletions
diff --git a/chapters/control_flow.adoc b/chapters/control_flow.adoc
index e3c7fad..de6bdda 100644
--- a/chapters/control_flow.adoc
+++ b/chapters/control_flow.adoc
@@ -15,17 +15,7 @@ TOSA implements two control flow operators, for conditional branching and loop b
Evaluates a Boolean condition and then takes one of two distinct execution paths. This implements the semantic if-then-else structure.
-*Arguments:*
-
-|===
-|Argument|Type|Name|Description
-
-|Input |tensor_list_t |input_list |List of input tensors
-|Input |bool_t |condition |Input condition as rank-0 tensor
-|Attribute|tosa_graph_t|then_graph |TOSA graph to execute if condition is true
-|Attribute|tosa_graph_t|else_graph |TOSA graph to execute if condition is false
-|Output|tensor_list_t |output_list|List of output tensors
-|===
+include::{generated}/operators/COND_IF.adoc[]
*Operation Function:*
@@ -47,16 +37,7 @@ if (condition) {
Generates and evaluates a Bool condition and either executes a loop body or exits the loop. This action is performed repeatedly after updating and re-evaluating the Boolean condition every iteration. This implements the semantic foreach or while iterative loop structure.
-*Arguments:*
-
-|===
-|Argument|Type|Name|Description
-
-|Input |tensor_list_t |input_list |List of input tensors
-|Attribute|tosa_graph_t|cond_graph |TOSA graph to evaluate the condition
-|Attribute|tosa_graph_t|body_graph |TOSA graph to execute the loop body
-|Output|tensor_list_t |output_list|List of output tensors
-|===
+include::{generated}/operators/WHILE_LOOP.adoc[]
*Operation Function:*