summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenInstruction.h
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2011-01-20 18:38:02 +0000
committerBob Wilson <bob.wilson@apple.com>2011-01-20 18:38:02 +0000
commitf3f2835b011094bcbf73709b82ba4fa7f51873ea (patch)
tree62715483415b9cbde0a4d7d0321b8549184d9bf1 /llvm/utils/TableGen/CodeGenInstruction.h
parentef8cab90796be8856937400977b2b35d4ebdd985 (diff)
downloadbcm5719-llvm-f3f2835b011094bcbf73709b82ba4fa7f51873ea.tar.gz
bcm5719-llvm-f3f2835b011094bcbf73709b82ba4fa7f51873ea.zip
Precompute InstAlias operand mapping to result instruction operand indices.
There should be no functional change from this, but I think it's simpler this way. llvm-svn: 123931
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.h')
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h
index d58bfb12968..fb0e50c08b7 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.h
+++ b/llvm/utils/TableGen/CodeGenInstruction.h
@@ -296,13 +296,12 @@ namespace llvm {
/// ResultOperands - The decoded operands for the result instruction.
std::vector<ResultOperand> ResultOperands;
+
+ /// ResultInstOperandIndex - For each operand, this vector holds the
+ /// corresponding index of an operand in the result instruction.
+ std::vector<unsigned> ResultInstOperandIndex;
CodeGenInstAlias(Record *R, CodeGenTarget &T);
-
- /// getResultInstOperandIndexForResultOperandIndex - Given an index into the
- /// ResultOperands array, translate it to a valid index in ResultInst's
- /// operand list.
- unsigned getResultInstOperandIndexForResultOperandIndex(unsigned i) const;
};
}
OpenPOWER on IntegriCloud