diff options
author | Heejin Ahn <aheejin@gmail.com> | 2018-05-05 07:05:51 +0000 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2018-05-05 07:05:51 +0000 |
commit | c2ad0968450085bb39b1750d3c43960610e15816 (patch) | |
tree | fd89e548ffd64fade9527dcdaf205e82d13a9b59 /llvm/lib/CodeGen/MIRParser/MILexer.h | |
parent | 2569f3eb8030752ff58866eba3b5c6779943f19b (diff) | |
download | bcm5719-llvm-c2ad0968450085bb39b1750d3c43960610e15816.tar.gz bcm5719-llvm-c2ad0968450085bb39b1750d3c43960610e15816.zip |
[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
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MILexer.h')
-rw-r--r-- | llvm/lib/CodeGen/MIRParser/MILexer.h | 3 |
1 files changed, 0 insertions, 3 deletions
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, |