This patch ClangASTContext::IsHomogeneousAggregate test for homogeneity in light of Arm procedure call standard definition of a homogeneous aggregate given below:
A Homogeneous Aggregate is a Composite Type where all of the Fundamental Data Types that compose the type
are the same. The test for homogeneity is applied after data layout is completed and without regard to access
control or other source language restrictions.
An aggregate consisting of containerized vector types is treated as homogeneous if all the members are of the
same size, even if the internal format of the containerized members are different. For example, a structure
containing a vector of 8 bytes and a vector of 4 half-words satisfies the requirements for a homogeneous
aggregate.
A Homogenous Aggregate has a Base Type, which is the Fundamental Data Type of each Element. The overall
size is the size of the Base Type multiplied by the number of Elements; its alignment will be the alignment of the
Base Type.
ClangASTContext::IsHomogeneousAggregate functions is currently only used by ARM ABI and I have not seen a conflicting definition of a Homogenous Aggregate elsewhere so seems safe to use ARM's definition as is.
LGTM?