You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[dyn-seq P1.3] AIEX->EmitC conversion + C++ TXN target
Add the runtime-parameterizable mirror of the compile-time binary TXN
emitter. A straight-line aie.runtime_sequence of npu ops lowers to a
standalone generate_txn_<seq>() C++ function that assembles the TXN
stream from TxnEncoding.h, with scalar operands (constant or runtime)
flowing through as C++ literals/parameters.
- New pass --convert-aiex-to-emitc: converts write32, maskwrite32, sync,
address_patch, blockwrite (+ feeding memref.get_global) to emitc calls;
runs upstream ArithToEmitC so constant and derived scalar fields lower
uniformly; rejects scf control flow with a clean diagnostic.
- New aie-translate target --aie-npu-to-cpp (pass + translateToCpp).
- Per-op / runtime-value / reject / end-to-end FileCheck coverage.
For constant operands the generated C++ produces byte-identical TXN to
aie-npu-to-binary; runtime scalar operands become generate_txn_<seq>()
parameters (foundation for dynamic runtime sequences, milestone #3222).
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments