[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 25 02:49:14 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")) {
----------------
rjodinchr wrote:
Using a custom `ext_vector_type` in OpenCL feels like an undefined behaviour. I don't see anything about it in the specification.
Am I missing something?
https://github.com/llvm/llvm-project/pull/66651
More information about the cfe-commits
mailing list