FunctionCompileExportString

FunctionCompileExportString[func]

gives a string of textual LLVM code obtained by compiling the function func.

FunctionCompileExportString[func,"format"]

gives a string of textual code in the specified format.

Details and Options

Examples

open all close all

Basic Examples  (1)

Generate a compiled version of a function and return the resulting LLVM IR as a string:

In[1]:=
Click for copyable input
Out[1]=

The export format can be given explicitly:

In[2]:=
Click for copyable input
Out[2]=

Options  (1)

Introduced in 2019
(12.0)