inkwell icon indicating copy to clipboard operation
inkwell copied to clipboard

Create new fine-grained enum for `build_cast`

Open marcospb19 opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. When running build_cast, I'm unsure of what options are available.

Describe the solution you'd like build_cast should accept an enum that is a subset of InstructionOpcode, such subset should only contain valid options for build_cast.

Describe possible drawbacks to your solution Might be painful to maintain, especially between different versions.

marcospb19 avatar Sep 04 '23 23:09 marcospb19

Maybe this can be done with a macro on InstructionOpcode that adds the variants in, say, CastOpcode?

EricLBuehler avatar Sep 04 '23 23:09 EricLBuehler