google / google/xls

Serialize DSLX Type Information

Open
#392 3 comments 0 reactions 0 assignees View on GitHub
build dslx enhancement
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

In the bazel rule, dslx_library, serialize type information from parse and type check task for use by other rules to avoid recomputing type information.

For example:
```
# Serialize type information from parse and type check task so it can be used by target c.
dslx_library(
name = "a",
srcs = [
"a.x",
],
)

# Depends on target a.
# Use serialized type information from target a to avoid recomputing the parsing and type checking task of a.
dslx_library(
name = "c",
srcs = [
"c.x",
],
deps = [
":a",
],
)
```
Reference: https://github.com/google/xls/issues/311

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.