Lines Matching defs:StructLayout
45 // Support for StructLayout
48 StructLayout::StructLayout(StructType *ST, const DataLayout &DL)
92 unsigned StructLayout::getElementContainingOffset(uint64_t FixedOffset) const {
686 using LayoutInfoTy = DenseMap<StructType*, StructLayout*>;
693 StructLayout *Value = I.second;
694 Value->~StructLayout();
699 StructLayout *&operator[](StructType *STy) {
720 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const {
725 StructLayout *&SL = (*STM)[Ty];
730 StructLayout *L = (StructLayout *)safe_malloc(
731 StructLayout::totalSizeToAlloc<TypeSize>(Ty->getNumElements()));
733 // Set SL before calling StructLayout's ctor. The ctor could cause other
737 new (L) StructLayout(Ty, *this);
809 const StructLayout *Layout = getStructLayout(cast<StructType>(Ty));
934 const StructLayout *Layout = getStructLayout(STy);
983 const StructLayout *SL = getStructLayout(STy);