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


gives a string of textual code in the specified format.

Details and Options


open allclose all

Basic Examples  (1)

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

The export format can be given explicitly:

Options  (1)

TargetSystem  (1)

The default setting of Automatic generates code for the machine architecture on which it is being run:

TargetSystem can be set to the $SystemID of the desired platform:

TargetSystem can be combined with different format settings:

TargetSystem can be set for architectures for which the Wolfram Engine does not exist:

Introduced in 2019