mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Add an isAggregateType predicate.
llvm-svn: 51794
This commit is contained in:
parent
ee4a0719c0
commit
32c27bdfc4
@ -230,6 +230,15 @@ public:
|
||||
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
|
||||
/// get the actual size for a particular target, it is reasonable to use the
|
||||
/// TargetData subsystem to do this.
|
||||
|
Loading…
Reference in New Issue
Block a user