The default implementation in BasicTTI already checks TLI and does
the right thing.
llvm-svn: 254993
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;
/// @}