[MLIR][LLVM] Move the LLVM inliner interface into a separate file.
authorJohannes de Fine Licht <johannes.definelicht@nextsilicon.com>
Thu, 23 Mar 2023 13:22:15 +0000 (14:22 +0100)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Thu, 23 Mar 2023 13:22:25 +0000 (14:22 +0100)
commita7c574d0c10ff686cf06d50010d759eaa5a4747b
tree7941fd5a755419c28ae01ecca09756c256f807f5
parent3f2dbcc27dfaa7ab53a0318f2fc732f5ce144222
[MLIR][LLVM] Move the LLVM inliner interface into a separate file.

A fully fledged LLVM inliner will require a lot of logic. Since
`LLVMDialect.cpp` is large enough as it is, preemptively outline the
inlining logic into a separate `.cpp` file. This will also allow us to
add a `DEBUG_TYPE` for debugging the inliner.

The name `LLVMInlining` was chosen over `LLVMInlinerInterface` to keep
the option open for exposing inlining functionality even when not
invoked through the `DialectInlinerInterface`.

Depends on D146616

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D146628
mlir/lib/Dialect/LLVMIR/CMakeLists.txt
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Dialect/LLVMIR/IR/LLVMInlining.cpp [new file with mode: 0644]
mlir/lib/Dialect/LLVMIR/IR/LLVMInlining.h [new file with mode: 0644]