summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2018-03-09 12:24:06 +0000
committerNicolai Haehnle <nhaehnle@gmail.com>2018-03-09 12:24:06 +0000
commitb537605956400d62729cebc9d5d053c45aa5f4c5 (patch)
tree309691df62219727c021261ba83e0dd95a1082f3 /llvm/docs
parent47c3472c412b79ccd9df9b1461910127df0d1d97 (diff)
downloadbcm5719-llvm-b537605956400d62729cebc9d5d053c45aa5f4c5.tar.gz
bcm5719-llvm-b537605956400d62729cebc9d5d053c45aa5f4c5.zip
TableGen: add !isa operation
Change-Id: Iddb724c3ae706d82933a2d82c91d07e0e36b30e3 Differential revision: https://reviews.llvm.org/D44105 llvm-svn: 327117
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/TableGen/LangIntro.rst3
-rw-r--r--llvm/docs/TableGen/LangRef.rst1
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/docs/TableGen/LangIntro.rst b/llvm/docs/TableGen/LangIntro.rst
index 67000fa03c6..c4a7a34c025 100644
--- a/llvm/docs/TableGen/LangIntro.rst
+++ b/llvm/docs/TableGen/LangIntro.rst
@@ -208,6 +208,9 @@ supported include:
is a special case in that the argument can be an int or a record. In the
latter case, the record's name is returned.
+``!isa<type>(a)``
+ Returns an integer: 1 if 'a' is dynamically of the given type, 0 otherwise.
+
``!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.
diff --git a/llvm/docs/TableGen/LangRef.rst b/llvm/docs/TableGen/LangRef.rst
index 5da852879d2..89996f35822 100644
--- a/llvm/docs/TableGen/LangRef.rst
+++ b/llvm/docs/TableGen/LangRef.rst
@@ -99,6 +99,7 @@ wide variety of meanings:
:!add !shl !sra !srl !and
:!or !empty !subst !foreach !strconcat
:!cast !listconcat !size !foldl
+ :!isa
Syntax
OpenPOWER on IntegriCloud