aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-01-05 21:33:06 +0000
committerDuncan Sands <baldrick@free.fr>2009-01-05 21:33:06 +0000
commit676b9dfe2f7d7af7c93daac230aaac353e37d59d (patch)
tree84c3a95ee899d05922388b4a4da4de69713b212b /include
parente6a1fe560745b65ade854ad3b4a228293d234090 (diff)
downloadexternal_llvm-676b9dfe2f7d7af7c93daac230aaac353e37d59d.zip
external_llvm-676b9dfe2f7d7af7c93daac230aaac353e37d59d.tar.gz
external_llvm-676b9dfe2f7d7af7c93daac230aaac353e37d59d.tar.bz2
Add a note about passing MVT::Other to getSetCCResultType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetLowering.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 2b26604..e6d5ff8 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -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