OSDN Git Service

[TargetLowering] Improve comment for setOperationAction().
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 20 Jan 2017 06:48:47 +0000 (06:48 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Fri, 20 Jan 2017 06:48:47 +0000 (06:48 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292584 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h

index 3728a7a..01c5c51 100644 (file)
@@ -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!");