[llvm] [llvm-c][ocaml] Move DataLayout bindings from Target to Core/IR (PR #227714)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 15:46:18 PDT 2026


s-barannikov wrote:

It looks like this change causes warnings (`check-llvm-bindings-ocaml`, `executionengine.ml`):
```
# | File "<...>/llvm-project/cmake-build-release/test/Bindings/OCaml/Output/executionengine.ml.tmp/executionengine.ml", line 11, characters 0-25:
# | 11 | open Llvm_executionengine
# |      ^^^^^^^^^^^^^^^^^^^^^^^^^
# | Warning 44 [open-shadow-identifier]: this open statement shadows the value identifier data_layout (which is later used)
# | File "<...>/llvm-project/cmake-build-release/test/Bindings/OCaml/Output/executionengine.ml.tmp/executionengine.ml", line 1:
# | Warning 70 [missing-mli]: Cannot find interface file.
# | File "<...>/llvm-project/cmake-build-release/test/Bindings/OCaml/Output/executionengine.ml.tmp/executionengine.ml", line 12, characters 0-16:
# | 12 | open Llvm_target
# |      ^^^^^^^^^^^^^^^^
# | Warning 33 [unused-open]: unused open Llvm_target.
```

I noticed these because the test fails for me for an unrelated reason. I didn't check if other tests produce similar warnings.


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


More information about the llvm-commits mailing list