diff options
Diffstat (limited to 'docs/TableGenFundamentals.html')
-rw-r--r-- | docs/TableGenFundamentals.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/TableGenFundamentals.html b/docs/TableGenFundamentals.html index 8cc6f90eac..48fdd2a201 100644 --- a/docs/TableGenFundamentals.html +++ b/docs/TableGenFundamentals.html @@ -398,11 +398,12 @@ supported include:</p> <dt><tt>!strconcat(a, b)</tt></dt> <dd>A string value that is the result of concatenating the 'a' and 'b' strings.</dd> +<dt><tt>!cast<type>(a)</tt></dt> + <dd>A symbol of type <em>type</em> obtained by looking up the string 'a' in +the symbol table. If the type of 'a' does not match <em>type</em>, TableGen +aborts with an error. </dd> <dt><tt>!nameconcat<type>(a, b)</tt></dt> - <dd>A value that is the result of concatenating the 'a' and 'b' - strings and looking up the resulting name in the symbol table. The symbol type - determines the type of the resulting value. If the symbol is not found - or the symbol type does not match 'type,' TableGen emits an error and aborts.</dd> + <dd>Shorthand for !cast<type>(!strconcat(a, b))</dd> </dl> <p>Note that all of the values have rules specifying how they convert to values |