diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
commit | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch) | |
tree | 012bb94d777798f1f56ac1cec429509766d05181 /contrib/libs/llvm12/utils/TableGen/GlobalISel | |
parent | 6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff) | |
download | ydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/llvm12/utils/TableGen/GlobalISel')
6 files changed, 17 insertions, 17 deletions
diff --git a/contrib/libs/llvm12/utils/TableGen/GlobalISel/CodeExpander.cpp b/contrib/libs/llvm12/utils/TableGen/GlobalISel/CodeExpander.cpp index 3ebb293f46..43efd58f02 100644 --- a/contrib/libs/llvm12/utils/TableGen/GlobalISel/CodeExpander.cpp +++ b/contrib/libs/llvm12/utils/TableGen/GlobalISel/CodeExpander.cpp @@ -58,15 +58,15 @@ void CodeExpander::emit(raw_ostream &OS) const { // Warn if we split because no terminator was found. StringRef EndVar = StartVar.drop_front(2 /* ${ */ + Var.size()); if (EndVar.empty()) { - PrintWarning(Loc, "Unterminated expansion '${" + Var + "'"); - PrintNote("Code: [{" + Code + "}]"); + PrintWarning(Loc, "Unterminated expansion '${" + Var + "'"); + PrintNote("Code: [{" + Code + "}]"); } auto ValueI = Expansions.find(Var); if (ValueI == Expansions.end()) { - PrintError(Loc, - "Attempt to expand an undeclared variable '" + Var + "'"); - PrintNote("Code: [{" + Code + "}]"); + PrintError(Loc, + "Attempt to expand an undeclared variable '" + Var + "'"); + PrintNote("Code: [{" + Code + "}]"); } if (ShowExpansions) OS << "/*$" << Var << "{*/"; @@ -76,8 +76,8 @@ void CodeExpander::emit(raw_ostream &OS) const { continue; } - PrintWarning(Loc, "Assuming missing escape character: \\$"); - PrintNote("Code: [{" + Code + "}]"); + PrintWarning(Loc, "Assuming missing escape character: \\$"); + PrintNote("Code: [{" + Code + "}]"); OS << "$"; Current = Current.drop_front(1); } diff --git a/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchDag.cpp b/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchDag.cpp index 7e037dd03b..1a4bd0a7b5 100644 --- a/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchDag.cpp +++ b/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchDag.cpp @@ -41,7 +41,7 @@ void GIMatchDag::writeDOTGraph(raw_ostream &OS, StringRef ID) const { SmallVector<std::pair<unsigned, StringRef>, 8> ToPrint; for (const auto &Assignment : N->user_assigned_operand_names()) ToPrint.emplace_back(Assignment.first, Assignment.second); - llvm::sort(ToPrint); + llvm::sort(ToPrint); StringRef Separator = ""; for (const auto &Assignment : ToPrint) { OS << Separator << "$" << Assignment.second << "=getOperand(" diff --git a/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchDagInstr.cpp b/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchDagInstr.cpp index ad9fbea8f8..250d35733d 100644 --- a/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchDagInstr.cpp +++ b/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchDagInstr.cpp @@ -27,7 +27,7 @@ void GIMatchDagInstr::print(raw_ostream &OS) const { SmallVector<std::pair<unsigned, StringRef>, 8> ToPrint; for (const auto &Assignment : UserAssignedNamesForOperands) ToPrint.emplace_back(Assignment.first, Assignment.second); - llvm::sort(ToPrint); + llvm::sort(ToPrint); StringRef Separator = ""; for (const auto &Assignment : ToPrint) { OS << Separator << "$" << Assignment.second << "=getOperand(" diff --git a/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchTree.cpp b/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchTree.cpp index d08a83333c..1991ca5b20 100644 --- a/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchTree.cpp +++ b/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchTree.cpp @@ -121,7 +121,7 @@ void GIMatchTreeBuilderLeafInfo::declareInstr(const GIMatchDagInstr *Instr, unsi Info.bindOperandVariable(VarBinding.second, ID, VarBinding.first); // Clear the bit indicating we haven't visited this instr. - const auto &NodeI = find(MatchDag.instr_nodes(), Instr); + const auto &NodeI = find(MatchDag.instr_nodes(), Instr); assert(NodeI != MatchDag.instr_nodes_end() && "Instr isn't in this DAG"); unsigned InstrIdx = MatchDag.getInstrNodeIdx(NodeI); RemainingInstrNodes.reset(InstrIdx); @@ -265,10 +265,10 @@ void GIMatchTreeBuilder::runStep() { LLVM_DEBUG(dbgs() << "Leaf contains multiple rules, drop after the first " "fully tested rule\n"); auto FirstFullyTested = - llvm::find_if(Leaves, [](const GIMatchTreeBuilderLeafInfo &X) { - return X.isFullyTraversed() && X.isFullyTested() && - !X.getMatchDag().hasPostMatchPredicate(); - }); + llvm::find_if(Leaves, [](const GIMatchTreeBuilderLeafInfo &X) { + return X.isFullyTraversed() && X.isFullyTested() && + !X.getMatchDag().hasPostMatchPredicate(); + }); if (FirstFullyTested != Leaves.end()) FirstFullyTested++; @@ -454,7 +454,7 @@ void GIMatchTreeOpcodePartitioner::repartition( // predicates for one instruction in the same DAG. That should be // impossible. assert(AllOpcodes && "Conflicting opcode predicates"); - append_range(OpcodesForThisPredicate, OpcodeP->getInstrs()); + append_range(OpcodesForThisPredicate, OpcodeP->getInstrs()); } for (const CodeGenInstruction *Expected : OpcodesForThisPredicate) { diff --git a/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchTree.h b/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchTree.h index bf41a2e0e2..4de73e37e6 100644 --- a/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchTree.h +++ b/contrib/libs/llvm12/utils/TableGen/GlobalISel/GIMatchTree.h @@ -353,7 +353,7 @@ public: void declareOperand(unsigned InstrID, unsigned OpIdx); GIMatchTreeInstrInfo *getInstrInfo(unsigned ID) const { - return InstrIDToInfo.lookup(ID); + return InstrIDToInfo.lookup(ID); } void dump(raw_ostream &OS) const { diff --git a/contrib/libs/llvm12/utils/TableGen/GlobalISel/ya.make b/contrib/libs/llvm12/utils/TableGen/GlobalISel/ya.make index 4a072b7300..803b878bc4 100644 --- a/contrib/libs/llvm12/utils/TableGen/GlobalISel/ya.make +++ b/contrib/libs/llvm12/utils/TableGen/GlobalISel/ya.make @@ -12,7 +12,7 @@ LICENSE(Apache-2.0 WITH LLVM-exception) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) PEERDIR( - contrib/libs/llvm12 + contrib/libs/llvm12 ) ADDINCL( |