[clang] clang/OpenCL: set sqrt fp accuracy on call to Z4sqrt (PR #66651)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 25 01:06:45 PDT 2023
================
@@ -5612,6 +5612,10 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
BundleList);
EmitBlock(Cont);
}
+ if (CI->getCalledFunction() && CI->getCalledFunction()->hasName() &&
+ CI->getCalledFunction()->getName().startswith("_Z4sqrt")) {
----------------
arsenm wrote:
This isn't a specific enough filter. Exactly match the full name for all the types?
https://github.com/llvm/llvm-project/pull/66651
More information about the cfe-commits
mailing list