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

Alexander Johnston via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 25 06:18:39 PST 2026


================
@@ -300,6 +300,122 @@ static Value *handleElementwiseF32ToF16(CodeGenFunction &CGF,
   llvm_unreachable("Intrinsic F32ToF16 not supported by target architecture");
 }
 
+// Not sure where would be best for this to live
+// AtomicBinOp uses an i32 to determine the operation mode as follows
+enum AtomicOperationCode : uint {
+  Add = 0,
+  And = 1,
+  Or = 2,
+  Xor = 3,
+  IMin = 4,
+  IMax = 5,
+  UMin = 6,
+  UMax = 7,
+  Exchange = 8
+};
----------------
Alexander-Johnston wrote:

Yup, thank you! Moved to https://github.com/llvm/llvm-project/pull/180804/changes#diff-ea687e2038566cc5ff5ab98f750bf66576c25a5d42e5cebd003863a8d409cd7aR320

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


More information about the cfe-commits mailing list