LLVM IR Conversion: keep LLVM dialect types as is during conversion
authorAlex Zinenko <zinenko@google.com>
Wed, 27 Mar 2019 16:16:27 +0000 (09:16 -0700)
committerjpienaar <jpienaar@google.com>
Sat, 30 Mar 2019 00:45:11 +0000 (17:45 -0700)
commit5c285f228c3cebd3d720cc383409657a11fd93b5
tree07b37021d9c379a905a88a329f0469ed50d0b63b
parent9c085406904780d25673ad213ac53a4c6e1558c0
LLVM IR Conversion: keep LLVM dialect types as is during conversion

When converting to the LLVM IR Dialect, it is possible for the input IR to
contain LLVM IR Dialect operation and/or types, for example, some functions may
have been coverted to the LLVM IR Dialect already, or may have been created
using this dialect directly.  Make sure that type conversion keeps LLVM IR
Dialect types unmodified and does not error out.  Operations are already kept
as is.

PiperOrigin-RevId: 240574972
mlir/g3doc/Passes.md
mlir/lib/LLVMIR/Transforms/ConvertToLLVMDialect.cpp