River707 wrote: It's not clear to me from reading the clangir pr that the existing attrdef list generation can't be used in combination with TypeSwitch and templates to get what you want. I dont think we need anything additional to be generated https://github.com/llvm/llvm-project/pull/126332