add and update comments.
authorChris Lattner <sabre@nondot.org>
Tue, 2 Nov 2010 17:34:28 +0000 (17:34 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 2 Nov 2010 17:34:28 +0000 (17:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118025 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmMatcherEmitter.cpp

index dccbaf717ba730e4ed34849b17081ba14222932c..582b45e2bf3be3401d5721e1ab5f3d01dd1137f4 100644 (file)
@@ -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.