Skip to content

Commit cd6f51c

Browse files
Add a note about passing MVT::Other to getSetCCResultType.
llvm-svn: 61756
1 parent 2012d84 commit cd6f51c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

llvm/include/llvm/Target/TargetLowering.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,11 @@ class TargetLowering {
116116
/// srl/add/sra.
117117
bool isPow2DivCheap() const { return Pow2DivIsCheap; }
118118

119-
/// getSetCCResultType - Return the ValueType of the result of setcc
120-
/// operations.
119+
/// getSetCCResultType - Return the ValueType of the result of SETCC
120+
/// operations. Also used to obtain the target's preferred type for
121+
/// the condition operand of SELECT and BRCOND nodes. In the case of
122+
/// BRCOND the argument passed is MVT::Other since there are no other
123+
/// operands to get a type hint from.
121124
virtual MVT getSetCCResultType(MVT VT) const;
122125

123126
/// getBooleanContents - For targets without i1 registers, this gives the

0 commit comments

Comments
 (0)