From: Daniel Sanders Date: Sat, 28 Jan 2017 11:10:42 +0000 (+0000) Subject: [globalisel] Rename emitCxxPredicatesExpr() following post-commit review of r293172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6a8a51f072a9e720bb237208e1738b49b884440;p=llvm [globalisel] Rename emitCxxPredicatesExpr() following post-commit review of r293172 It's now emitCxxPredicateListExpr() to better match the class name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293376 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/GlobalISelEmitter.cpp b/utils/TableGen/GlobalISelEmitter.cpp index a9f4d7aae23..2682e26fc8c 100644 --- a/utils/TableGen/GlobalISelEmitter.cpp +++ b/utils/TableGen/GlobalISelEmitter.cpp @@ -142,7 +142,7 @@ public: /// Emit a C++ expression that tests whether all the predicates are met. template - void emitCxxPredicatesExpr(raw_ostream &OS, Args &&... args) const { + void emitCxxPredicateListExpr(raw_ostream &OS, Args &&... args) const { if (Predicates.empty()) { OS << "true"; return; @@ -228,7 +228,7 @@ public: /// InsnVarName matches all the predicate and all the operands. void emitCxxPredicateExpr(raw_ostream &OS, const StringRef InsnVarName) const { OS << "("; - emitCxxPredicatesExpr(OS, InsnVarName, OpIdx); + emitCxxPredicateListExpr(OS, InsnVarName, OpIdx); OS << ")"; } }; @@ -284,7 +284,7 @@ public: /// Emit a C++ expression that tests whether the instruction named in /// InsnVarName matches all the predicates and all the operands. void emitCxxPredicateExpr(raw_ostream &OS, const StringRef InsnVarName) const { - emitCxxPredicatesExpr(OS, InsnVarName); + emitCxxPredicateListExpr(OS, InsnVarName); for (const auto &Operand : Operands) { OS << " && ("; Operand.emitCxxPredicateExpr(OS, InsnVarName);