aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/CodeEmitterGen.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-01 04:03:32 +0000
committerChris Lattner <sabre@nondot.org>2010-11-01 04:03:32 +0000
commitc240bb0ede0541426254d0e0dc81d891beda4b22 (patch)
treefb12b77d1960864bcec0d5c0e82e0f99f26541cd /utils/TableGen/CodeEmitterGen.cpp
parent79b3cddfa2eeb9ed7f93daf8e4f3c3d87779c3ab (diff)
downloadexternal_llvm-c240bb0ede0541426254d0e0dc81d891beda4b22.zip
external_llvm-c240bb0ede0541426254d0e0dc81d891beda4b22.tar.gz
external_llvm-c240bb0ede0541426254d0e0dc81d891beda4b22.tar.bz2
factor the operand list (and related fields/operations) out of
CodeGenInstruction into its own helper class. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r--utils/TableGen/CodeEmitterGen.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp
index b7b62d5..6310752 100644
--- a/utils/TableGen/CodeEmitterGen.cpp
+++ b/utils/TableGen/CodeEmitterGen.cpp
@@ -158,21 +158,22 @@ void CodeEmitterGen::run(raw_ostream &o) {
// operand number. Non-matching operands are assumed to be in
// order.
unsigned OpIdx;
- if (CGI.hasOperandNamed(VarName, OpIdx)) {
+ if (CGI.Operands.hasOperandNamed(VarName, OpIdx)) {
// Get the machine operand number for the indicated operand.
- OpIdx = CGI.OperandList[OpIdx].MIOperandNo;
- assert (!CGI.isFlatOperandNotEmitted(OpIdx) &&
+ OpIdx = CGI.Operands[OpIdx].MIOperandNo;
+ assert (!CGI.Operands.isFlatOperandNotEmitted(OpIdx) &&
"Explicitly used operand also marked as not emitted!");
} else {
/// If this operand is not supposed to be emitted by the
/// generated emitter, skip it.
- while (CGI.isFlatOperandNotEmitted(NumberedOp))
+ while (CGI.Operands.isFlatOperandNotEmitted(NumberedOp))
++NumberedOp;
OpIdx = NumberedOp++;
}
- std::pair<unsigned, unsigned> SO = CGI.getSubOperandNumber(OpIdx);
+ std::pair<unsigned, unsigned> SO =
+ CGI.Operands.getSubOperandNumber(OpIdx);
std::string &EncoderMethodName =
- CGI.OperandList[SO.first].EncoderMethodName;
+ CGI.Operands[SO.first].EncoderMethodName;
// If the source operand has a custom encoder, use it. This will
// get the encoding for all of the suboperands.