yonghong-song wrote: That is true. If in visitMapDefType() we can identify inner maps, we can just recurse visitMapDefType() itself. This should make code simpler. https://github.com/llvm/llvm-project/pull/150608