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

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 15 15:34:17 PST 2025


================
@@ -4765,6 +4765,12 @@ def HLSLAll : LangBuiltin<"HLSL_LANG"> {
   let Prototype = "bool(...)";
 }
 
+def HLSLAnd : LangBuiltin<"HLSL_LANG"> {
+  let Spellings = ["__builtin_hlsl_and"];
----------------
farzonl wrote:

I suppose the reason there is no c++ builtin existing here is because this case was covered only for scalars and further via the and operator.

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


More information about the cfe-commits mailing list