[PATCH] D77314: [mlir][LLVM] Finer-grained control for C interface emission
Nicolas Vasilache via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 2 08:39:09 PDT 2020
nicolasvasilache created this revision.
nicolasvasilache added a reviewer: ftynse.
Herald added subscribers: llvm-commits, grosul1, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a reviewer: rriddle.
Herald added a project: LLVM.
C interface emission is controlled by a flag and has coarse granularity.
With this coarse control, interfaces are emitted for all external functions.
This makes is easy to get undefined symbols.
This revision adds support for controlling per-function emission with an "emit_c_interface" attribute.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77314
Files:
mlir/docs/ConversionToLLVMDialect.md
mlir/include/mlir/IR/Function.h
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
mlir/lib/IR/Function.cpp
mlir/test/Conversion/StandardToLLVM/calling-convention.mlir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77314.254533.patch
Type: text/x-patch
Size: 5000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200402/53f8840f/attachment.bin>
More information about the llvm-commits
mailing list