mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
Flesh out the list of predicates, for those who like this style. I was
looking for isPointer, and added the rest for uniformity. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95557 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -234,6 +234,26 @@ public:
|
||||
///
|
||||
bool isFPOrFPVector() const;
|
||||
|
||||
/// isFunction - True if this is an instance of FunctionType.
|
||||
///
|
||||
bool isFunction() const { return ID == FunctionTyID; }
|
||||
|
||||
/// isStruct - True if this is an instance of StructType.
|
||||
///
|
||||
bool isStruct() const { return ID == StructTyID; }
|
||||
|
||||
/// isArray - True if this is an instance of ArrayType.
|
||||
///
|
||||
bool isArray() const { return ID == ArrayTyID; }
|
||||
|
||||
/// isPointer - True if this is an instance of PointerType.
|
||||
///
|
||||
bool isPointer() const { return ID == PointerTyID; }
|
||||
|
||||
/// isVector - True if this is an instance of VectorType.
|
||||
///
|
||||
bool isVector() const { return ID == VectorTyID; }
|
||||
|
||||
/// isAbstract - True if the type is either an Opaque type, or is a derived
|
||||
/// type that includes an opaque type somewhere in it.
|
||||
///
|
||||
|
Reference in New Issue
Block a user