Wolfram Language

Create LLVM Code

The Wolfram Compiler can generate output in a variety of native machine code formats. The LLVM Compiler Infrastructure defines a standard intermediate representation, commonly referred to as LLVM IR.

Define a simple function to square its argument.

The default format used by FunctionCompileExportString is LLVM IR.

Using a file with extension ".ll" in FunctionCompileExport produces LLVM IR output.

Print the first few lines of the file.

Related Examples

de es fr ja ko pt-br zh