[GPGPU] Add llvm.powi to the libdevice supported functions

These intrinsics are used in COSMO.

llvm-svn: 311324
This commit is contained in:
Tobias Grosser
2017-08-21 09:52:08 +00:00
parent 03c2208d5f
commit b09bd74da8
2 changed files with 7 additions and 3 deletions

View File

@@ -1406,7 +1406,7 @@ static bool isValidFunctionInKernel(llvm::Function *F, bool AllowLibDevice) {
return F->isIntrinsic() &&
(Name.startswith("llvm.sqrt") || Name.startswith("llvm.fabs") ||
Name.startswith("llvm.copysign"));
Name.startswith("llvm.copysign") || Name.startswith("llvm.powi"));
}
/// Do not take `Function` as a subtree value.