[llvm-commits] [llvm] r118025 - /llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp

Chris Lattner sabre at nondot.org
Tue Nov 2 10:34:28 PDT 2010


Author: lattner
Date: Tue Nov  2 12:34:28 2010
New Revision: 118025

URL: http://llvm.org/viewvc/llvm-project?rev=118025&view=rev
Log:
add and update comments.

Modified:
    llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp

Modified: llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp?rev=118025&r1=118024&r2=118025&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp Tue Nov  2 12:34:28 2010
@@ -263,11 +263,16 @@
   /// 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 @@
   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.





More information about the llvm-commits mailing list