forked from OSchip/llvm-project
Remove unused function; NFC
This commit is contained in:
parent
e42ad84ba0
commit
841355c1e4
|
@ -2758,14 +2758,6 @@ public:
|
|||
/// long double and double on AArch64 will return 0).
|
||||
int getFloatingTypeSemanticOrder(QualType LHS, QualType RHS) const;
|
||||
|
||||
/// Return a real floating point or a complex type (based on
|
||||
/// \p typeDomain/\p typeSize).
|
||||
///
|
||||
/// \param typeDomain a real floating point or complex type.
|
||||
/// \param typeSize a real floating point or complex type.
|
||||
QualType getFloatingTypeOfSizeWithinDomain(QualType typeSize,
|
||||
QualType typeDomain) const;
|
||||
|
||||
unsigned getTargetAddressSpace(QualType T) const;
|
||||
|
||||
unsigned getTargetAddressSpace(Qualifiers Q) const;
|
||||
|
|
|
@ -6798,41 +6798,6 @@ static FloatingRank getFloatingRank(QualType T) {
|
|||
}
|
||||
}
|
||||
|
||||
/// getFloatingTypeOfSizeWithinDomain - Returns a real floating
|
||||
/// point or a complex type (based on typeDomain/typeSize).
|
||||
/// 'typeDomain' is a real floating point or complex type.
|
||||
/// 'typeSize' is a real floating point or complex type.
|
||||
QualType ASTContext::getFloatingTypeOfSizeWithinDomain(QualType Size,
|
||||
QualType Domain) const {
|
||||
FloatingRank EltRank = getFloatingRank(Size);
|
||||
if (Domain->isComplexType()) {
|
||||
switch (EltRank) {
|
||||
case BFloat16Rank: llvm_unreachable("Complex bfloat16 is not supported");
|
||||
case Float16Rank:
|
||||
case HalfRank: llvm_unreachable("Complex half is not supported");
|
||||
case Ibm128Rank: return getComplexType(Ibm128Ty);
|
||||
case FloatRank: return getComplexType(FloatTy);
|
||||
case DoubleRank: return getComplexType(DoubleTy);
|
||||
case LongDoubleRank: return getComplexType(LongDoubleTy);
|
||||
case Float128Rank: return getComplexType(Float128Ty);
|
||||
}
|
||||
}
|
||||
|
||||
assert(Domain->isRealFloatingType() && "Unknown domain!");
|
||||
switch (EltRank) {
|
||||
case Float16Rank: return HalfTy;
|
||||
case BFloat16Rank: return BFloat16Ty;
|
||||
case HalfRank: return HalfTy;
|
||||
case FloatRank: return FloatTy;
|
||||
case DoubleRank: return DoubleTy;
|
||||
case LongDoubleRank: return LongDoubleTy;
|
||||
case Float128Rank: return Float128Ty;
|
||||
case Ibm128Rank:
|
||||
return Ibm128Ty;
|
||||
}
|
||||
llvm_unreachable("getFloatingRank(): illegal value for rank");
|
||||
}
|
||||
|
||||
/// getFloatingTypeOrder - Compare the rank of the two specified floating
|
||||
/// point types, ignoring the domain of the type (i.e. 'double' ==
|
||||
/// '_Complex double'). If LHS > RHS, return 1. If LHS == RHS, return 0. If
|
||||
|
|
Loading…
Reference in New Issue