[llvm] r352212 - [TblGen][NFC] Fix documentation formatting
Javed Absar via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 25 08:17:57 PST 2019
Author: javed.absar
Date: Fri Jan 25 08:17:57 2019
New Revision: 352212
URL: http://llvm.org/viewvc/llvm-project?rev=352212&view=rev
Log:
[TblGen][NFC] Fix documentation formatting
Modified:
llvm/trunk/docs/TableGen/LangIntro.rst
Modified: llvm/trunk/docs/TableGen/LangIntro.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/TableGen/LangIntro.rst?rev=352212&r1=352211&r2=352212&view=diff
==============================================================================
--- llvm/trunk/docs/TableGen/LangIntro.rst (original)
+++ llvm/trunk/docs/TableGen/LangIntro.rst Fri Jan 25 08:17:57 2019
@@ -263,14 +263,10 @@ supported include:
one can use !cond. !cond returns 'val1' if the result of 'int' or 'bit'
operator 'condition1' is nonzero. Otherwise, it checks 'condition2'.
If 'condition2' is nonzero, returns 'val2', and so on.
- If all conditions are zero, it reports an error.
+ If all conditions are zero, it reports an error.
- Below is an example to convert an integer 'x' into a string:
-
- !cond(!lt(x,0) : "Negative",
- !eq(x,0) : "Zero",
- !eq(x,1) : "One,
- 1 : "MoreThanOne")
+ For example, to convert an integer 'x' into a string:
+ !cond(!lt(x,0) : "negative", !eq(x,0) : "zero", 1 : "positive")
``!eq(a,b)``
'bit 1' if string a is equal to string b, 0 otherwise. This only operates
More information about the llvm-commits
mailing list