Skip to content

Fix --peano argument for C++ aircc binary#23

Merged
erwei-xilinx merged 1 commit into
mainfrom
fix-peano-arg-for-cpp-aircc
Mar 20, 2026
Merged

Fix --peano argument for C++ aircc binary#23
erwei-xilinx merged 1 commit into
mainfrom
fix-peano-arg-for-cpp-aircc

Conversation

@erwei-xilinx

Copy link
Copy Markdown
Collaborator

Summary

  • Fix --peano argument passing broken by the C++ aircc switch in Switch from Python aircc to C++ aircc binary #22
  • The old "--peano" + " " (trailing space) worked with Python aircc which stripped whitespace, but the C++ LLVM CommandLine parser treats --peano as expecting the next argument as its value, consuming the input file path
  • Changed to "--peano=" to explicitly pass an empty string value

Test plan

  • Clean build + full test suite on NPU2 (Strix/AIE2P): 14/14 non-skipped examples pass
  • CI build validation

🤖 Generated with Claude Code

The C++ aircc uses LLVM CommandLine parsing which treats "--peano"
as a flag expecting the next argument as its value, consuming the
input file path. Use "--peano=" to explicitly pass an empty string
value so the input MLIR file is correctly parsed as a positional
argument.

The previous "--peano " with trailing space worked with Python aircc
which stripped whitespace during argument parsing, but the C++ binary
requires the = syntax for empty-value options.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 20, 2026 21:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes --peano argument passing when invoking the C++ aircc binary so it no longer consumes the input MLIR path as the option value.

Changes:

  • Update aircc invocation to pass an explicit empty value for --peano via --peano=.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@erwei-xilinx erwei-xilinx merged commit 5cbadc3 into main Mar 20, 2026
12 of 13 checks passed
@erwei-xilinx erwei-xilinx deleted the fix-peano-arg-for-cpp-aircc branch March 20, 2026 22:16
erwei-xilinx added a commit that referenced this pull request Mar 20, 2026
Pick up mlir-air PR #1448 which adds PEANO_INSTALL_DIR environment
variable fallback to C++ aircc, complementing the --peano= fix on
the triton-xdna side (PR #23).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erwei-xilinx erwei-xilinx mentioned this pull request Mar 20, 2026
2 tasks
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.

2 participants