From 58098a7b1ffcf41da759f862deb753c82fe5b4b0 Mon Sep 17 00:00:00 2001
From: Eric Kunze <eric.kunze@arm.com>
Date: Fri, 5 Aug 2022 15:40:12 -0700
Subject: 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>
---
 chapters/control_flow.adoc | 23 ++---------------------
 1 file changed, 2 insertions(+), 21 deletions(-)

(limited to 'chapters/control_flow.adoc')

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:*
 
-- 
cgit v1.2.1

