[llvm-commits] [llvm] r141231 - in /llvm/trunk/lib/TableGen: TGLexer.cpp TGLexer.h
David Greene
greened at obbligato.org
Wed Oct 5 15:42:42 PDT 2011
Author: greened
Date: Wed Oct 5 17:42:35 2011
New Revision: 141231
URL: http://llvm.org/viewvc/llvm-project?rev=141231&view=rev
Log:
Lexer Support for Multidefs
Add keyword support for multidefs.
Modified:
llvm/trunk/lib/TableGen/TGLexer.cpp
llvm/trunk/lib/TableGen/TGLexer.h
Modified: llvm/trunk/lib/TableGen/TGLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/TGLexer.cpp?rev=141231&r1=141230&r2=141231&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/TGLexer.cpp (original)
+++ llvm/trunk/lib/TableGen/TGLexer.cpp Wed Oct 5 17:42:35 2011
@@ -228,6 +228,7 @@
if (Len == 5 && !memcmp(IdentStart, "class", 5)) return tgtok::Class;
if (Len == 3 && !memcmp(IdentStart, "def", 3)) return tgtok::Def;
+ if (Len == 8 && !memcmp(IdentStart, "multidef", 3)) return tgtok::MultiDef;
if (Len == 4 && !memcmp(IdentStart, "defm", 4)) return tgtok::Defm;
if (Len == 10 && !memcmp(IdentStart, "multiclass", 10))
return tgtok::MultiClass;
Modified: llvm/trunk/lib/TableGen/TGLexer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/TGLexer.h?rev=141231&r1=141230&r2=141231&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/TGLexer.h (original)
+++ llvm/trunk/lib/TableGen/TGLexer.h Wed Oct 5 17:42:35 2011
@@ -41,7 +41,7 @@
equal, question, // = ?
// Keywords.
- Bit, Bits, Class, Code, Dag, Def, Defm, Field, In, Int, Let, List,
+ Bit, Bits, Class, Code, Dag, Def, MultiDef, Defm, Field, In, Int, Let, List,
MultiClass, String,
// !keywords.
More information about the llvm-commits
mailing list