15bool RecordType::isEmpty()
const {
22 if (!BaseRT || !BaseRT->isEmpty())
34RecordType::getElementContainingOffset(
unsigned OffsetInBits)
const {
36 unsigned Start = Element.OffsetInBits;
37 unsigned Size = Element.FieldType->getSizeInBits().getFixedValue();
38 return OffsetInBits >= Start && OffsetInBits < Start +
Size;
49 if ((!VBaseRT || !VBaseRT->isEmpty()) &&
Contains(VBase))
54 if (
Field.IsUnnamedBitfield)
71 if (AT->getNumElements() != 1)
73 Ty = AT->getElementType();
79 return Ty->isZeroSize();
OptimizedStructLayoutField Field
static bool Contains(directive::VersionRange V, int P)
bool isPolymorphic() const
ArrayRef< FieldInfo > getBaseClasses() const
ArrayRef< FieldInfo > getFields() const
uint32_t getNumVirtualBaseClasses() const
bool hasFlexibleArrayMember() const
ArrayRef< FieldInfo > getVirtualBaseClasses() const
Represents the ABI-specific view of a type in LLVM.
This file defines the type system for the LLVMABI library, which mirrors ABI-relevant aspects of fron...
This is an optimization pass for GlobalISel generic memory operations.
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
LLVM_ABI bool isEmpty() const