diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-07 05:19:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-07 05:19:29 +0000 |
commit | f376c99ea046718e8ef9a9d73960888eb763afed (patch) | |
tree | 5f10d2263da2bff78ec7371e1308b5ff2d2f7ed8 /llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | |
parent | fd548c96ccad6ade17b3aa8b594e4e00bb9a0ed4 (diff) | |
download | bcm5719-llvm-f376c99ea046718e8ef9a9d73960888eb763afed.tar.gz bcm5719-llvm-f376c99ea046718e8ef9a9d73960888eb763afed.zip |
rename hasVariableOperands() -> isVariadic(). Add some comments.
Evan, please review the comments I added to getNumDefs to make sure
that they are accurate, thx.
llvm-svn: 45687
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 499c2c7286b..df6503fd144 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -294,7 +294,7 @@ static const TargetRegisterClass *getInstrOperandRegClass( 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 @@ void ScheduleDAG::EmitNode(SDNode *Node, unsigned InstanceNo, 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 |