[WebAssembly] Tell TargetTransformInfo about popcnt and sqrt.
[oota-llvm.git] / lib / Target / WebAssembly / WebAssemblyTargetTransformInfo.h
index 7ffb6047b9633a4ebe3ff61ee013a6f4cccbc5c8..f2158ca0dfc3af7cac145099b92e5fad9618e32d 100644 (file)
@@ -54,7 +54,8 @@ public:
 
   // TODO: Implement more Scalar TTI for WebAssembly
 
-  TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth);
+  TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const;
+  bool haveFastSqrt(Type *Ty) const;
 
   /// @}