add-ttir-builder-op

...

295|145|Updated Jun 17, 2024
One-click install
npx skills add https://github.com/tenstorrent/tt-mlir --skill add-ttir-builder-op
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-ttir-builder-op
Source: https://github.com/tenstorrent/tt-mlir/tree/main/.claude/skills/add-ttir-builder-op
Command: npx skills add https://github.com/tenstorrent/tt-mlir --skill add-ttir-builder-op

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add full builder API support (@tag, @parse, @split) for a TTIR op. Use this skill whenever the user wants to add builder support for a new TTIR op, upgrade an existing _op_proxy-based op to use @tag/@parse/@split decorators, or asks about how to add builder API for an op in ttir_builder.py. Also trigger when the user mentions adding tag/parse/split for an op, or wants to make an op work with the parse/split test infrastructure.

Core Features & Use Cases

  • Guides adding full @tag/@parse/@split support for TTIR ops by referencing a closest existing implementation and adapting.
  • Coordinates changes across three files: tools/builder/ttir/ttir_builder.py, tools/golden/mapping.py, and include/ttmlir/Dialect/TTIR/IR/TTIROps.td (read-only reference) plus test artifacts.
  • Provides a structured workflow to enable parse/split testing for new or upgraded TTIR ops.

Quick Start

Follow the steps to implement builder support for a TTIR op by updating the builder, golden mappings, and test artifacts as described.

Frequently Asked Questions about add-ttir-builder-op

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add full builder support for a new TTIR op?

To add full builder support for a new TTIR op, you implement the @tag, @parse, and @split methods in ttir_builder.py, update the golden mappings, and provide the necessary test artifacts for integration.

What is the @tag/@parse/@split infrastructure in TTIR builder?

The @tag/@parse/@split infrastructure in the TTIR builder provides a structured API to define TTIR ops, enabling integration with the parse/split test infrastructure and ensuring standard builder behavior across operations.

How do I upgrade an existing TTIR op proxy to use tag/parse/split?

Upgrading an existing TTIR op proxy involves replacing the proxy implementation with @tag, @parse, and @split decorators by referencing a closest existing implementation and adapting the code across the builder and golden mapping files.

Which files need to be modified to integrate parse/split testing for TTIR ops?

Integrating parse/split testing requires coordinating changes across tools/builder/ttir/ttir_builder.py, tools/golden/mapping.py, and include/ttmlir/Dialect/TTIR/IR/TTIROps.td as a read-only reference, plus updating test artifacts.

Why do I need to update golden mappings when adding TTIR builder support?

Updating golden mappings is required when adding TTIR builder support to ensure the newly tagged and parsed ops align with expected test infrastructure outputs and maintain accurate operational references.