OSDN Git Service

[mlir] Convert function signatures before converting globals
authorSean Silva <silvasean@google.com>
Mon, 6 Jul 2020 23:49:52 +0000 (16:49 -0700)
committerSean Silva <silvasean@google.com>
Tue, 7 Jul 2020 17:40:02 +0000 (10:40 -0700)
commita084b94f1198df600fff0632ad54fe6121e23943
treed6665c75623cd08a3109b53acbe6712a72f5550e
parent6cff71e92e644adf5eab8cb411e5ac053746bbac
[mlir] Convert function signatures before converting globals

Summary: This allows global initializers to reference functions.

Differential Revision: https://reviews.llvm.org/D83266
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Target/llvmir.mlir