]> granicus.if.org Git - llvm/commitdiff
[globalisel] Rename emitCxxPredicatesExpr() following post-commit review of r293172
authorDaniel Sanders <daniel_l_sanders@apple.com>
Sat, 28 Jan 2017 11:10:42 +0000 (11:10 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Sat, 28 Jan 2017 11:10:42 +0000 (11:10 +0000)
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

utils/TableGen/GlobalISelEmitter.cpp

index a9f4d7aae23dbb9bba28558c7e21a55ce7fad5da..2682e26fc8c9b82350fffb43dc2aea0df25210df 100644 (file)
@@ -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);