diff options
author | David Greene <greened@obbligato.org> | 2010-01-05 19:11:42 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2010-01-05 19:11:42 +0000 |
commit | 297bfe6d711285bc9d80a3bacb3bb363c0e444c4 (patch) | |
tree | e4d284df05e6dd9390954f2d96e6f17e191592cb /llvm/docs/TableGenFundamentals.html | |
parent | a318efd1f21a21358f45a201f7b6cb2b8b118ec0 (diff) | |
download | bcm5719-llvm-297bfe6d711285bc9d80a3bacb3bb363c0e444c4.tar.gz bcm5719-llvm-297bfe6d711285bc9d80a3bacb3bb363c0e444c4.zip |
Add an !eq() operator to TableGen. It operates on strings only.
Use !cast<string>() to compare other types of objects.
llvm-svn: 92754
Diffstat (limited to 'llvm/docs/TableGenFundamentals.html')
-rw-r--r-- | llvm/docs/TableGenFundamentals.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/docs/TableGenFundamentals.html b/llvm/docs/TableGenFundamentals.html index ade4bf67df5..457bb62060d 100644 --- a/llvm/docs/TableGenFundamentals.html +++ b/llvm/docs/TableGenFundamentals.html @@ -423,6 +423,10 @@ class. This operation is analogous to $(foreach) in GNU make.</dd> <dd>An integer {0,1} indicating whether list 'a' is empty.</dd> <dt><tt>!if(a,b,c)</tt></dt> <dd>'b' if the result of integer operator 'a' is nonzero, 'c' otherwise.</dd> +<dt><tt>!eq(a,b)</tt></dt> + <dd>Integer one if string a is equal to string b, zero otherwise. This + only operates on string objects. Use !cast<string> to compare other + types of objects.</dd> </dl> <p>Note that all of the values have rules specifying how they convert to values |