Add support for host/device stub functions for offload.
This commit is contained in:
22
type.cpp
22
type.cpp
@@ -196,12 +196,32 @@ AtomicType::GetVariability() const {
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
Type::IsPointerType() const {
|
||||
return (CastType<const PointerType*>(this) != NULL);
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
Type::IsArrayType() const {
|
||||
return (CastType<const ArrayType*>(this) != NULL);
|
||||
}
|
||||
|
||||
bool
|
||||
Type::IsReferenceType() const {
|
||||
return (CastType<ReferenceType>(this) != NULL);
|
||||
}
|
||||
|
||||
bool
|
||||
Type::IsVoidType() const {
|
||||
return this == AtomicType::Void;
|
||||
}
|
||||
|
||||
bool
|
||||
AtomicType::IsFloatType() const {
|
||||
return (basicType == TYPE_FLOAT || basicType == TYPE_DOUBLE);
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
AtomicType::IsIntType() const {
|
||||
return (basicType == TYPE_INT8 || basicType == TYPE_UINT8 ||
|
||||
|
||||
Reference in New Issue
Block a user