google / google/xls

Better error messages when codegen-ing un-opted IR

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

Description

#896 raises a good point about the error message being bad when you codegen IR that hasn't been optimized. Inlining is the main culprit- are there any other things that can cause codegen to mysteriously fail if you don't run opt.

See also #646 and #647.

An alternative to better error messages would be for codegen to run something like `-O0` passes in codegen itself, which might just be inlining functions (and a very cheap no-op if opt has already run).

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.