[libclc] [libclc] Replace NVPTX libdevice calls with clang builtins for sqrt, rsqrt, isinf (PR #205709)

Wenju He via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 24 19:09:44 PDT 2026


================
@@ -0,0 +1,30 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "clc/relational/clc_isinf.h"
+
+_CLC_OVERLOAD _CLC_DEF int __clc_isinf(float x) { return __builtin_isinf(x); }
----------------
wenju-he wrote:

this file is already deleted

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


More information about the cfe-commits mailing list