[libclc] [libclc] Introduce __clc_recip function to enable 'arcp' flag for math reciprocal operations (PR #178557)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 29 05:47:36 PST 2026
================
@@ -0,0 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_recip(__CLC_GENTYPE x) {
+ _Pragma("clang fp reciprocal(on)");
----------------
arsenm wrote:
Why _Pragma and not `#pragma`?
https://github.com/llvm/llvm-project/pull/178557
More information about the cfe-commits
mailing list