[mlir] do not require LLVMDialect in conversion from LLVM IR
authorAlex Zinenko <zinenko@google.com>
Thu, 6 Aug 2020 16:16:04 +0000 (18:16 +0200)
committerAlex Zinenko <zinenko@google.com>
Fri, 7 Aug 2020 12:27:04 +0000 (14:27 +0200)
commit16b02253778caf1723b63c8ee482bb68ccae0a90
tree46d96c138974099e7d9a0cf094c25d5d436b525d
parentdb1c197bf8247d8dced41ae2f579168c7b54d9ef
[mlir] do not require LLVMDialect in conversion from LLVM IR

Historically, LLVMDialect has been required in the conversion from LLVM IR in
order to be able to construct types. This is no longer necessary with the new
type model and the dialect can be replaced with a local LLVM context.

Reviewed By: rriddle, mehdi_amini

Differential Revision: https://reviews.llvm.org/D85444
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp