Sirraide wrote: That’s still quite a bit of code duplication; it’d be nice to e.g. inherit from some common base class that provides most of the common operators. https://github.com/llvm/llvm-project/pull/165541