Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit f6a8a51

Browse files
committed
[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
1 parent 5a43f49 commit f6a8a51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/TableGen/GlobalISelEmitter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ template <class PredicateTy> class PredicateListMatcher {
142142

143143
/// Emit a C++ expression that tests whether all the predicates are met.
144144
template <class... Args>
145-
void emitCxxPredicatesExpr(raw_ostream &OS, Args &&... args) const {
145+
void emitCxxPredicateListExpr(raw_ostream &OS, Args &&... args) const {
146146
if (Predicates.empty()) {
147147
OS << "true";
148148
return;
@@ -228,7 +228,7 @@ class OperandMatcher : public PredicateListMatcher<OperandPredicateMatcher> {
228228
/// InsnVarName matches all the predicate and all the operands.
229229
void emitCxxPredicateExpr(raw_ostream &OS, const StringRef InsnVarName) const {
230230
OS << "(";
231-
emitCxxPredicatesExpr(OS, InsnVarName, OpIdx);
231+
emitCxxPredicateListExpr(OS, InsnVarName, OpIdx);
232232
OS << ")";
233233
}
234234
};
@@ -284,7 +284,7 @@ class InstructionMatcher
284284
/// Emit a C++ expression that tests whether the instruction named in
285285
/// InsnVarName matches all the predicates and all the operands.
286286
void emitCxxPredicateExpr(raw_ostream &OS, const StringRef InsnVarName) const {
287-
emitCxxPredicatesExpr(OS, InsnVarName);
287+
emitCxxPredicateListExpr(OS, InsnVarName);
288288
for (const auto &Operand : Operands) {
289289
OS << " && (";
290290
Operand.emitCxxPredicateExpr(OS, InsnVarName);

0 commit comments

Comments
 (0)