https://github.com/Xazax-hun commented: I like the direction of this PR but at the same time it makes memspaces a bit more error prone to use. Do you think we could find a way to prevent using `isa` on memspaces? https://github.com/llvm/llvm-project/pull/123003