From c2ad0968450085bb39b1750d3c43960610e15816 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Sat, 5 May 2018 07:05:51 +0000 Subject: [MIRParser] Allow register class names in the form of integer/scalar Summary: The current code cannot handle register class names like 'i32', which is a valid register class name in WebAssembly. This patch removes special handling for integer/scalar/pointer type parsing and treats them as normal identifiers. Reviewers: thegameg Subscribers: jfb, dschuff, sbc100, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D45948 llvm-svn: 331586 --- llvm/lib/CodeGen/MIRParser/MILexer.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'llvm/lib/CodeGen/MIRParser/MILexer.h') diff --git a/llvm/lib/CodeGen/MIRParser/MILexer.h b/llvm/lib/CodeGen/MIRParser/MILexer.h index 0f89adcf70b..e21c71532f7 100644 --- a/llvm/lib/CodeGen/MIRParser/MILexer.h +++ b/llvm/lib/CodeGen/MIRParser/MILexer.h @@ -123,13 +123,10 @@ struct MIToken { // Identifier tokens Identifier, - IntegerType, NamedRegister, NamedVirtualRegister, MachineBasicBlockLabel, MachineBasicBlock, - PointerType, - ScalarType, StackObject, FixedStackObject, NamedGlobalValue, -- cgit v1.2.3