[mlir] Support translating function linkage between MLIR and LLVM IR
authorAlex Zinenko <zinenko@google.com>
Mon, 20 Jul 2020 11:54:30 +0000 (13:54 +0200)
committerAlex Zinenko <zinenko@google.com>
Mon, 20 Jul 2020 12:04:31 +0000 (14:04 +0200)
commitebbdecdd57160fb4816b365f79c1185d68a94c0f
tree15aa899a22e2c55ff94f3beac0d5ea5607b4ca29
parent6384ec409944f646225a39915e6b526fbf956e17
[mlir] Support translating function linkage between MLIR and LLVM IR

Linkage support is already present in the LLVM dialect, and is being translated
for globals other than functions. Translation support has been missing for
functions because their conversion goes through a different code path than
other globals.

Differential Revision: https://reviews.llvm.org/D84149
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Target/import.ll
mlir/test/Target/llvmir.mlir