mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
Add an isAggregateType predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51794 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7645e574d2
commit
8666cc3b99
@ -230,6 +230,15 @@ public:
|
|||||||
ID == IntegerTyID || ID == PointerTyID || ID == VectorTyID;
|
ID == IntegerTyID || ID == PointerTyID || ID == VectorTyID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// isAggregateType - Return true if the type is an aggregate type. This
|
||||||
|
/// means it is valid as the first operand of an insertvalue or
|
||||||
|
/// extractvalue instruction. This includes struct and array types, but
|
||||||
|
/// does not include vector types.
|
||||||
|
///
|
||||||
|
inline bool isAggregateType() const {
|
||||||
|
return ID == StructTyID || ID == ArrayTyID;
|
||||||
|
}
|
||||||
|
|
||||||
/// isSized - Return true if it makes sense to take the size of this type. To
|
/// isSized - Return true if it makes sense to take the size of this type. To
|
||||||
/// get the actual size for a particular target, it is reasonable to use the
|
/// get the actual size for a particular target, it is reasonable to use the
|
||||||
/// TargetData subsystem to do this.
|
/// TargetData subsystem to do this.
|
||||||
|
Loading…
Reference in New Issue
Block a user