[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 18 08:51:11 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")) {
----------------
arsenm wrote:

Probably should check the language, and exact match on the permissible names 

https://github.com/llvm/llvm-project/pull/66651


More information about the cfe-commits mailing list