Documentation

arx.codegen

arx.codegen

Source: packages/arx/src/arx/codegen.py

title: Arx LLVM-IR integration helpers.

Classes

ArxVisitor(LLVMVisitor)

title: Arx-specific backend visitor customizations.

ArxBuilder(LLVMBuilder)

title: Arx backend builder with Arx overrides.
attributes:
  translator:
    type: ArxVisitor

Methods

translate(self, expr: astx.AST) -> str
title: >-
  Supply bundled dependencies when compiling an Arx module directly.
parameters:
  expr:
    type: astx.AST
returns:
  type: str
title: >-
  Transpile the ASTx to LLVM-IR and build it to an executable file.
parameters:
  node:
    type: astx.AST
  output_file:
    type: str
  link:
    type: bool
  link_mode:
    type: Literal[auto, pie, no-pie]
title: Build a reachable graph of parsed modules.
parameters:
  root:
    type: ParsedModule
  resolver:
    type: ImportResolver
  output_file:
    type: str
  link:
    type: bool
  link_mode:
    type: Literal[auto, pie, no-pie]

Search documentation

Type to search.