[clang] [HLSL] Implement the 'and' HLSL function (PR #127098)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 19 10:49:51 PST 2025


================
@@ -249,6 +249,23 @@ bool all(double3);
 _HLSL_BUILTIN_ALIAS(__builtin_hlsl_all)
 bool all(double4);
 
+//===----------------------------------------------------------------------===//
+// and builtins
+//===----------------------------------------------------------------------===//
+
+/// \fn bool and(bool x, bool y)
+/// \brief Logically ands two boolean vectors elementwise and produces a bool
+/// vector output.
+
+_HLSL_BUILTIN_ALIAS(__builtin_hlsl_and)
+bool and (bool x, bool y);
----------------
farzonl wrote:

Yep thats what is going on here. We should file an issue for this.

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


More information about the cfe-commits mailing list