[all-commits] [llvm/llvm-project] 6ae7f6: [mlir] Add config for PDL (#69927)

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Wed Jan 3 20:37:39 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ae7f66ff5169ddc5a7b9ab545707042c77e036c
      https://github.com/llvm/llvm-project/commit/6ae7f66ff5169ddc5a7b9ab545707042c77e036c
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2024-01-03 (Wed, 03 Jan 2024)

  Changed paths:
    M mlir/CMakeLists.txt
    M mlir/examples/minimal-opt/README.md
    M mlir/include/mlir/Config/mlir-config.h.cmake
    M mlir/include/mlir/Conversion/LLVMCommon/TypeConverter.h
    M mlir/include/mlir/Dialect/Vector/IR/VectorOps.h
    A mlir/include/mlir/IR/PDLPatternMatch.h.inc
    M mlir/include/mlir/IR/PatternMatch.h
    M mlir/include/mlir/Transforms/DialectConversion.h
    M mlir/lib/Conversion/ComplexToLibm/CMakeLists.txt
    M mlir/lib/Conversion/MathToLibm/CMakeLists.txt
    M mlir/lib/Dialect/Bufferization/TransformOps/CMakeLists.txt
    M mlir/lib/IR/CMakeLists.txt
    A mlir/lib/IR/PDL/PDLPatternMatch.cpp
    M mlir/lib/IR/PatternMatch.cpp
    M mlir/lib/Rewrite/ByteCode.h
    M mlir/lib/Rewrite/CMakeLists.txt
    M mlir/lib/Rewrite/FrozenRewritePatternSet.cpp
    M mlir/lib/Rewrite/PatternApplicator.cpp
    M mlir/lib/Transforms/Utils/DialectConversion.cpp
    M mlir/test/CMakeLists.txt
    M mlir/test/lib/Rewrite/CMakeLists.txt
    M mlir/test/lib/Tools/PDLL/CMakeLists.txt
    M mlir/test/lib/Transforms/CMakeLists.txt
    M mlir/tools/mlir-lsp-server/CMakeLists.txt
    M mlir/tools/mlir-opt/CMakeLists.txt
    M mlir/tools/mlir-opt/mlir-opt.cpp
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [mlir] Add config for PDL (#69927)

Make it so that PDL in pattern rewrites can be optionally disabled.

PDL is still enabled by default and not optional bazel. So this should
be a NOP for most folks, while enabling other to disable.

This only works with tests disabled. With tests enabled this still
compiles but tests fail as there is no lit config to disable tests that
depend on PDL rewrites yet.




More information about the All-commits mailing list