[mlir][index] Add `convert-index-to-llvm` pass
authorJeff Niu <jeff@modular.com>
Tue, 11 Oct 2022 17:10:57 +0000 (10:10 -0700)
committerJeff Niu <jeff@modular.com>
Fri, 21 Oct 2022 16:46:19 +0000 (09:46 -0700)
commitcae746d9c4abe1662bf3379e59cd48f62dcbe3b7
treebce17a93810f2ab9788efc257f51cecfdba6bf79
parent83c3eebdec0d3028e9c7f4dfe080071b26621ec8
[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
mlir/include/mlir/Conversion/IndexToLLVM/IndexToLLVM.h [new file with mode: 0644]
mlir/include/mlir/Conversion/Passes.h
mlir/include/mlir/Conversion/Passes.td
mlir/lib/Conversion/CMakeLists.txt
mlir/lib/Conversion/IndexToLLVM/CMakeLists.txt [new file with mode: 0644]
mlir/lib/Conversion/IndexToLLVM/IndexToLLVM.cpp [new file with mode: 0644]
mlir/test/Conversion/IndexToLLVM/index-to-llvm.mlir [new file with mode: 0644]