diff options
author | Scott Michel <scottm@aero.org> | 2008-03-10 15:42:14 +0000 |
---|---|---|
committer | Scott Michel <scottm@aero.org> | 2008-03-10 15:42:14 +0000 |
commit | 5b8f82e35b51bf007de07a7ca9347d804084ddf8 (patch) | |
tree | 64c14c0f5887248e27ce10d793b5530b6eedb91c /include | |
parent | 0404cd97e4f6ebfe4f8057d4e21119d77654dff2 (diff) | |
download | external_llvm-5b8f82e35b51bf007de07a7ca9347d804084ddf8.zip external_llvm-5b8f82e35b51bf007de07a7ca9347d804084ddf8.tar.gz external_llvm-5b8f82e35b51bf007de07a7ca9347d804084ddf8.tar.bz2 |
Give TargetLowering::getSetCCResultType() a parameter so that ISD::SETCC's
return ValueType can depend its operands' ValueType.
This is a cosmetic change, no functionality impacted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index ac573c4..3d65a53 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -109,9 +109,8 @@ public: /// srl/add/sra. bool isPow2DivCheap() const { return Pow2DivIsCheap; } - /// getSetCCResultTy - Return the ValueType of the result of setcc operations. - /// - MVT::ValueType getSetCCResultTy() const { return SetCCResultTy; } + /// getSetCCResultType - Return the ValueType of the result of setcc operations. + virtual MVT::ValueType getSetCCResultType(const SDOperand &) const; /// getSetCCResultContents - For targets without boolean registers, this flag /// returns information about the contents of the high-bits in the setcc @@ -707,10 +706,6 @@ protected: /// amounts. This type defaults to the pointer type. void setShiftAmountType(MVT::ValueType VT) { ShiftAmountTy = VT; } - /// setSetCCResultType - Describe the type that shoudl be used as the result - /// of a setcc operation. This defaults to the pointer type. - void setSetCCResultType(MVT::ValueType VT) { SetCCResultTy = VT; } - /// setSetCCResultContents - Specify how the target extends the result of a /// setcc operation in a register. void setSetCCResultContents(SetCCResultValue Ty) { SetCCResultContents = Ty; } @@ -1259,10 +1254,6 @@ private: /// it. bool Pow2DivIsCheap; - /// SetCCResultTy - The type that SetCC operations use. This defaults to the - /// PointerTy. - MVT::ValueType SetCCResultTy; - /// SetCCResultContents - Information about the contents of the high-bits in /// the result of a setcc comparison operation. SetCCResultValue SetCCResultContents; |