diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-02 17:34:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-02 17:34:28 +0000 |
commit | 3b5aec67ef174c74ff6620ddd71ad3b0cb39030c (patch) | |
tree | abfee22d1596b8ba4cced9a666af4e3e8b80e406 /utils | |
parent | d19ec05e0785152e7a520ffd4a88da4459a380aa (diff) | |
download | external_llvm-3b5aec67ef174c74ff6620ddd71ad3b0cb39030c.zip external_llvm-3b5aec67ef174c74ff6620ddd71ad3b0cb39030c.tar.gz external_llvm-3b5aec67ef174c74ff6620ddd71ad3b0cb39030c.tar.bz2 |
add and update comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118025 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/AsmMatcherEmitter.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index dccbaf7..582b45e 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -263,11 +263,16 @@ struct MatchableInfo { /// InstrName - The target name for this instruction. std::string InstrName; + /// TheDef - This is the definition of the instruction or InstAlias that this + /// matchable came from. Record *const TheDef; + + /// OperandList - This is the operand list that came from the (ins) and (outs) + /// list of the alias or instruction. const CGIOperandList &OperandList; /// AsmString - The assembly string for this instruction (with variants - /// removed). + /// removed), e.g. "movsx $src, $dst". std::string AsmString; /// Mnemonic - This is the first token of the matched instruction, its @@ -275,7 +280,9 @@ struct MatchableInfo { StringRef Mnemonic; /// AsmOperands - The textual operands that this instruction matches, - /// including literal tokens for the mnemonic, etc. + /// annotated with a class and where in the OperandList they were defined. + /// This directly corresponds to the tokenized AsmString after the mnemonic is + /// removed. SmallVector<Operand, 4> AsmOperands; /// Predicates - The required subtarget features to match this instruction. |