Lines Matching refs:StructLayout
41 // Support for StructLayout
44 StructLayout::StructLayout(StructType *ST, const DataLayout &DL) {
78 unsigned StructLayout::getElementContainingOffset(uint64_t Offset) const {
411 typedef DenseMap<StructType*, StructLayout*> LayoutInfoTy;
419 StructLayout *Value = I->second;
420 Value->~StructLayout();
425 StructLayout *&operator[](StructType *STy) {
445 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const {
450 StructLayout *&SL = (*STM)[Ty];
456 StructLayout *L =
457 (StructLayout *)malloc(sizeof(StructLayout)+(NumElts-1) * sizeof(uint64_t));
459 // Set SL before calling StructLayout's ctor. The ctor could cause other
463 new (L) StructLayout(Ty, *this);
553 const StructLayout *Layout = getStructLayout(cast<StructType>(Ty));
649 const StructLayout *Layout = getStructLayout(STy);