[llvm] r292584 - [TargetLowering] Improve comment for setOperationAction().

Jonas Paulsson via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 19 22:48:48 PST 2017

Author: jonpa
Date: Fri Jan 20 00:48:47 2017
New Revision: 292584

URL: http://llvm.org/viewvc/llvm-project?rev=292584&view=rev
[TargetLowering] Improve comment for setOperationAction().

Add a sentence that says that the type argument can refer to
either the type of a result, or that of an operand.

Review: Eli Friedman.


Modified: llvm/trunk/include/llvm/Target/TargetLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetLowering.h?rev=292584&r1=292583&r2=292584&view=diff
--- llvm/trunk/include/llvm/Target/TargetLowering.h (original)
+++ llvm/trunk/include/llvm/Target/TargetLowering.h Fri Jan 20 00:48:47 2017
@@ -1490,7 +1490,8 @@ protected:
   void computeRegisterProperties(const TargetRegisterInfo *TRI);
   /// Indicate that the specified operation does not work with the specified
-  /// type and indicate what to do about it.
+  /// type and indicate what to do about it. Note that VT may refer to either
+  /// the type of a result or that of an operand of Op.
   void setOperationAction(unsigned Op, MVT VT,
                           LegalizeAction Action) {
     assert(Op < array_lengthof(OpActions[0]) && "Table isn't big enough!");

More information about the llvm-commits mailing list