[all-commits] [llvm/llvm-project] 8bef35: [mlir][index] Add boilerplate for the `index` dialect

Jeff Niu via All-commits all-commits at lists.llvm.org
Fri Oct 21 09:46:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8bef3541fabf01fc1f11452d45737b15109b8bd6
      https://github.com/llvm/llvm-project/commit/8bef3541fabf01fc1f11452d45737b15109b8bd6
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/CMakeLists.txt
    A mlir/include/mlir/Dialect/Index/CMakeLists.txt
    A mlir/include/mlir/Dialect/Index/IR/CMakeLists.txt
    A mlir/include/mlir/Dialect/Index/IR/IndexAttrs.h
    A mlir/include/mlir/Dialect/Index/IR/IndexDialect.h
    A mlir/include/mlir/Dialect/Index/IR/IndexDialect.td
    A mlir/include/mlir/Dialect/Index/IR/IndexEnums.td
    A mlir/include/mlir/Dialect/Index/IR/IndexOps.h
    A mlir/include/mlir/Dialect/Index/IR/IndexOps.td
    M mlir/include/mlir/InitAllDialects.h
    M mlir/lib/Dialect/CMakeLists.txt
    A mlir/lib/Dialect/Index/CMakeLists.txt
    A mlir/lib/Dialect/Index/IR/CMakeLists.txt
    A mlir/lib/Dialect/Index/IR/IndexAttrs.cpp
    A mlir/lib/Dialect/Index/IR/IndexDialect.cpp
    A mlir/lib/Dialect/Index/IR/IndexOps.cpp
    M mlir/test/mlir-opt/commandline.mlir

  Log Message:
  -----------
  [mlir][index] Add boilerplate for the `index` dialect

This patch introduces the `index` dialect and associated boilerplate for
adding ops and enums (comparison predicates).

Reviewed By: rriddle, jpienaar, nicolasvasilache

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


  Commit: ddf87d6cd40416b306c55a02f3646018c2293a7c
      https://github.com/llvm/llvm-project/commit/ddf87d6cd40416b306c55a02f3646018c2293a7c
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Index/IR/IndexDialect.td
    M mlir/include/mlir/Dialect/Index/IR/IndexEnums.td
    M mlir/include/mlir/Dialect/Index/IR/IndexOps.h
    M mlir/include/mlir/Dialect/Index/IR/IndexOps.td
    M mlir/lib/Dialect/Index/IR/IndexAttrs.cpp
    M mlir/lib/Dialect/Index/IR/IndexOps.cpp
    A mlir/test/Dialect/Index/index-errors.mlir
    A mlir/test/Dialect/Index/index-ops.mlir

  Log Message:
  -----------
  [mlir][index] Add `index` dialect ops and attributes

This patch adds the definitions for the operations and attributes (just
one enum attribute) for the `index` dialect.

Depends on D135688

Reviewed By: rriddle, jpienaar

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


  Commit: 83c3eebdec0d3028e9c7f4dfe080071b26621ec8
      https://github.com/llvm/llvm-project/commit/83c3eebdec0d3028e9c7f4dfe080071b26621ec8
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Index/IR/IndexDialect.td
    M mlir/include/mlir/Dialect/Index/IR/IndexOps.td
    M mlir/include/mlir/Support/LLVM.h
    M mlir/lib/Dialect/Index/IR/IndexOps.cpp
    A mlir/test/Dialect/Index/index-canonicalize.mlir

  Log Message:
  -----------
  [mlir][index] Add folders for `index` ops

This patch adds folders for `index` dialect ops. Ths folders are
careful to ensure that fold results are valid on both 32-bit and 64-bit
targets.

Depends on D135689

Reviewed By: rriddle

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


  Commit: cae746d9c4abe1662bf3379e59cd48f62dcbe3b7
      https://github.com/llvm/llvm-project/commit/cae746d9c4abe1662bf3379e59cd48f62dcbe3b7
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    A mlir/include/mlir/Conversion/IndexToLLVM/IndexToLLVM.h
    M mlir/include/mlir/Conversion/Passes.h
    M mlir/include/mlir/Conversion/Passes.td
    M mlir/lib/Conversion/CMakeLists.txt
    A mlir/lib/Conversion/IndexToLLVM/CMakeLists.txt
    A mlir/lib/Conversion/IndexToLLVM/IndexToLLVM.cpp
    A mlir/test/Conversion/IndexToLLVM/index-to-llvm.mlir

  Log Message:
  -----------
  [mlir][index] Add `convert-index-to-llvm` pass

This patch adds a lowering pass to convert `index` dialect ops to LLVM.

Depends on D135694

Reviewed By: rriddle

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


Compare: https://github.com/llvm/llvm-project/compare/0051b6bb7877...cae746d9c4ab


More information about the All-commits mailing list