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: ArxVisitorMethods
build(self, node: astx.AST, output_file: str, link: bool=True, link_mode: Literal['auto', 'pie', 'no-pie']='auto') -> None
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]build_modules(self, root: ParsedModule, resolver: ImportResolver, output_file: str, link: bool=True, link_mode: Literal['auto', 'pie', 'no-pie']='auto') -> None
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]