cucapra / filament

Fearless hardware design
http://filamenthdl.com/
MIT License
159 stars 9 forks source link

Have Validate take in data that tells what constraints to check for #225

Closed gabizon103 closed 1 year ago

gabizon103 commented 1 year ago

Would be nice to generalize Validate so that we can use it to check for whatever constraints are relevant at whatever point in the compiler we're at. Right now it is implemented for check for issues that might arise in monomorphization, but for example we could have it check for things like bundle elimination, and so on.

rachitnigam commented 1 year ago

I actually don't think that we should parameterize the Validate pass anymore and just make it check everything all the time. The basic idea is that Validation should be cheap to use and enforce strong constraints.