[mlir] Add partial support for translating data layout
authorAlex Zinenko <zinenko@google.com>
Tue, 1 Mar 2022 17:21:38 +0000 (18:21 +0100)
committerAlex Zinenko <zinenko@google.com>
Wed, 2 Mar 2022 13:56:50 +0000 (14:56 +0100)
commitea998709ebbb2c0fa4e0e04cc917d0a4f9959d06
tree57e54f8b9c229cf4f95476d30858919519d1a01a
parentf64170aa1d2a416fbecf46a4b0adc3a7e0b0d71a
[mlir] Add partial support for translating data layout

Add support for translating data layout specifications for integer and float
types between MLIR and LLVM IR. This is a first step towards removing the
string-based LLVM dialect data layout attribute on modules. The latter is still
available and will remain so until the first-class MLIR modeling can fully
replace it.

Depends On D120739

Reviewed By: wsmoses

Differential Revision: https://reviews.llvm.org/D120740
mlir/include/mlir/Target/LLVMIR/Import.h
mlir/lib/Target/LLVMIR/CMakeLists.txt
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Target/LLVMIR/data-layout.ll [new file with mode: 0644]
mlir/test/Target/LLVMIR/data-layout.mlir [new file with mode: 0644]
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel