Skip to content

Switch from Python aircc to C++ aircc binary#22

Merged
erwei-xilinx merged 2 commits into
mainfrom
switch-to-cpp-aircc
Mar 20, 2026
Merged

Switch from Python aircc to C++ aircc binary#22
erwei-xilinx merged 2 commits into
mainfrom
switch-to-cpp-aircc

Conversation

@erwei-xilinx

Copy link
Copy Markdown
Collaborator

Summary

  • Replace the in-process Python aircc.run() call with a subprocess.check_call() to the C++ aircc binary shipped in the mlir-air wheel
  • The C++ binary (mlir_air/bin/aircc) is a full rewrite using LLVM's CommandLine library and in-process MLIR PassManager, intended to replace the Python aircc.py
  • The IR file (asm_air_output.mlir) is already written to disk at this point in the pipeline, so the change is a straightforward swap

Test plan

  • Clean cache, full test suite on NPU2 (Strix/AIE2P): 14/14 non-skipped examples pass (same results as Python aircc)
  • CI build validation

🤖 Generated with Claude Code

erwei-xilinx and others added 2 commits March 20, 2026 11:46
Replace the in-process Python aircc.run() call with a subprocess call
to the C++ aircc binary shipped in the mlir-air wheel. The C++ binary
is a full rewrite using LLVM's CommandLine library and in-process MLIR
PassManager, and is the intended replacement for the Python tool.

The IR file (asm_air_output.mlir) is already written to disk before
this point, so the change is straightforward: pass the file path as
a positional argument to the C++ binary with the same CLI options.

Verified: all 14 non-skipped examples pass on NPU2 (Strix/AIE2P).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erwei-xilinx erwei-xilinx merged commit 56e95b5 into main Mar 20, 2026
8 of 9 checks passed
@erwei-xilinx erwei-xilinx deleted the switch-to-cpp-aircc branch March 20, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant