[clang] [llvm] [HLSL][DXIL] InterlockedOr and InterlockedOr64 builtins (PR #180804)

Alexander Johnston via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 12 08:24:17 PDT 2026


================
@@ -1325,6 +1421,18 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID,
     llvm::Value *Args[] = {SpecId, DefaultVal};
     return Builder.CreateCall(SpecConstantFn, Args);
   }
+  case Builtin::BI__builtin_hlsl_interlocked_or: {
+    return handleInterlockedOr(*this, E, false, true);
+  }
+  case Builtin::BI__builtin_hlsl_interlocked_or64: {
+    return handleInterlockedOr(*this, E, false, false);
----------------
Alexander-Johnston wrote:

They are now combined into 1 intrinsic for no return and 1 for return

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


More information about the cfe-commits mailing list