Code that uses the is-Swift metadata bit

I'm looking for all code that uses the is-Swift bit in class metadata.

Uses that I know of:
* Compiler-generated class metadata (addClassDataPointer() in GenMeta.cpp)
* Runtime metadata checks (isTypeMetadata() inMetadata.h)
* Stuff in lldb and other debugging tools
* Stuff in the Objective-C runtime

Is there any other code that reads or writes this bit? Does compiler-generated code ever do so? Or maybe something in reflection that I haven't found?

(Backstory: The forthcoming stable Swift ABI will need to use a different bit to avoid collisions with existing pre-stable-ABI Swift apps. We will need to find all of these locations and change them.)

ยทยทยท

--
Greg Parker gparker@apple.com <mailto:gparker@apple.com> Runtime Wrangler