diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-06 08:20:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-06 08:20:59 +0000 |
commit | db6f90c61c449e7d5d7e814431c870cda5aa2ea0 (patch) | |
tree | d96964107fce3ed7dd1e5989dadc388f76eeef15 /llvm/utils/TableGen/CodeGenInstruction.h | |
parent | 89965d7091e966ea7171ce463c56161b2805594f (diff) | |
download | bcm5719-llvm-db6f90c61c449e7d5d7e814431c870cda5aa2ea0.tar.gz bcm5719-llvm-db6f90c61c449e7d5d7e814431c870cda5aa2ea0.zip |
fix a bug where we had an implicit assumption that the
result instruction operand numbering matched the result pattern.
Fixing this allows us to move the xchg/test aliases to the .td file.
llvm-svn: 118334
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.h')
-rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h index 0e636a87679..f5b22396360 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.h +++ b/llvm/utils/TableGen/CodeGenInstruction.h @@ -277,6 +277,11 @@ namespace llvm { std::vector<ResultOperand> ResultOperands; 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; }; } |