llvm.org GIT mirror llvm / 65da6fc
Tidy up. 80 columns. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154881 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 8 years ago
1 changed file(s) with 9 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
11801180 unsigned VariantCount = Target.getAsmParserVariantCount();
11811181 for (unsigned VC = 0; VC != VariantCount; ++VC) {
11821182 Record *AsmVariant = Target.getAsmParserVariant(VC);
1183 std::string CommentDelimiter = AsmVariant->getValueAsString("CommentDelimiter");
1183 std::string CommentDelimiter =
1184 AsmVariant->getValueAsString("CommentDelimiter");
11841185 std::string RegisterPrefix = AsmVariant->getValueAsString("RegisterPrefix");
11851186 int AsmVariantNo = AsmVariant->getValueAsInt("Variant");
11861187
12071208 // reject it. We reject aliases and ignore instructions for now.
12081209 if (OI.MINumOperands != 1) {
12091210 // FIXME: Should reject these. The ARM backend hits this with $lane
1210 // in a bunch of instructions. It is unclear what the right answer is.
1211 // in a bunch of instructions. The right answer is unclear.
12111212 DEBUG({
12121213 errs() << "warning: '" << CGI.TheDef->getName() << "': "
1213 << "ignoring instruction with multi-operand tied operand '"
1214 << OI.Name << "'\n";
1214 << "ignoring instruction with multi-operand tied operand '"
1215 << OI.Name << "'\n";
12151216 });
12161217 continue;
12171218 }
12471248 // If the tblgen -match-prefix option is specified (for tblgen hackers),
12481249 // filter the set of instruction aliases we consider, based on the target
12491250 // instruction.
1250 if (!StringRef(Alias->ResultInst->TheDef->getName()).startswith(
1251 MatchPrefix))
1251 if (!StringRef(Alias->ResultInst->TheDef->getName())
1252 .startswith( MatchPrefix))
12521253 continue;
12531254
12541255 OwningPtr II(new MatchableInfo(Alias));
18671868 SubtargetFeatureInfo &SFI = *it->second;
18681869
18691870 OS << " if (";
1870 std::string CondStorage = SFI.TheDef->getValueAsString("AssemblerCondString");
1871 std::string CondStorage =
1872 SFI.TheDef->getValueAsString("AssemblerCondString");
18711873 StringRef Conds = CondStorage;
18721874 std::pair Comma = Conds.split(',');
18731875 bool First = true;