[all-commits] [llvm/llvm-project] e64c76: [mlir] recursively convert builtin types to LLVM w...
ftynse via All-commits
all-commits at lists.llvm.org
Wed Nov 10 09:11:15 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e64c76672f5c50d28298222047b3678ee5b2f251
https://github.com/llvm/llvm-project/commit/e64c76672f5c50d28298222047b3678ee5b2f251
Author: Alex Zinenko <zinenko at google.com>
Date: 2021-11-10 (Wed, 10 Nov 2021)
Changed paths:
M mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
A mlir/test/Conversion/StandardToLLVM/convert-types.mlir
M mlir/test/lib/Conversion/StandardToLLVM/TestConvertCallOp.cpp
Log Message:
-----------
[mlir] recursively convert builtin types to LLVM when possible
Given that LLVM dialect types may now optionally contain types from other
dialects, which itself is motivated by dialect interoperability and progressive
lowering, the conversion should no longer assume that the outermost LLVM
dialect type can be left as is. Instead, it should inspect the types it
contains and attempt to convert them to the LLVM dialect. Introduce this
capability for LLVM array, pointer and structure types. Only literal structures
are currently supported as handling identified structures requires the
converison infrastructure to have a mechanism for avoiding infite recursion in
case of recursive types.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D112550
More information about the All-commits
mailing list