google / google/xls

cpp_transpiler is quite difficult to extend meaningfully

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

Description

The xls/dslx/cpp_transpiler can be used to create C++ mirrors of DSLX structures and types and functions that convert between them. While it works reasonably well, it is extremely difficult to make even modest changes and improvements to the output, mostly due to it avoiding any templating language and instead building the source and headers it creates out of raw strings (in C++).

It may be worthwhile to rewrite this using the jinja templating language used for the jit wrappers and other tools.

Related: https://github.com/google/xls/issues/1135

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.