diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-18 23:38:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-18 23:38:41 +0000 |
commit | cfbf96aa9c3bd317548f72e022ba28a40353f95a (patch) | |
tree | 1de8de0444be5b8f6106e3f82461838313d3788f /utils/TableGen/CodeGenInstruction.h | |
parent | c15ed447f494c77a76c24661893e22192ebb2103 (diff) | |
download | external_llvm-cfbf96aa9c3bd317548f72e022ba28a40353f95a.zip external_llvm-cfbf96aa9c3bd317548f72e022ba28a40353f95a.tar.gz external_llvm-cfbf96aa9c3bd317548f72e022ba28a40353f95a.tar.bz2 |
Figure out how many operands each instruction has, keep track of whether
or not it's variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenInstruction.h')
-rw-r--r-- | utils/TableGen/CodeGenInstruction.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenInstruction.h b/utils/TableGen/CodeGenInstruction.h index 3b3babf..54f4b98 100644 --- a/utils/TableGen/CodeGenInstruction.h +++ b/utils/TableGen/CodeGenInstruction.h @@ -56,10 +56,12 @@ namespace llvm { /// OperandList may not match the MachineInstr operand num. Until it /// does, this contains the MI operand index of this operand. unsigned MIOperandNo; + unsigned MINumOperands; // The number of operands. OperandInfo(Record *R, MVT::ValueType T, const std::string &N, - const std::string &PMN, unsigned MION) - : Rec(R), Ty(T), Name(N), PrinterMethodName(PMN), MIOperandNo(MION) {} + const std::string &PMN, unsigned MION, unsigned MINO) + : Rec(R), Ty(T), Name(N), PrinterMethodName(PMN), MIOperandNo(MION), + MINumOperands(MINO) {} }; /// OperandList - The list of declared operands, along with their declared @@ -78,6 +80,7 @@ namespace llvm { bool isCommutable; bool isTerminator; bool hasDelaySlot; + bool hasVariableNumberOfOperands; CodeGenInstruction(Record *R, const std::string &AsmStr); |