Skip to content

[3/8] ECO: Add XLSGraph representation and XLS IR-to-graph lowering - #5588

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1019555427
Draft

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1019555427

Conversation

@copybara-service

Copy link
Copy Markdown

[3/8] ECO: Add XLSGraph representation and XLS IR-to-graph lowering

Introduce the C++ graph model and direct XLS IR lowering used by MCS and GED:

  • xls/contrib/eco/graph.{h,cc}: Define NodeCostAttributes,
    EdgeCostAttributes, XLSNode, XLSEdge, and XLSGraph with structural
    hashing, neighborhood signatures, pinning, and cut support.
  • xls/contrib/eco/xls_ir_to_graph.{h,cc}: Lower xls::FunctionBase (and
    parsed IR files) into XLSGraph using NodeAttributeVisitor, commutative
    edge annotation, and proc/debug attributes.
  • xls/contrib/eco/xls_ir_to_graph_test.cc: Unit tests covering lowering,
    signatures, state reads, traces, and graph cuts.
  • xls/contrib/eco/BUILD: Add graph, xls_ir_to_graph, and
    xls_ir_to_graph_test targets.

Introduce the C++ graph model and direct XLS IR lowering used by MCS and GED:

- `xls/contrib/eco/graph.{h,cc}`: Define `NodeCostAttributes`,
  `EdgeCostAttributes`, `XLSNode`, `XLSEdge`, and `XLSGraph` with structural
  hashing, neighborhood signatures, pinning, and cut support.
- `xls/contrib/eco/xls_ir_to_graph.{h,cc}`: Lower `xls::FunctionBase` (and
  parsed IR files) into `XLSGraph` using `NodeAttributeVisitor`, commutative
  edge annotation, and proc/debug attributes.
- `xls/contrib/eco/xls_ir_to_graph_test.cc`: Unit tests covering lowering,
  signatures, state reads, traces, and graph cuts.
- `xls/contrib/eco/BUILD`: Add `graph`, `xls_ir_to_graph`, and
  `xls_ir_to_graph_test` targets.

PiperOrigin-RevId: 1019555427

This branch has not been deployed

No deployments
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.

1 participant