llvm / llvm/circt

[firtool] Offer suggestions for close-but-not-quite-right lowering options

Open
#5,006 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
2.2k
Forks
524
Avg merge
3d 2h
Merged PRs (30d)
46

Description

Perhaps best addressed by reworking how this works, but regardless it's be nice for our parsing of these options to produce the same sort of "did you mean" Levenshtein distance suggestions.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating firtool's parsing of lowering options and the diagnostics produced for unrecognized values. Identify how close matches should be selected and add focused coverage for misspelled options, then verify that the resulting diagnostics provide useful "did you mean" suggestions. Done means close-but-not-quite-right lowering options receive Levenshtein-based suggestions.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.