diff --git a/docs/TableGenFundamentals.html b/docs/TableGenFundamentals.html index 6db1827b3be..45baf198454 100644 --- a/docs/TableGenFundamentals.html +++ b/docs/TableGenFundamentals.html @@ -37,6 +37,7 @@
TableGen supports the 'foreach' block, which textually replicates +the loop body, substituting iterator values for iterator references in the +body. Example:
+ ++foreach i = [0, 1, 2, 3] in { + def R#i : Register<...>; + def F#i : Register<...>; +} ++
This will create objects R0, R1, R2 and +R3. foreach blocks may be nested. If there is only +one item in the body the braces may be elided:
+ ++foreach i = [0, 1, 2, 3] in + def R#i : Register<...>; + ++