This reduces the complexity of OperationPrinter and simplifies the code by quite a bit. The SSANameState is now held by ModuleState. This is in preparation for a future revision that molds ModuleState into something that can be used by users for caching the printer state, as well as for implementing printAsOperand style methods.
Depends On D72292
I see we are using unsigned id values. Not sure whether it will be enough in the future. But to make it easier to extend, what about defining a using IdType = unsigned or something for it?