summaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/SDNodeInfoEmitter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/TableGen/SDNodeInfoEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/SDNodeInfoEmitter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/SDNodeInfoEmitter.cpp b/llvm/utils/TableGen/SDNodeInfoEmitter.cpp
index 64f03dae83e7..e728c85d3e3b 100644
--- a/llvm/utils/TableGen/SDNodeInfoEmitter.cpp
+++ b/llvm/utils/TableGen/SDNodeInfoEmitter.cpp
@@ -67,7 +67,8 @@ static bool haveCompatibleDescriptions(const SDNodeInfo &N1,
// and sometimes differ between nodes sharing the same enum name.
constexpr unsigned PropMask = (1 << SDNPHasChain) | (1 << SDNPOutGlue) |
(1 << SDNPInGlue) | (1 << SDNPOptInGlue) |
- (1 << SDNPMemOperand) | (1 << SDNPVariadic);
+ (1 << SDNPMemOperand) | (1 << SDNPVariadic) |
+ (1 << SDNPMayHaveChain);
return (N1.getProperties() & PropMask) == (N2.getProperties() & PropMask);
}
@@ -312,6 +313,8 @@ static void emitDesc(raw_ostream &OS, StringRef EnumName,
OS << "|1<<SDNPVariadic";
if (Properties & (1 << SDNPMemOperand))
OS << "|1<<SDNPMemOperand";
+ if (Properties & (1 << SDNPMayHaveChain))
+ OS << "|1<<SDNPMayHaveChain";
OS << ", 0";
if (N.isStrictFP())