Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn for insufficient OPAQUE annotations #2653

Open
DigitalBrains1 opened this issue Jan 31, 2024 · 0 comments
Open

Warn for insufficient OPAQUE annotations #2653

DigitalBrains1 opened this issue Jan 31, 2024 · 0 comments

Comments

@DigitalBrains1
Copy link
Member

Currently we emit a warning when users forget to annotate their primitive with OPAQUE (or NOINLINE on older GHC's):

Bla2.hs:21:1: Warning: primitive Bla2.bla isn't marked OPAQUE.

We should emit warnings for all cases where people should add OPAQUE: anything annotated Synthesize, including topEntity and testBench; in fact, anything at all where Clash needs to find a name in the Core produced by GHC.

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

No branches or pull requests

1 participant