[llvm] r293376 - [globalisel] Rename emitCxxPredicatesExpr() following post-commit review of r293172

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 28 03:10:42 PST 2017


Author: dsanders
Date: Sat Jan 28 05:10:42 2017
New Revision: 293376

URL: http://llvm.org/viewvc/llvm-project?rev=293376&view=rev
Log:
[globalisel] Rename emitCxxPredicatesExpr() following post-commit review of r293172

It's now emitCxxPredicateListExpr() to better match the class name.


Modified:
    llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp

Modified: llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp?rev=293376&r1=293375&r2=293376&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp Sat Jan 28 05:10:42 2017
@@ -142,7 +142,7 @@ public:
 
   /// Emit a C++ expression that tests whether all the predicates are met.
   template <class... Args>
-  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);




More information about the llvm-commits mailing list