[mlir][llvm] Use tablegen to import extract/insert ops from LLVM IR.
authorTobias Gysi <tobias.gysi@nextsilicon.com>
Fri, 14 Oct 2022 06:32:30 +0000 (09:32 +0300)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Fri, 14 Oct 2022 07:09:21 +0000 (10:09 +0300)
commit7114185f4e51c07c9628f66131a8b18f6d74ca19
treed67a2ef75da46f49554a18636c91095a8f513675
parent6370bc2435a8406898eee7338ae7d795a252ad04
[mlir][llvm] Use tablegen to import extract/insert ops from LLVM IR.

The revision imports the extract and insert value operations using
tablegen generated builders. Additionally, it moves the tests to
the instructions.ll test file.

Reviewed By: ftynse, dcaballe

Differential Revision: https://reviews.llvm.org/D135874
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
mlir/test/Target/LLVMIR/Import/basic.ll
mlir/test/Target/LLVMIR/Import/instructions.ll