diff options
| author | Nicolas Vasilache <ntv@google.com> | 2020-04-03 00:08:22 -0400 |
|---|---|---|
| committer | Nicolas Vasilache <ntv@google.com> | 2020-04-03 16:14:53 -0400 |
| commit | e33a636e26349bf42557908766911654d60cb6c0 (patch) | |
| tree | 7b6923f3e7e62e45dccc1c8de729afaa93d64312 /llvm/lib/CodeGen/MachineFunction.cpp | |
| parent | 275ee5d2514bd14a7b4721b3cb0ac251a1822cb4 (diff) | |
| download | llvm-e33a636e26349bf42557908766911654d60cb6c0.zip llvm-e33a636e26349bf42557908766911654d60cb6c0.tar.gz llvm-e33a636e26349bf42557908766911654d60cb6c0.tar.bz2 | |
[mlir][Linalg] Employ finer-grained control of C interface emission
Summary:
Linalg makes it possible to interface codegen with externally precompiled HPC libraries. The mechanism to allow such interop uses a normalized ABI and the emission of C interface wrappers.
The mechanism controlling these C interface emission is too aggressive and makes it very easy to obtained undefined symbols for external function (e.g. the ones coming from libm).
This revision uses the newly introduced llvm.emit_c_interface function attribute which allows controlling this behavior at a function granularity. As a consequence LinalgToLLVM does not need to activate the C wrapper emission when adding the StdToLLVM patterns.
Differential Revision: https://reviews.llvm.org/D77364
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions
