|
@@ -4816,6 +4816,12 @@ inline bool Type::isNonOverloadPlaceholderType() const {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+inline bool Type::isVoidType() const {
|
|
|
|
+ if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
|
|
|
|
+ return BT->getKind() == BuiltinType::Void;
|
|
|
|
+ return false;
|
|
|
|
+}
|
|
|
|
+
|
|
inline bool Type::isHalfType() const {
|
|
inline bool Type::isHalfType() const {
|
|
if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
|
|
if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
|
|
return BT->getKind() == BuiltinType::Half;
|
|
return BT->getKind() == BuiltinType::Half;
|