about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--013update_operation.cc2
-rw-r--r--021check_instruction.cc2
-rw-r--r--030container.cc2
-rw-r--r--040brace.cc2
-rw-r--r--041jump_target.cc2
-rw-r--r--042name.cc2
-rw-r--r--043new.cc2
-rw-r--r--046closure_name.cc2
-rw-r--r--048check_type_by_name.cc2
-rw-r--r--052tangle.cc4
-rw-r--r--056recipe_header.cc4
-rw-r--r--057static_dispatch.cc2
12 files changed, 14 insertions, 14 deletions
diff --git a/013update_operation.cc b/013update_operation.cc
index 2139d82a..77fb44f2 100644
--- a/013update_operation.cc
+++ b/013update_operation.cc
@@ -2,7 +2,7 @@
 //: nothing's undefined.
 
 :(before "End Transforms")
-Transform.push_back(update_instruction_operations);
+Transform.push_back(update_instruction_operations);  // idempotent
 
 :(code)
 void update_instruction_operations(recipe_ordinal r) {
diff --git a/021check_instruction.cc b/021check_instruction.cc
index 723ada71..1d831369 100644
--- a/021check_instruction.cc
+++ b/021check_instruction.cc
@@ -9,7 +9,7 @@
 //: transform it in a separate layer or set of layers.
 
 :(after "Transform.push_back(update_instruction_operations)")
-Transform.push_back(check_instruction);
+Transform.push_back(check_instruction);  // idempotent
 
 :(code)
 void check_instruction(const recipe_ordinal r) {
diff --git a/030container.cc b/030container.cc
index 6a063658..0db73c1d 100644
--- a/030container.cc
+++ b/030container.cc
@@ -517,7 +517,7 @@ container bar [
 $error: 0
 
 :(after "Begin Transforms")
-Transform.push_back(check_or_set_invalid_types);
+Transform.push_back(check_or_set_invalid_types);  // idempotent
 
 :(code)
 void check_or_set_invalid_types(const recipe_ordinal r) {
diff --git a/040brace.cc b/040brace.cc
index 47adbedf..ae7c9736 100644
--- a/040brace.cc
+++ b/040brace.cc
@@ -32,7 +32,7 @@ recipe main [
 +transform: copy ...
 
 :(after "Begin Transforms")
-Transform.push_back(transform_braces);
+Transform.push_back(transform_braces);  // idempotent
 
 :(code)
 void transform_braces(const recipe_ordinal r) {
diff --git a/041jump_target.cc b/041jump_target.cc
index 3bd8cedb..0155ae89 100644
--- a/041jump_target.cc
+++ b/041jump_target.cc
@@ -19,7 +19,7 @@ recipe main [
 put(Type_ordinal, "label", 0);
 
 :(before "Transform.push_back(transform_braces)")
-Transform.push_back(transform_labels);
+Transform.push_back(transform_labels);  // idempotent
 
 :(code)
 void transform_labels(const recipe_ordinal r) {
diff --git a/042name.cc b/042name.cc
index 9177a33d..b66de8a2 100644
--- a/042name.cc
+++ b/042name.cc
@@ -19,7 +19,7 @@ recipe main [
 # todo: detect conditional defines
 
 :(after "Begin Transforms")
-Transform.push_back(transform_names);
+Transform.push_back(transform_names);  // idempotent
 
 :(before "End Globals")
 map<recipe_ordinal, map<string, long long int> > Name;
diff --git a/043new.cc b/043new.cc
index 233b49b5..db11ff96 100644
--- a/043new.cc
+++ b/043new.cc
@@ -50,7 +50,7 @@ case NEW: {
 
 //:: translate 'new' to 'allocate' instructions that take a size instead of a type
 :(after "Transform.push_back(check_instruction)")  // check_instruction will guard against direct 'allocate' instructions below
-Transform.push_back(transform_new_to_allocate);
+Transform.push_back(transform_new_to_allocate);  // idempotent
 
 :(code)
 void transform_new_to_allocate(const recipe_ordinal r) {
diff --git a/046closure_name.cc b/046closure_name.cc
index 11945c76..682c163f 100644
--- a/046closure_name.cc
+++ b/046closure_name.cc
@@ -36,7 +36,7 @@ recipe increment-counter [
 map<recipe_ordinal, recipe_ordinal> Surrounding_space;
 
 :(before "Transform.push_back(transform_names)")
-Transform.push_back(collect_surrounding_spaces);
+Transform.push_back(collect_surrounding_spaces);  // idempotent
 
 :(code)
 void collect_surrounding_spaces(const recipe_ordinal r) {
diff --git a/048check_type_by_name.cc b/048check_type_by_name.cc
index 7bed4b22..8a83c5f4 100644
--- a/048check_type_by_name.cc
+++ b/048check_type_by_name.cc
@@ -15,7 +15,7 @@ recipe main [
 +error: main: x used with multiple types
 
 :(before "Transform.push_back(transform_names)")
-Transform.push_back(check_types_by_name);
+Transform.push_back(check_types_by_name);  // idempotent
 
 :(code)
 void check_types_by_name(const recipe_ordinal r) {
diff --git a/052tangle.cc b/052tangle.cc
index c9f9f28c..36284904 100644
--- a/052tangle.cc
+++ b/052tangle.cc
@@ -55,7 +55,7 @@ else if (command == "after") {
 //: after all recipes are loaded, insert fragments at appropriate labels.
 
 :(after "Begin Transforms")
-Transform.push_back(insert_fragments);
+Transform.push_back(insert_fragments);  // NOT idempotent
 
 //: We might need to perform multiple passes, in case inserted fragments
 //: include more labels that need further insertions. Track which labels we've
@@ -136,7 +136,7 @@ bool is_waypoint(string label) {
 :(before "End Globals")
 bool Transform_check_insert_fragments_Ran = false;
 :(after "Transform.push_back(insert_fragments)")
-Transform.push_back(check_insert_fragments);
+Transform.push_back(check_insert_fragments);  // idempotent
 :(code)
 void check_insert_fragments(unused recipe_ordinal) {
   if (Transform_check_insert_fragments_Ran) return;
diff --git a/056recipe_header.cc b/056recipe_header.cc
index 33ccc44f..1558ca95 100644
--- a/056recipe_header.cc
+++ b/056recipe_header.cc
@@ -102,7 +102,7 @@ recipe add2 x:number, y:number -> z:number [
 +error: add2: replied with the wrong type at 'reply z'
 
 :(after "Transform.push_back(check_types_by_name)")
-Transform.push_back(check_header_products);
+Transform.push_back(check_header_products);  // idempotent
 
 :(code)
 void check_header_products(const recipe_ordinal r) {
@@ -140,7 +140,7 @@ recipe add2 x:number, y:number -> z:number [
 +mem: storing 8 in location 1
 
 :(before "Transform.push_back(check_header_products)")
-Transform.push_back(deduce_types_from_header);
+Transform.push_back(deduce_types_from_header);  // idempotent
 
 :(code)
 void deduce_types_from_header(const recipe_ordinal r) {
diff --git a/057static_dispatch.cc b/057static_dispatch.cc
index c2184c93..8a35f086 100644
--- a/057static_dispatch.cc
+++ b/057static_dispatch.cc
@@ -104,7 +104,7 @@ recipe test a:number, b:number -> z:number [
 
 //: after insert_fragments (tangle) and before computing operation ids
 :(before "Transform.push_back(deduce_types_from_header)")
-Transform.push_back(resolve_ambiguous_calls);
+Transform.push_back(resolve_ambiguous_calls);  // idempotent
 
 :(code)
 void resolve_ambiguous_calls(recipe_ordinal r) {