lib/IRGen/MetadataLayout.cpp
llvm::Value *irgen::emitParentMetadataRef(IRGenFunction &IGF,
                                          NominalTypeDecl *decl,
                                          llvm::Value *metadata) {
  auto slot = emitAddressOfParentMetadataSlot(IGF, metadata, decl);
  return IGF.emitInvariantLoad(slot);
}
/// Given a reference to some metadata, derive a reference to the
/// type's parent type.
Given a reference to some metadata, derive a reference to the
type's parent type.
Given a reference to some metadata derive a reference to the type ' s parent type .
llvm::Value *irgen::emitParentMetadataRef(IRGenFunction &IGF,
                                          NominalTypeDecl *decl,
                                          llvm::Value *metadata) {
  auto slot = emitAddressOfParentMetadataSlot(IGF, metadata, decl);
  return IGF.emitInvariantLoad(slot);
}
llvm :: Value * irgen :: emitParentMetadataRef ( IRGenFunction & IGF , NominalTypeDecl * decl , llvm :: Value * metadata ) { auto slot = emitAddressOfParentMetadataSlot ( IGF , metadata , decl ) ; return IGF . emitInvariantLoad ( slot ) ; }
Given a reference to some metadata, derive a reference to the
type's parent type.
Given a reference to some metadata derive a reference to the type ' s parent type .