circt
circt copied to clipboard
Factor out ClockEdgeAttr definitions
Quite a few of our dialects define a ClockEdgeAttr to allow ops to specify which clock edge they are sensitive to, such as posedge, negedge, and both edges. It would be great if we had one definition of ClockEdgeAttr somewhere, for example in the HW dialect, and then used that definition from all other dialects that need it.
I took a look and came up with #7037. I thought they had added something like -attrdefs-dialect for enums as well, so this isn't as easy as I thought it was. 😞