aboutsummaryrefslogtreecommitdiff
path: root/docs/TableGenFundamentals.html
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-06-08 23:05:37 +0000
committerDavid Greene <greened@obbligato.org>2009-06-08 23:05:37 +0000
commit0d973999f3a7973e680e12acdf6def9d769911b6 (patch)
treed26340225fa5c4ca70833825a305da557017db5e /docs/TableGenFundamentals.html
parent2e7ccfce98b925d07788fdd08cccc9ddb3d7004b (diff)
Add a !patsubst operator. Use on string types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73099 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/TableGenFundamentals.html')
-rw-r--r--docs/TableGenFundamentals.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/TableGenFundamentals.html b/docs/TableGenFundamentals.html
index 147b5be3c4..5d64a08952 100644
--- a/docs/TableGenFundamentals.html
+++ b/docs/TableGenFundamentals.html
@@ -417,6 +417,10 @@ aborts with an error. </dd>
<dt><tt>!subst(a, b, c)</tt></dt>
<dd>If 'a' and 'b' are of string type or are symbol references, substitute
'b' for 'a' in 'c.' This operation is analogous to $(subst) in GNU make.</dd>
+<dt><tt>!patsubst(a, b, c)</tt></dt>
+ <dd>patch regular expression 'a' against string 'c' and substitute string 'b' on
+a match. 'b' may contain placeholders of the form $&lt;digit&gt;, where
+&lt;digit&gt; is a number 1-9.</dd>
<dt><tt>!regmatch(a, b)</tt></dt>
<dd>An integer {0,1} indicating whether string 'b' matched regular expression
'a.'</dd>