[all-commits] [llvm/llvm-project] d4238f: [Bazel] Enable layering_check for MLIR build

Geoffrey Martin-Noble via All-commits all-commits at lists.llvm.org
Mon Nov 15 15:53:37 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d4238fbf6a691188e1ccda21f88a90bd41d919b6
      https://github.com/llvm/llvm-project/commit/d4238fbf6a691188e1ccda21f88a90bd41d919b6
  Author: Geoffrey Martin-Noble <gcmn at google.com>
  Date:   2021-11-15 (Mon, 15 Nov 2021)

  Changed paths:
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [Bazel] Enable layering_check for MLIR build

This feature checks that headers included by a file are provided by a
header exported by one of the direct dependencies of the build rule in
which it is contained. It ensures that appropriate layering (a goal of
the LLVM project) is preserved. So far, I'm only adding this to MLIR
because we've had it turned on internally since the beginning, so MLIR
is already layering clean. It would be nice to also enable it for LLVM,
but that requires some additional cleanup.

Reviewed By: jpienaar

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




More information about the All-commits mailing list