Add a note about passing MVT::Other to getSetCCResultType.
authorDuncan Sands <baldrick@free.fr>
Mon, 5 Jan 2009 21:33:06 +0000 (21:33 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 5 Jan 2009 21:33:06 +0000 (21:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61756 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h

index 2b26604648f216ad74b6c7eafaccf679c990dc11..e6d5ff8621daf7fa8777184ff7590a5cdd2961d4 100644 (file)
@@ -116,8 +116,11 @@ public:
   /// srl/add/sra.
   bool isPow2DivCheap() const { return Pow2DivIsCheap; }
 
-  /// getSetCCResultType - Return the ValueType of the result of setcc
-  /// operations.
+  /// getSetCCResultType - Return the ValueType of the result of SETCC
+  /// operations.  Also used to obtain the target's preferred type for
+  /// the condition operand of SELECT and BRCOND nodes.  In the case of
+  /// BRCOND the argument passed is MVT::Other since there are no other
+  /// operands to get a type hint from.
   virtual MVT getSetCCResultType(MVT VT) const;
 
   /// getBooleanContents - For targets without i1 registers, this gives the