TableGen [sub]class name as a string

I’m hoping for a way to incorporate the name of a leaf class into a base class’ definition. Something like:

class BASE<dag oops, dag iops, …
let Trace = !strconcat(“TAG”, !leaf_classname)

Or less elegantly if the derived class can name itself symbolically:

class BASE<string leaf_classname, dag oops, dag iops, list pattern>


def DERIVED : BASE<!self_classname, (outs …

Currently I’m repeating the derived class/def name as a string which is a bit non-DRY; it’s a minor pain but would be nice to avoid if there’s some approach to those fantasy !leaf_classname/!self_classname operations.