rename hasVariableOperands() -> isVariadic(). Add some comments.
Evan, please review the comments I added to getNumDefs to make sure
that they are accurate, thx.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45687 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index 499c2c7..df6503f 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
@@ -294,7 +294,7 @@
const TargetInstrDescriptor *II,
unsigned Op) {
if (Op >= II->getNumOperands()) {
- assert((II->Flags & M_VARIABLE_OPS)&& "Invalid operand # of instruction");
+ assert(II->isVariadic() && "Invalid operand # of instruction");
return NULL;
}
if (II->OpInfo[Op].isLookupPtrRegClass())
@@ -678,7 +678,7 @@
II.getImplicitDefs() != 0;
#ifndef NDEBUG
assert((II.getNumOperands() == NumMIOperands ||
- HasPhysRegOuts || II.hasVariableOperands()) &&
+ HasPhysRegOuts || II.isVariadic()) &&
"#operands for dag node doesn't match .td file!");
#endif