summaryrefslogtreecommitdiffstats
path: root/llvm/docs/TableGenFundamentals.html
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-06-17 00:31:36 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-06-17 00:31:36 +0000
commit4d1d798736bf8c1481ffc1eece281c9b665e3006 (patch)
tree9f0bf33b15df3e4508b5e687d89faaac5adab86b /llvm/docs/TableGenFundamentals.html
parent17504bea33ed22cebfaf398e3a8f7ce97924c062 (diff)
downloadbcm5719-llvm-4d1d798736bf8c1481ffc1eece281c9b665e3006.tar.gz
bcm5719-llvm-4d1d798736bf8c1481ffc1eece281c9b665e3006.zip
For a tablegen expression such as !if(a,b,c), let 'a'
be evaluated for 'bit' operators llvm-svn: 106185
Diffstat (limited to 'llvm/docs/TableGenFundamentals.html')
-rw-r--r--llvm/docs/TableGenFundamentals.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/docs/TableGenFundamentals.html b/llvm/docs/TableGenFundamentals.html
index 3410cacb62d..f7a082d7050 100644
--- a/llvm/docs/TableGenFundamentals.html
+++ b/llvm/docs/TableGenFundamentals.html
@@ -422,7 +422,8 @@ class. This operation is analogous to $(foreach) in GNU make.</dd>
<dt><tt>!null(a)</tt></dt>
<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>
+ <dd>'b' if the result of 'int' or 'bit' 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, int and bit objects. Use !cast<string> to
OpenPOWER on IntegriCloud