I would think adding a reference to another atom, and querying the atom for the size could be the approach we may want to take here. The LinkingContext approach may work but it doesnot fit in the atom model properly IMHO. http://reviews.llvm.org/D4042