[clang] clang/OpenCL: set sqrt fp accuracy on call to Z4sqrt (PR #66651)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 27 03:16:22 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:

ext_vector_type is an implementation detail. The standardized vector types just happen to be typedefs of ext_vector_type.  It's not undefined behavior, it's just something out of spec you can do

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


More information about the cfe-commits mailing list