projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[WebAssembly] Tell TargetTransformInfo about popcnt and sqrt.
[oota-llvm.git]
/
lib
/
Target
/
WebAssembly
/
WebAssemblyTargetTransformInfo.h
diff --git
a/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
b/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
index 7ffb6047b9633a4ebe3ff61ee013a6f4cccbc5c8..f2158ca0dfc3af7cac145099b92e5fad9618e32d 100644
(file)
--- a/
lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
+++ b/
lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
@@
-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;
/// @}