[llvm-commits] [llvm] r61756 - /llvm/trunk/include/llvm/Target/TargetLowering.h

Duncan Sands baldrick at free.fr
Mon Jan 5 13:33:06 PST 2009


Author: baldrick
Date: Mon Jan  5 15:33:06 2009
New Revision: 61756

URL: http://llvm.org/viewvc/llvm-project?rev=61756&view=rev
Log:
Add a note about passing MVT::Other to getSetCCResultType.

Modified:
    llvm/trunk/include/llvm/Target/TargetLowering.h

Modified: llvm/trunk/include/llvm/Target/TargetLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetLowering.h?rev=61756&r1=61755&r2=61756&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Target/TargetLowering.h (original)
+++ llvm/trunk/include/llvm/Target/TargetLowering.h Mon Jan  5 15:33:06 2009
@@ -116,8 +116,11 @@
   /// 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





More information about the llvm-commits mailing list