The default implementation in BasicTTI already checks TLI and does
the right thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254993
91177308-0d34-0410-b5e6-
96231b3b80d8
assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
return TargetTransformInfo::PSK_FastHardware;
}
-
-bool WebAssemblyTTIImpl::haveFastSqrt(Type *Ty) const {
- assert(Ty->isFPOrFPVectorTy() && "Ty must be floating point");
- return true;
-}
// TODO: Implement more Scalar TTI for WebAssembly
TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const;
- bool haveFastSqrt(Type *Ty) const;
/// @}