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

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Wed Jan 3 09:43:36 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5930725c891b60f5fb94058c6c08a55a2e03d83e
      https://github.com/llvm/llvm-project/commit/5930725c891b60f5fb94058c6c08a55a2e03d83e
  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/Dialect/Bufferization/TransformOps/CMakeLists.txt
    M mlir/lib/IR/CMakeLists.txt
    A mlir/lib/IR/PDL/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/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 is piped through mlir-tblgen invocation and that could be
changed/avoided by splitting up the passes file instead.

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