diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-01 04:03:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-01 04:03:32 +0000 |
commit | d8adec70f321a22f996d772db16f0b6682efd98e (patch) | |
tree | b78b2f4dec3e5cd910f874585129c9ddde00786a /llvm/utils/TableGen/X86RecognizableInstr.cpp | |
parent | 86e1c9484f0c674651022c741227eb60749e289c (diff) | |
download | bcm5719-llvm-d8adec70f321a22f996d772db16f0b6682efd98e.tar.gz bcm5719-llvm-d8adec70f321a22f996d772db16f0b6682efd98e.zip |
factor the operand list (and related fields/operations) out of
CodeGenInstruction into its own helper class. No functionality change.
llvm-svn: 117893
Diffstat (limited to 'llvm/utils/TableGen/X86RecognizableInstr.cpp')
-rw-r--r-- | llvm/utils/TableGen/X86RecognizableInstr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/X86RecognizableInstr.cpp b/llvm/utils/TableGen/X86RecognizableInstr.cpp index 1343fcf5ad2..e3cad1aaa89 100644 --- a/llvm/utils/TableGen/X86RecognizableInstr.cpp +++ b/llvm/utils/TableGen/X86RecognizableInstr.cpp @@ -219,7 +219,7 @@ RecognizableInstr::RecognizableInstr(DisassemblerTables &tables, Name = Rec->getName(); AsmString = Rec->getValueAsString("AsmString"); - Operands = &insn.OperandList; + Operands = &insn.Operands.OperandList; IsSSE = HasOpSizePrefix && (Name.find("16") == Name.npos); HasFROperands = false; @@ -424,7 +424,7 @@ void RecognizableInstr::emitInstructionSpecifier(DisassemblerTables &tables) { Spec->insnContext = insnContext(); - const std::vector<CodeGenInstruction::OperandInfo> &OperandList = *Operands; + const std::vector<CGIOperandList::OperandInfo> &OperandList = *Operands; unsigned operandIndex; unsigned numOperands = OperandList.size(); @@ -440,7 +440,7 @@ void RecognizableInstr::emitInstructionSpecifier(DisassemblerTables &tables) { for (operandIndex = 0; operandIndex < numOperands; ++operandIndex) { if (OperandList[operandIndex].Constraints.size()) { - const CodeGenInstruction::ConstraintInfo &Constraint = + const CGIOperandList::ConstraintInfo &Constraint = OperandList[operandIndex].Constraints[0]; if (Constraint.isTied()) { operandMapping[operandIndex] = Constraint.getTiedOperand(); |