41 lines
1.0 KiB
Python
41 lines
1.0 KiB
Python
"""Whole-system numeric intermediate representation."""
|
|
|
|
from .compiler import compile_system_ir
|
|
from .schema import * # noqa: F403 - this package is the public schema facade.
|
|
from .schema import __dict__ as _schema_namespace
|
|
from .validation import (
|
|
IRValidationIssue,
|
|
IRValidationReport,
|
|
SystemIRValidationError,
|
|
require_valid_system_ir,
|
|
validate_system_ir,
|
|
)
|
|
|
|
|
|
__all__ = [
|
|
"compile_system_ir",
|
|
"IRValidationIssue",
|
|
"IRValidationReport",
|
|
"SystemIRValidationError",
|
|
"require_valid_system_ir",
|
|
"validate_system_ir",
|
|
*sorted(
|
|
name
|
|
for name in _schema_namespace
|
|
if name.startswith("IR")
|
|
or name.startswith("SystemIR")
|
|
or name.startswith("SYSTEM_NUMERIC_IR")
|
|
or name
|
|
in {
|
|
"CURRENT_SYSTEM_IR_VERSION",
|
|
"NATIVE_NUMERIC_ABI_VERSION",
|
|
"canonical_json_bytes",
|
|
"native_artifact_key",
|
|
"operation_read_slots",
|
|
"operation_write_slots",
|
|
}
|
|
),
|
|
]
|
|
|
|
del _schema_namespace
|