[libclc] [libclc] add ctz built-in implementation to clc and generic (PR #135309)
Fraser Cormack via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 15 01:34:41 PDT 2025
================
@@ -0,0 +1,15 @@
+//===----------------------------------------------------------------------===//
+//
+// 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/clc.h>
+#include <clc/integer/clc_ctz.h>
+
+#define FUNCTION ctz
----------------
frasercrmck wrote:
Yes, currently libclc is always compiled without an explicit standard, so will be 1.0. We can discuss versions in more detail in your other PR.
https://github.com/llvm/llvm-project/pull/135309
More information about the cfe-commits
mailing list