Open DigitalBrains1 opened 5 months ago
Currently we emit a warning when users forget to annotate their primitive with OPAQUE (or NOINLINE on older GHC's):
OPAQUE
NOINLINE
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.
Synthesize
topEntity
testBench
Yes. I feel like this is a proper bug, so I've added the label!
Currently we emit a warning when users forget to annotate their primitive with
OPAQUE
(orNOINLINE
on older GHC's):We should emit warnings for all cases where people should add
OPAQUE
: anything annotatedSynthesize
, includingtopEntity
andtestBench
; in fact, anything at all where Clash needs to find a name in the Core produced by GHC.