[clang] clang/OpenCL: set sqrt fp accuracy on call to Z4sqrt (PR #66651)
Romaric Jodin via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 18 08:55:49 PDT 2023
================
@@ -5612,6 +5612,10 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
BundleList);
EmitBlock(Cont);
}
+ if (CI->getCalledFunction() && CI->getCalledFunction()->hasName() &&
+ CI->getCalledFunction()->getName().contains("Z4sqrt")) {
----------------
rjodinchr wrote:
the language is checked by `SetSqrtFPAccuracy`. I'll have a look at a better match for the name
https://github.com/llvm/llvm-project/pull/66651
More information about the cfe-commits
mailing list