diff options
author | David Greene <greened@obbligato.org> | 2009-05-14 21:22:49 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-05-14 21:22:49 +0000 |
commit | e6c27de069225e1122c78385ad22a2ff656db8e6 (patch) | |
tree | bf1ff9c77caee5b28119d5760b34a6fd530023ed /docs | |
parent | d418c1b768b5ff26afe05a5ce84d920bbbc99583 (diff) |
Implement !cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-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 |