[llvm] ef2d2a1 - [TableGen] Rename InFlag/OutFlag->InGlue/OutGlue. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 2 14:14:18 PDT 2023
Author: Craig Topper
Date: 2023-04-02T14:12:10-07:00
New Revision: ef2d2a11e390f6d58eb5af0d300ee2dcc0d418db
URL: https://github.com/llvm/llvm-project/commit/ef2d2a11e390f6d58eb5af0d300ee2dcc0d418db
DIFF: https://github.com/llvm/llvm-project/commit/ef2d2a11e390f6d58eb5af0d300ee2dcc0d418db.diff
LOG: [TableGen] Rename InFlag/OutFlag->InGlue/OutGlue. NFC
Flag was renamed to Glue a long time ago, but rename was incomplete.
Added:
Modified:
llvm/utils/TableGen/DAGISelMatcher.h
llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
llvm/utils/TableGen/DAGISelMatcherOpt.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/DAGISelMatcher.h b/llvm/utils/TableGen/DAGISelMatcher.h
index f883bf3f2b9a..716cff6e2bdc 100644
--- a/llvm/utils/TableGen/DAGISelMatcher.h
+++ b/llvm/utils/TableGen/DAGISelMatcher.h
@@ -1037,8 +1037,8 @@ class EmitNodeMatcherCommon : public Matcher {
bool hasChain() const { return HasChain; }
- bool hasInFlag() const { return HasInGlue; }
- bool hasOutFlag() const { return HasOutGlue; }
+ bool hasInGlue() const { return HasInGlue; }
+ bool hasOutGlue() const { return HasOutGlue; }
bool hasMemRefs() const { return HasMemRefs; }
int getNumFixedArityOperands() const { return NumFixedArityOperands; }
@@ -1059,11 +1059,11 @@ class EmitNodeMatcher : public EmitNodeMatcherCommon {
EmitNodeMatcher(const std::string &opcodeName,
ArrayRef<MVT::SimpleValueType> vts,
ArrayRef<unsigned> operands,
- bool hasChain, bool hasInFlag, bool hasOutFlag,
+ bool hasChain, bool hasInGlue, bool hasOutGlue,
bool hasmemrefs,
int numfixedarityoperands, unsigned firstresultslot)
: EmitNodeMatcherCommon(opcodeName, vts, operands, hasChain,
- hasInFlag, hasOutFlag, hasmemrefs,
+ hasInGlue, hasOutGlue, hasmemrefs,
numfixedarityoperands, false),
FirstResultSlot(firstresultslot) {}
@@ -1082,11 +1082,11 @@ class MorphNodeToMatcher : public EmitNodeMatcherCommon {
MorphNodeToMatcher(const std::string &opcodeName,
ArrayRef<MVT::SimpleValueType> vts,
ArrayRef<unsigned> operands,
- bool hasChain, bool hasInFlag, bool hasOutFlag,
+ bool hasChain, bool hasInGlue, bool hasOutGlue,
bool hasmemrefs,
int numfixedarityoperands, const PatternToMatch &pattern)
: EmitNodeMatcherCommon(opcodeName, vts, operands, hasChain,
- hasInFlag, hasOutFlag, hasmemrefs,
+ hasInGlue, hasOutGlue, hasmemrefs,
numfixedarityoperands, true),
Pattern(pattern) {
}
diff --git a/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp b/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
index 2b876c2f7496..c9e8f496a24c 100644
--- a/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
@@ -778,8 +778,8 @@ EmitMatcher(const Matcher *N, const unsigned Indent, unsigned CurrentIdx,
OS << ", TARGET_VAL(" << EN->getOpcodeName() << "), 0";
if (EN->hasChain()) OS << "|OPFL_Chain";
- if (EN->hasInFlag()) OS << "|OPFL_GlueInput";
- if (EN->hasOutFlag()) OS << "|OPFL_GlueOutput";
+ if (EN->hasInGlue()) OS << "|OPFL_GlueInput";
+ if (EN->hasOutGlue()) OS << "|OPFL_GlueOutput";
if (EN->hasMemRefs()) OS << "|OPFL_MemRefs";
if (EN->getNumFixedArityOperands() != -1)
OS << "|OPFL_Variadic" << EN->getNumFixedArityOperands();
diff --git a/llvm/utils/TableGen/DAGISelMatcherOpt.cpp b/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
index 7e920f235987..3a786558996c 100644
--- a/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
+++ b/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
@@ -108,7 +108,7 @@ static void ContractNodes(std::unique_ptr<Matcher> &MatcherPtr,
// NOTE: Strictly speaking, we don't have to check for glue here
// because the code in the pattern generator doesn't handle it right. We
// do it anyway for thoroughness.
- if (!EN->hasOutFlag() &&
+ if (!EN->hasOutGlue() &&
Pattern.getSrcPattern()->NodeHasProperty(SDNPOutGlue, CGP))
ResultsMatch = false;
@@ -125,8 +125,8 @@ static void ContractNodes(std::unique_ptr<Matcher> &MatcherPtr,
const SmallVectorImpl<MVT::SimpleValueType> &VTs = EN->getVTList();
const SmallVectorImpl<unsigned> &Operands = EN->getOperandList();
MatcherPtr.reset(new MorphNodeToMatcher(
- EN->getOpcodeName(), VTs, Operands, EN->hasChain(), EN->hasInFlag(),
- EN->hasOutFlag(), EN->hasMemRefs(), EN->getNumFixedArityOperands(),
+ EN->getOpcodeName(), VTs, Operands, EN->hasChain(), EN->hasInGlue(),
+ EN->hasOutGlue(), EN->hasMemRefs(), EN->getNumFixedArityOperands(),
Pattern));
return;
}
More information about the llvm-commits
mailing list