[llvm] r201035 - [docs] [tblgen] clarify that code fragments are just string literals

Sean Silva silvas at purdue.edu
Sat Feb 8 18:54:26 PST 2014


Author: silvas
Date: Sat Feb  8 20:54:26 2014
New Revision: 201035

URL: http://llvm.org/viewvc/llvm-project?rev=201035&view=rev
Log:
[docs] [tblgen] clarify that code fragments are just string literals

Fun fact: looking at the TableGen code (around TGParser.cpp:1166), the
only difference in handling is that adjacent regular string literals are
concatenated in the parser.

Modified:
    llvm/trunk/docs/TableGenFundamentals.rst

Modified: llvm/trunk/docs/TableGenFundamentals.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/TableGenFundamentals.rst?rev=201035&r1=201034&r2=201035&view=diff
==============================================================================
--- llvm/trunk/docs/TableGenFundamentals.rst (original)
+++ llvm/trunk/docs/TableGenFundamentals.rst Sat Feb  8 20:54:26 2014
@@ -289,7 +289,7 @@ supported include:
     string value
 
 ``[{ ... }]``
-    code fragment
+    usually called a "code fragment", but is just a multiline string literal
 
 ``[ X, Y, Z ]<type>``
     list value.  <type> is the type of the list element and is usually optional.





More information about the llvm-commits mailing list