summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/TGLexer.cpp
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/lib/TableGen/TGLexer.cpp
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/lib/TableGen/TGLexer.cpp')
-rw-r--r--llvm/lib/TableGen/TGLexer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/TableGen/TGLexer.cpp b/llvm/lib/TableGen/TGLexer.cpp
index 9d8d693f975..222aac25f9d 100644
--- a/llvm/lib/TableGen/TGLexer.cpp
+++ b/llvm/lib/TableGen/TGLexer.cpp
@@ -467,6 +467,7 @@ tgtok::TokKind TGLexer::LexExclaim() {
StringSwitch<tgtok::TokKind>(StringRef(Start, CurPtr - Start))
.Case("eq", tgtok::XEq)
.Case("if", tgtok::XIf)
+ .Case("isa", tgtok::XIsA)
.Case("head", tgtok::XHead)
.Case("tail", tgtok::XTail)
.Case("size", tgtok::XSize)
OpenPOWER on IntegriCloud