[MLIR][LLVM] Expose type translator from LLVM to MLIR Type
authorWilliam S. Moses <gh@wsmoses.com>
Tue, 22 Jun 2021 17:57:04 +0000 (13:57 -0400)
committerWilliam S. Moses <gh@wsmoses.com>
Thu, 24 Jun 2021 16:06:34 +0000 (12:06 -0400)
commit929189a4995ece3162adced7a7d9be8e17dc4079
treeb57ba58b0d3690c77eef5c47b0d0d56b0cfbc224
parentda2e614f56b196b37175e2babfac8ed7b43ab624
[MLIR][LLVM] Expose type translator from LLVM to MLIR Type

This commit moves the type translator from LLVM to MLIR to a public header for use by external projects or other code.

Unlike a previous attempt (https://reviews.llvm.org/D104726), this patch moves the type conversion into separate files which remedies the linker error which was only caught by CI.

Differential Revision: https://reviews.llvm.org/D104834
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
mlir/include/mlir/Target/LLVMIR/TypeFromLLVM.h [new file with mode: 0644]
mlir/include/mlir/Target/LLVMIR/TypeToLLVM.h [moved from mlir/include/mlir/Target/LLVMIR/TypeTranslation.h with 88% similarity]
mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
mlir/lib/Target/LLVMIR/CMakeLists.txt
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/lib/Target/LLVMIR/TypeFromLLVM.cpp [new file with mode: 0644]
mlir/lib/Target/LLVMIR/TypeToLLVM.cpp [moved from mlir/lib/Target/LLVMIR/TypeTranslation.cpp with 98% similarity]