diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-07-28 17:15:12 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-07-28 17:15:12 +0000 |
commit | d760de0b325ef65dfcf7e0d4b6e72a7f02c17725 (patch) | |
tree | cf57940135a1a8a646749d985704d49479d1eeb2 /llvm/lib/CodeGen/MIRParser/MIParser.cpp | |
parent | e78a34757eaf0ed20e30aaaef09d60b4a00ec8c2 (diff) | |
download | bcm5719-llvm-d760de0b325ef65dfcf7e0d4b6e72a7f02c17725.tar.gz bcm5719-llvm-d760de0b325ef65dfcf7e0d4b6e72a7f02c17725.zip |
[MIRParser] Accept unsized generic instructions.
Since r276158, we require generic instructions to have a sized type.
G_BR doesn't; relax the restriction.
llvm-svn: 277006
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRParser/MIParser.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp index 1ec3680d9d2..f49b524a535 100644 --- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp +++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp @@ -130,8 +130,7 @@ public: bool parseIRConstant(StringRef::iterator Loc, StringRef Source, const Constant *&C); bool parseIRConstant(StringRef::iterator Loc, const Constant *&C); - bool parseLowLevelType(StringRef::iterator Loc, LLT &Ty, - bool MustBeSized = true); + bool parseLowLevelType(StringRef::iterator Loc, LLT &Ty); bool parseTypedImmediateOperand(MachineOperand &Dest); bool parseFPImmediateOperand(MachineOperand &Dest); bool parseMBBReference(MachineBasicBlock *&MBB); @@ -1039,11 +1038,8 @@ bool MIParser::parseIRConstant(StringRef::iterator Loc, const Constant *&C) { return false; } -bool MIParser::parseLowLevelType(StringRef::iterator Loc, LLT &Ty, - bool MustBeSized) { +bool MIParser::parseLowLevelType(StringRef::iterator Loc, LLT &Ty) { if (Token.is(MIToken::Identifier) && Token.stringValue() == "unsized") { - if (MustBeSized) - return error(Loc, "expected pN, sN or <N x sM> for sized GlobalISel type"); lex(); Ty = LLT::unsized(); return false; |