aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-08-24 16:51:46 +0000
committerDan Gohman <dan433584@gmail.com>2015-08-24 16:51:46 +0000
commit01612f627d86321f352c6b4fbd05394be36778a2 (patch)
tree0f0b8351a9c67aef0d13d431571bfcfd070af3d3 /llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
parente419a7c307b91b359dfd6b9dd78666d02bf478a7 (diff)
downloadllvm-01612f627d86321f352c6b4fbd05394be36778a2.zip
llvm-01612f627d86321f352c6b4fbd05394be36778a2.tar.gz
llvm-01612f627d86321f352c6b4fbd05394be36778a2.tar.bz2
[WebAssembly] Tell TargetTransformInfo about popcnt and sqrt.
llvm-svn: 245853
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h b/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
index 7ffb604..f2158ca 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
+++ b/llvm/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;
/// @}