[all-commits] [llvm/llvm-project] ece6d8: [OCaml] Add missing TypeKinds, Opcode, and AtomicR...

Josh Berdine via All-commits all-commits at lists.llvm.org
Tue Mar 16 08:43:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ece6d8e72eaab1ce6b37c4f658d75ed787181174
      https://github.com/llvm/llvm-project/commit/ece6d8e72eaab1ce6b37c4f658d75ed787181174
  Author: Josh Berdine <josh at berdine.net>
  Date:   2021-03-16 (Tue, 16 Mar 2021)

  Changed paths:
    M llvm/bindings/ocaml/llvm/llvm.ml
    M llvm/bindings/ocaml/llvm/llvm.mli
    M llvm/bindings/ocaml/llvm/llvm_ocaml.c

  Log Message:
  -----------
  [OCaml] Add missing TypeKinds, Opcode, and AtomicRMWBinOps

There are several enum values that have been added to LLVM-C that are
missing from the OCaml bindings. The types defined in
bindings/ocaml/llvm/llvm.ml should be in sync with the corresponding
enum definitions in include/llvm-c/Core.h. The enum values are passed
from C to OCaml unmodified, and clients of the OCaml bindings
interpret them as tags of the corresponding OCaml types. So the only
changes needed are to add the missing constructors to the type
definitions, and to change the name of the maximum opcode in an
assertion.

Differential Revision: https://reviews.llvm.org/D98578




More information about the All-commits mailing list