summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenInstruction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-07 05:19:29 +0000
committerChris Lattner <sabre@nondot.org>2008-01-07 05:19:29 +0000
commitf376c99ea046718e8ef9a9d73960888eb763afed (patch)
tree5f10d2263da2bff78ec7371e1308b5ff2d2f7ed8 /llvm/utils/TableGen/CodeGenInstruction.cpp
parentfd548c96ccad6ade17b3aa8b594e4e00bb9a0ed4 (diff)
downloadbcm5719-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/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp
index ea01d1b0e29..daab0654a41 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.cpp
+++ b/llvm/utils/TableGen/CodeGenInstruction.cpp
@@ -99,7 +99,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
mayHaveSideEffects = R->getValueAsBit("mayHaveSideEffects");
neverHasSideEffects = R->getValueAsBit("neverHasSideEffects");
hasOptionalDef = false;
- hasVariableNumberOfOperands = false;
+ isVariadic = false;
if (mayHaveSideEffects && neverHasSideEffects)
throw R->getName() +
@@ -159,7 +159,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
else if (Rec->isSubClassOf("OptionalDefOperand"))
hasOptionalDef = true;
} else if (Rec->getName() == "variable_ops") {
- hasVariableNumberOfOperands = true;
+ isVariadic = true;
continue;
} else if (!Rec->isSubClassOf("RegisterClass") &&
Rec->getName() != "ptr_rc")
OpenPOWER on IntegriCloud