[all-commits] [llvm/llvm-project] 735640: [mlir] Delete most of the ops from the quant dialect.

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Wed Jul 27 17:51:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7356404ace4bdb09e8a81eb2d10e0f5e7a9ab3c0
      https://github.com/llvm/llvm-project/commit/7356404ace4bdb09e8a81eb2d10e0f5e7a9ab3c0
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2022-07-27 (Wed, 27 Jul 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Quant/CMakeLists.txt
    R mlir/include/mlir/Dialect/Quant/Passes.h
    R mlir/include/mlir/Dialect/Quant/Passes.td
    M mlir/include/mlir/Dialect/Quant/QuantOps.td
    R mlir/include/mlir/Dialect/Quant/QuantizeUtils.h
    M mlir/include/mlir/InitAllPasses.h
    M mlir/lib/Dialect/Quant/CMakeLists.txt
    M mlir/lib/Dialect/Quant/IR/QuantOps.cpp
    R mlir/lib/Dialect/Quant/Transforms/CMakeLists.txt
    R mlir/lib/Dialect/Quant/Transforms/ConvertConst.cpp
    R mlir/lib/Dialect/Quant/Transforms/ConvertSimQuant.cpp
    R mlir/lib/Dialect/Quant/Transforms/PassDetail.h
    M mlir/lib/Dialect/Quant/Utils/CMakeLists.txt
    R mlir/lib/Dialect/Quant/Utils/QuantizeUtils.cpp
    R mlir/test/Dialect/Quant/convert-const.mlir
    R mlir/test/Dialect/Quant/convert-fakequant-invalid.mlir
    R mlir/test/Dialect/Quant/convert-fakequant.mlir
    R mlir/test/Dialect/Quant/parse-ops-invalid.mlir
    R mlir/test/Dialect/Quant/parse-ops.mlir
    R mlir/test/Dialect/Quant/quant_region.mlir
    M mlir/unittests/Dialect/CMakeLists.txt
    R mlir/unittests/Dialect/Quant/CMakeLists.txt
    R mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [mlir] Delete most of the ops from the quant dialect.

* https://discourse.llvm.org/t/rfc-removing-the-quant-dialect/3643/8
* Removes most ops. Leaves casts given final comment (can remove more in a followup).
* There are a few uses in Tosa keeping some of the utilities alive. In a followup, I will probably elect to just move simplified versions of them into Tosa itself vs having this quasi-library dependency.

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




More information about the All-commits mailing list