Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions llvm/bindings/ocaml/llvm/llvm.ml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ module AtomicRMWBinOp = struct
| UDec_Wrap
| USub_Cond
| USub_Sat
| FMaximum
| FMinimum
end

module ValueKind = struct
Expand Down
2 changes: 2 additions & 0 deletions llvm/bindings/ocaml/llvm/llvm.mli
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ module AtomicRMWBinOp : sig
| UDec_Wrap
| USub_Cond
| USub_Sat
| FMaximum
| FMinimum
end

(** The kind of an [llvalue], the result of [classify_value v].
Expand Down
2 changes: 2 additions & 0 deletions llvm/test/Bindings/llvm-c/atomics.ll
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ define void @atomic_rmw_ops(ptr %p, i32 %i, float %f) {
%a.fsub = atomicrmw fsub ptr %p, float %f acq_rel, align 8
%a.fmax = atomicrmw fmax ptr %p, float %f acq_rel, align 8
%a.fmin = atomicrmw fmin ptr %p, float %f acq_rel, align 8
%a.fmaximum = atomicrmw fmaximum ptr %p, float %f acq_rel, align 8
%a.fminimum = atomicrmw fminimum ptr %p, float %f acq_rel, align 8

%a.uinc_wrap = atomicrmw uinc_wrap ptr %p, i32 %i acq_rel, align 8
%a.udec_wrap = atomicrmw udec_wrap ptr %p, i32 %i acq_rel, align 8
Expand Down
Loading