From 07eba05a610bb1711c2d9e798ad72df0ddf90249 Mon Sep 17 00:00:00 2001 From: David Greene Date: Mon, 8 Jun 2009 17:00:34 +0000 Subject: Add a !regmatch operator to do pattern matching in TableGen. llvm-svn: 73074 --- llvm/docs/TableGenFundamentals.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/docs/TableGenFundamentals.html') diff --git a/llvm/docs/TableGenFundamentals.html b/llvm/docs/TableGenFundamentals.html index bd427116a16..2e74352010f 100644 --- a/llvm/docs/TableGenFundamentals.html +++ b/llvm/docs/TableGenFundamentals.html @@ -414,6 +414,9 @@ aborts with an error.
!subst(a, b, c)
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.
+
!regmatch(a, b)
+
An integer {0,1} indicating whether string 'b' matched regular expression +'a.'
!foreach(a, b, c)
For each member 'b' of dag or list 'a' apply operator 'c.' 'b' is a dummy variable that should be declared as a member variable of an instantiated -- cgit v1.2.3