Lowering a Uniform Rule Graph to Heterogeneous Evaluation Targets

The disclosure behind the TIR compiler, including the width and latency negotiation that the first implementation got wrong.

Language versions [EN] [中文]
Cite

Field

Compilation of a uniform rule graph onto evaluation targets with heterogeneous resource models, including targets where evaluation width and per-node latency are physical constraints rather than performance suggestions.

The claimed method, in one paragraph

A rule graph is annotated with resource requirements during lowering rather than during backend selection. Each backend advertises a resource profile; a negotiation pass assigns each node a width and a latency budget such that every backend’s profile is satisfied or the graph is rejected with a diagnosable reason. The rejection reason names the node, the backend and the violated constraint.

Why the naive version fails

If width planning happens inside each backend, two backends can disagree about the meaning of the same graph, and the disagreements are only visible when results are compared across backends. The disclosure’s contribution is moving the negotiation ahead of lowering so that a graph has exactly one resource-valid interpretation.

Status

Filed. Application 202611008286.7 was filed on 2026-07-08 with the China National Intellectual Property Administration, under the official Chinese title 「一种量化交易策略的多层级中间表示与跨平台编译方法、系统及计算机程序产品」. The application has passed preliminary examination and has entered substantive examination (实质审查). The prototype is tir-compiler, which implements the negotiation pass and three backends. The four disagreements mentioned in the accompanying write-up were found by a conformance suite written after the fact, and the disclosure documents the ordering rule that would have prevented them.

Related reading

Video//1 min read

One Rule Graph, Three Backends: A TIR Compiler Demo

Lowering the same rule graph to a spreadsheet add-in, a service and an FPGA pipeline, and the four disagreements the conformance suite found.

Writing//13 min read

Building a TIR Compiler: From Patent to Prototype

A rule graph, one intermediate representation, and three backends. What was easy, what leaked, and which abstraction I would not build again.

Writing//14 min read

Enterprise AI Agents in .NET 10: Wiring an Agent to Real Systems

What changes when an agent has to call into a system with an audit log, a permission model and a rate limit, instead of a demo endpoint.

Writing//11 min read

Python Fine-tuning with C# Inference: A Dual-Track Pipeline

Fine-tune where the ecosystem is, serve where the process already runs, and put a diff between the two so they cannot silently drift.

Cite this entry

Copy the block you need.

BibTeX
@misc{huang2026loweringauniformru,
  author  = {Mr Huang},
  title   = {Lowering a Uniform Rule Graph to Heterogeneous Evaluation Targets},
  year    = {2026},
  url     = {https://selfevo.dev/en/research/patents/tir-compiler-lowering},
  note    = {selfevo, patent}
}
RIS
TY  - GEN
AU  - Mr Huang
TI  - Lowering a Uniform Rule Graph to Heterogeneous Evaluation Targets
PY  - 2026
UR  - https://selfevo.dev/en/research/patents/tir-compiler-lowering
PB  - selfevo
ER  - 
APA
Mr Huang (2026). Lowering a Uniform Rule Graph to Heterogeneous Evaluation Targets. selfevo. https://selfevo.dev/en/research/patents/tir-compiler-lowering