Skip to content

Add transport dialect definitions#3047

Open
mehrdad2m wants to merge 5 commits into
mainfrom
transport-dialect
Open

Add transport dialect definitions#3047
mehrdad2m wants to merge 5 commits into
mainfrom
transport-dialect

Conversation

@mehrdad2m

Copy link
Copy Markdown
Contributor

Context:
The runtime transport layer exposes a CAPI for driving a remote session over the data plane. However in order to have fine grained control over the CAPI through frontend, we need to be able to express them in MLIR.

Description of the Change:
Adds the transport MLIR:

  • Two opaque handle types: !transport.session and !transport.peer.
  • Bring-up ops: controller_create, connect, exchange_keys, establish_channel, commit_work_item, start.
  • Per-round ops: kick (value-in), collect (value-out), last_rtt_ns.
  • Teardown ops: stop, close, destroy.

Benefits:

Possible Drawbacks:

Related GitHub Issues:

Assisted-by: Claude Opus 4.8
@mehrdad2m
mehrdad2m force-pushed the transport-dialect branch from b2b7f68 to 18c2684 Compare July 21, 2026 11:38
@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.96%. Comparing base (4725fac) to head (8979bfc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3047   +/-   ##
=======================================
  Coverage   96.96%   96.96%           
=======================================
  Files         165      165           
  Lines       19104    19104           
  Branches     1818     1818           
=======================================
  Hits        18525    18525           
  Misses        424      424           
  Partials      155      155           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mehrdad2m
mehrdad2m requested review from josephleekl and rniczh July 22, 2026 16:01
@github-actions

Copy link
Copy Markdown
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md on your branch with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

//===----------------------------------------------------------------------===//

def Transport_Dialect : Dialect {
let summary = "Typed ops for setting up and driving a transport session.";

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.

love this summary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants