forked from OSchip/llvm-project
Lexer Support for Multidefs
Add keyword support for multidefs. llvm-svn: 141231
This commit is contained in:
parent
87cf662fbd
commit
dd88abaa97
|
@ -228,6 +228,7 @@ tgtok::TokKind TGLexer::LexIdentifier() {
|
|||
|
||||
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;
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace tgtok {
|
|||
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.
|
||||
|
|
Loading…
Reference in New Issue