IRON 1.0
Loading...
Searching...
No Matches
Functions
iron.compile.compile Namespace Reference

Functions

 compile_cxx_core_function (str source_path, str target_arch, str output_path, list[str]|None include_dirs=None, list[str]|None compile_args=None, str|None cwd=None, verbose=False)
 
 compile_mlir_module (str mlir_module, str|None insts_path=None, str|None pdi_path=None, str|None xclbin_path=None, verbose=False, str|None work_dir=None, options=None)
 

Function Documentation

◆ compile_cxx_core_function()

iron.compile.compile.compile_cxx_core_function ( str  source_path,
str  target_arch,
str  output_path,
list[str] | None   include_dirs = None,
list[str] | None   compile_args = None,
str | None   cwd = None,
  verbose = False 
)
Compile a C++ core function.

This function supports only the Peano compiler.

Parameters:
    source_path (str): Path to C++ source.
    target_arch (str): Target architecture, e.g., aie2.
    output_path (str): Output object file path.
    include_dirs (list[str], optional): List of include directories to add with -I.
    compile_args (list[str], optional): Additional compile arguments to peano.
    cwd (str, optional): Overrides the current working directory.
    verbose (bool): If True, enable verbose output.

◆ compile_mlir_module()

iron.compile.compile.compile_mlir_module ( str  mlir_module,
str | None   insts_path = None,
str | None   pdi_path = None,
str | None   xclbin_path = None,
  verbose = False,
str | None   work_dir = None,
  options = None 
)
Compile an MLIR module to instruction, PDI, and/or xbclbin files using the aiecc module.

This function supports only the Peano compiler.

Parameters:
    mlir_module (str): MLIR module to compile.
    insts_path (str): Path to the instructions binary file.
    pdi_path (str): Path to the PDI file.
    xclbin_path (str): Path to the xclbin file.
    verbose (bool): If True, enable verbose output.
    work_dir (str): Compilation working directory.
    options (list[str]): List of additional options.